Index: package.json |
=================================================================== |
--- a/package.json |
+++ b/package.json |
@@ -1,20 +1,22 @@ |
{ |
"name": "adblockplusui", |
"private": true, |
"description": "Adblock Plus UI", |
"scripts": { |
+ "bash:js": "eslint ./js/**/*.js && bash -c 'echo \"/* eslint-disable */$(browserify --node --no-bundle-external $0)\">$1'", |
+ "bash:css": "node-sass --output $1 $0", |
"lint": "npm run lint:js", |
"lint:js": "eslint ./*.js ./lib/*.js ./ext/*.js", |
"prepare": "python2 ensure_dependencies.py", |
"start": "http-server & npm run watch", |
"bundle": "npm run bundle:desktop-options.js && npm run bundle:desktop-options.css", |
- "bundle:desktop-options.css": "node-sass --output skin css/desktop-options.scss", |
- "bundle:desktop-options.js": "eslint ./js/**/*.js && echo '/* eslint-disable */// BUNDLED FILE'>./desktop-options.js && browserify --node --no-bundle-external js/desktop-options.js >> ./desktop-options.js", |
+ "bundle:desktop-options.css": "npm run bash:css ./css/desktop-options.scss ./skin/desktop-options.css", |
+ "bundle:desktop-options.js": "npm run bash:js ./js/desktop-options.js ./desktop-options.js", |
"watch": "npm run watch:desktop-options.js & npm run watch:desktop-options.css", |
"watch:desktop-options.css": "watch 'npm run bundle:desktop-options.css' ./css", |
"watch:desktop-options.js": "watch 'npm run bundle:desktop-options.js' ./js", |
"postinstall": "npm run bundle" |
}, |
"devDependencies": { |
"browserify": "^16.1.0", |
"eslint": "^4.16.0", |