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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | package.json » ('j') | package.json » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Shared Adblock Plus UI code 1 Shared Adblock Plus UI code
2 =========================== 2 ===========================
3 3
4 The user interface elements defined in this repository will be used by various 4 The user interface elements defined in this repository will be used by various
5 Adblock Plus products like Adblock Plus for Firefox. Their functionality can be 5 Adblock Plus products like Adblock Plus for Firefox. Their functionality can be
6 tested within this repository, even though they might not work exactly the same 6 tested within this repository, even though they might not work exactly the same
7 as they will do in the final product. 7 as they will do in the final product.
8 8
9 Installing dependencies 9 Installing dependencies
10 ----------------------- 10 -----------------------
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 * ensure `browserify` uses `--node` and `--no-bundle-external` flags 97 * ensure `browserify` uses `--node` and `--no-bundle-external` flags
98 * point at the entry point, and output in the top level folder 98 * point at the entry point, and output in the top level folder
99 99
100 Accordingly, this is what happens with the `bundle:desktop-options`: 100 Accordingly, this is what happens with the `bundle:desktop-options`:
101 101
102 ```sh 102 ```sh
103 # the && operator ensure each step is executed only 103 # the && operator ensure each step is executed only
104 # if the previous one didn't produce an error 104 # if the previous one didn't produce an error
105 eslint ./js/**/*.js && 105 eslint ./js/**/*.js &&
106 # browserify doesn't offer a way to prefix with text 106 # browserify doesn't offer a way to prefix with text
107 # the file is hence created with eslint disabled and a warning 107 # the file is hence created with eslint disabled plus
108 echo '/* eslint-disable */// BUNDLED FILE' > ./desktop-options.js &&
109 # browserify take an entry point and bundle all its required files 108 # browserify take an entry point and bundle all its required files
110 # outputting the result into ./desktop-options.js 109 # outputting the result into ./desktop-options.js
111 browserify --node --no-bundle-external js/desktop-options.js >> ./desktop-option s.js 110 bash -c 'echo "/* eslint-disable */
111 $(browserify --node --no-bundle-external
112 js/desktop-options.js)">./desktop-options.js'
112 ``` 113 ```
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
113 114
114 For a new bundle, i.e. `mobile-options.js`, simply use the same procedure 115 For a new bundle, i.e. `mobile-options.js`, simply use the same procedure
115 but swap the `desktop-options` file/script name with `mobile-options`. 116 but swap the `desktop-options` file/script name with `mobile-options`.
116 117
117 The main `bundle` script should include each sub-bundle operation. 118 The main `bundle` script should include each sub-bundle operation.
118 119
119 Watching 120 Watching
120 -------- 121 --------
121 122
122 While developing, it is convenient to bundle automatically 123 While developing, it is convenient to bundle automatically
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 errors when adding new filters on the options page 194 errors when adding new filters on the options page
194 * `blockedURLs`: a comma-separated list of URLs that should be considered 195 * `blockedURLs`: a comma-separated list of URLs that should be considered
195 blocked (necessary to test the check for blocked scripts in sharing buttons). 196 blocked (necessary to test the check for blocked scripts in sharing buttons).
196 * `downloadStatus`: sets downloadStatus parameter for filter lists, can be used 197 * `downloadStatus`: sets downloadStatus parameter for filter lists, can be used
197 to trigger various filter list download errors 198 to trigger various filter list download errors
198 * `platform=chromium`: shows the opt-out for the developer tools panel 199 * `platform=chromium`: shows the opt-out for the developer tools panel
199 * `showNotificationUI=true`: simulates user having opted-out of notifications 200 * `showNotificationUI=true`: simulates user having opted-out of notifications
200 201
201 202
202 [crowdin]: https://crowdin.com 203 [crowdin]: https://crowdin.com
OLDNEW
« no previous file with comments | « no previous file | package.json » ('j') | package.json » ('J')

Powered by Google App Engine
This is Rietveld