mirror of https://github.com/gorhill/uBlock.git
Add eslint dependency within Node.js package (#3813)
This commit is contained in:
parent
f98666f7a3
commit
daff6b3a34
6
Makefile
6
Makefile
|
@ -28,12 +28,10 @@ dist/build/uBlock0.nodejs: tools/make-nodejs.sh $(sources) $(platform) $(assets)
|
||||||
nodejs: dist/build/uBlock0.nodejs
|
nodejs: dist/build/uBlock0.nodejs
|
||||||
|
|
||||||
lint: nodejs
|
lint: nodejs
|
||||||
eslint -c platform/nodejs/eslintrc.json \
|
cd dist/build/uBlock0.nodejs && npm install && npm run lint
|
||||||
dist/build/uBlock0.nodejs/js \
|
|
||||||
dist/build/uBlock0.nodejs/*.js
|
|
||||||
|
|
||||||
test: nodejs
|
test: nodejs
|
||||||
cd dist/build/uBlock0.nodejs && npm run test
|
cd dist/build/uBlock0.nodejs && npm install && npm run test
|
||||||
|
|
||||||
# Update submodules.
|
# Update submodules.
|
||||||
update-submodules:
|
update-submodules:
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node build.js",
|
"build": "node build.js",
|
||||||
|
"lint": "eslint js/ *.js",
|
||||||
"test": "node test.js"
|
"test": "node test.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -27,5 +28,8 @@
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0",
|
"node": ">=14.0.0",
|
||||||
"npm": ">=6.14.4"
|
"npm": ">=6.14.4"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"eslint": "^7.32.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,7 @@ node -pe "JSON.stringify(fs.readFileSync('$THIRDPARTY/easylist.txt', 'utf8'))" \
|
||||||
node -pe "JSON.stringify(fs.readFileSync('$THIRDPARTY/easyprivacy.txt', 'utf8'))" \
|
node -pe "JSON.stringify(fs.readFileSync('$THIRDPARTY/easyprivacy.txt', 'utf8'))" \
|
||||||
> $DES/data/easyprivacy.json
|
> $DES/data/easyprivacy.json
|
||||||
|
|
||||||
|
cp platform/nodejs/.*.json $DES/
|
||||||
cp platform/nodejs/*.js $DES/
|
cp platform/nodejs/*.js $DES/
|
||||||
cp platform/nodejs/*.json $DES/
|
cp platform/nodejs/*.json $DES/
|
||||||
cp platform/nodejs/README.md $DES/
|
cp platform/nodejs/README.md $DES/
|
||||||
|
|
Loading…
Reference in New Issue