Skip to content

Commit

Permalink
Fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jan 11, 2025
1 parent 7cdf56f commit efd1d7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ firefox: dist/build/uBlock0.firefox
dist/build/uBlock0.npm: tools/make-nodejs.sh $(sources) $(platform) $(assets)
tools/make-npm.sh

npm: dist/build/uBlock0.npm

# Dev tools
node_modules:
npm install

npm: node_modules
init: node_modules

lint: npm
lint: init
npm run lint

test: npm
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "npm dev tools",
"main": "index.js",
"scripts": {
"lint": "eslint ./src/js/*.js ./src/js/**/*.js ./**/*.json ./platform/**/*.js ",
"lint": "eslint --no-warn-ignored -- ./src/js/*.js ./src/js/**/*.js ./**/*.json ./platform/**/*.js ",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down
1 change: 0 additions & 1 deletion tools/make-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ rm -rf $DES
# Target-specific
cp platform/npm/.npmignore $DES/
cp platform/npm/*.json $DES/
cp platform/npm/.*.json $DES/
cp platform/npm/*.js $DES/
cp -R platform/npm/tests $DES/
cp platform/npm/README.md $DES/
Expand Down

0 comments on commit efd1d7d

Please sign in to comment.