mirror of
https://github.com/gorhill/uBlock.git
synced 2025-01-31 20:21:35 +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)
|
dist/build/uBlock0.npm: tools/make-nodejs.sh $(sources) $(platform) $(assets)
|
||||||
tools/make-npm.sh
|
tools/make-npm.sh
|
||||||
|
|
||||||
|
npm: dist/build/uBlock0.npm
|
||||||
|
|
||||||
# Dev tools
|
# Dev tools
|
||||||
node_modules:
|
node_modules:
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
npm: node_modules
|
init: node_modules
|
||||||
|
|
||||||
lint: npm
|
lint: init
|
||||||
npm run lint
|
npm run lint
|
||||||
|
|
||||||
test: npm
|
test: npm
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"description": "npm dev tools",
|
"description": "npm dev tools",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"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"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -17,7 +17,6 @@ rm -rf $DES
|
|||||||
# Target-specific
|
# Target-specific
|
||||||
cp platform/npm/.npmignore $DES/
|
cp platform/npm/.npmignore $DES/
|
||||||
cp platform/npm/*.json $DES/
|
cp platform/npm/*.json $DES/
|
||||||
cp platform/npm/.*.json $DES/
|
|
||||||
cp platform/npm/*.js $DES/
|
cp platform/npm/*.js $DES/
|
||||||
cp -R platform/npm/tests $DES/
|
cp -R platform/npm/tests $DES/
|
||||||
cp platform/npm/README.md $DES/
|
cp platform/npm/README.md $DES/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user