This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #555 from erikrose/js-lockdown
Correct some infra around JS plugin
- Loading branch information
Showing
8 changed files
with
34 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,20 @@ | ||
build: | ||
cd analyze_js; npm install | ||
build: .npm_installed | ||
cd analyze_js && npm install | ||
|
||
# Remove anything within node_modules that's not checked into git. Skip things | ||
# with spaces in them, lest xargs screw up and delete the wrong thing. | ||
clean: | ||
rm -rf analyze_js/node_modules | ||
rm -f .npm_installed | ||
cd analyze_js/node_modules && git ls-files -o --directory -x '* *' -x '.DS_Store' | xargs rm -rf | ||
|
||
lint: build | ||
cd analyze_js; node_modules/.bin/eslint . | ||
cd analyze_js && node_modules/.bin/eslint . | ||
|
||
# .npm_installed is an empty file we touch whenever we run npm install. This | ||
# target redoes the install if the packages or lockdown files are newer than | ||
# that file: | ||
.npm_installed: analyze_js/package.json analyze_js/lockdown.json | ||
cd analyze_js && npm install | ||
touch $@ | ||
|
||
.PHONY: build clean lint |
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