Index: package.json |
=================================================================== |
--- a/package.json |
+++ b/package.json |
@@ -3,17 +3,17 @@ |
"private": true, |
"description": "Adblock Plus UI", |
"scripts": { |
"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", |
- "bundle:desktop-options": "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": "eslint ./js/**/*.js && bash -c 'echo \"/* eslint-disable */$(browserify --node --no-bundle-external js/desktop-options.js)\">./desktop-options.js'", |
Thomas Greiner
2018/03/07 13:48:11
Note: That's good for now but maybe we should star
a.giammarchi
2018/03/07 14:09:00
one possible improvement is to have a single bash.
Thomas Greiner
2018/03/07 14:25:49
Sounds like a workable approach and it's also pret
|
"watch": "npm run watch:desktop-options", |
"watch:desktop-options": "watch 'npm run bundle:desktop-options' ./js", |
"postinstall": "npm run bundle" |
}, |
"devDependencies": { |
"browserify": "^16.1.0", |
"eslint": "^4.16.0", |
"eslint-config-eyeo": "^2.0.0", |