| 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 |