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

Unified Diff: README.md

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
« no previous file with comments | « no previous file | package.json » ('j') | package.json » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
===================================================================
--- a/README.md
+++ b/README.md
@@ -99,21 +99,22 @@
Accordingly, this is what happens with the `bundle:desktop-options`:
```sh
# the && operator ensure each step is executed only
# if the previous one didn't produce an error
eslint ./js/**/*.js &&
# browserify doesn't offer a way to prefix with text
-# the file is hence created with eslint disabled and a warning
-echo '/* eslint-disable */// BUNDLED FILE' > ./desktop-options.js &&
+# the file is hence created with eslint disabled plus
# browserify take an entry point and bundle all its required files
# outputting the result into ./desktop-options.js
-browserify --node --no-bundle-external js/desktop-options.js >> ./desktop-options.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 Suggestion: Maybe we shouldn't include any code he
a.giammarchi 2018/03/07 14:09:00 my idea is that the README explains what happens i
Thomas Greiner 2018/03/07 14:25:48 That can go hand-in-hand with my other comment bec
For a new bundle, i.e. `mobile-options.js`, simply use the same procedure
but swap the `desktop-options` file/script name with `mobile-options`.
The main `bundle` script should include each sub-bundle operation.
Watching
« no previous file with comments | « no previous file | package.json » ('j') | package.json » ('J')

Powered by Google App Engine
This is Rietveld