mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Add eslint dependency within Node.js package (#3813)
This commit is contained in:
parent
f98666f7a3
commit
daff6b3a34
4 changed files with 7 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -28,12 +28,10 @@ dist/build/uBlock0.nodejs: tools/make-nodejs.sh $(sources) $(platform) $(assets)
|
|||
nodejs: dist/build/uBlock0.nodejs
|
||||
|
||||
lint: nodejs
|
||||
eslint -c platform/nodejs/eslintrc.json \
|
||||
dist/build/uBlock0.nodejs/js \
|
||||
dist/build/uBlock0.nodejs/*.js
|
||||
cd dist/build/uBlock0.nodejs && npm install && npm run lint
|
||||
|
||||
test: nodejs
|
||||
cd dist/build/uBlock0.nodejs && npm run test
|
||||
cd dist/build/uBlock0.nodejs && npm install && npm run test
|
||||
|
||||
# Update submodules.
|
||||
update-submodules:
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "node build.js",
|
||||
"lint": "eslint js/ *.js",
|
||||
"test": "node test.js"
|
||||
},
|
||||
"repository": {
|
||||
|
@ -27,5 +28,8 @@
|
|||
"engines": {
|
||||
"node": ">=14.0.0",
|
||||
"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'))" \
|
||||
> $DES/data/easyprivacy.json
|
||||
|
||||
cp platform/nodejs/.*.json $DES/
|
||||
cp platform/nodejs/*.js $DES/
|
||||
cp platform/nodejs/*.json $DES/
|
||||
cp platform/nodejs/README.md $DES/
|
||||
|
|
Loading…
Reference in a new issue