Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: package.json

Issue 29715740: Noissue - bundle in one operation to ensure no races (Closed)
Patch Set: Created March 6, 2018, 3:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« README.md ('K') | « README.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« README.md ('K') | « README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld