mirror of
https://github.com/gorhill/uBlock.git
synced 2025-01-31 12:11:36 +01:00
Fix makefile
This commit is contained in:
parent
7cdf56f69a
commit
efd1d7d171
6
Makefile
6
Makefile
@ -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
|
||||
|
@ -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": {
|
||||
|
@ -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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user