1
0
mirror of https://github.com/gorhill/uBlock.git synced 2025-01-31 12:11:36 +01:00

Fix makefile

This commit is contained in:
Raymond Hill 2025-01-11 10:53:36 -05:00
parent 7cdf56f69a
commit efd1d7d171
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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": {

View File

@ -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/