-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make: Add make targets for formatting and linting frontend code.
This adds linting and formatting of frontend code when running `make lint`, `make format`, or any of the variations. I am adding this because I didn't know how to check the code and so I had to wait for CI to fail, which I found irritating. In order to make this reasonable, I factored out `make` targets for building *frontend/node_modules*, so I could depend on them. PR-URL: hasura/graphql-engine-mono#8463 GitOrigin-RevId: 71882ec90490efbf87d428d08eaec2ae849a0a36
- Loading branch information
1 parent
14fcaaf
commit 17855bf
Showing
4 changed files
with
57 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.PHONY: build-console-assets | ||
## build-console-assets | ||
build-console-assets: frontend/node_modules | ||
cd frontend && npm run server-build:ce | ||
|
||
# Install node_modules if package-lock.json changes | ||
frontend/node_modules: frontend/package-lock.json | ||
cd frontend && npm install && touch node_modules | ||
|
||
# Cleanly install node_modules if package.json changes | ||
frontend/package-lock.json: frontend/package.json | ||
cd frontend && npm ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters