Commit dea93c4
authored
Add fine-grained Closure Library build rules (#269)
This change introduced a fine-grained build graph for the Closure Library. This
is most useful when the Closure Compiler isn't being used. For example, it's
now possible to depend on `@io_bazel_rules_closure//closure/library/object`
which is 11mB smaller (in terms of naïvely concatenated JavaScript sources)
than getting the same API from `@io_bazel_rules_closure//closure/library`.
The latency of tools like Clutz should also be improved.
The following additional changes needed to be made:
- `deps.js` no longer needs to be an implicit dependency thanks to
`transitionalforwarddeclarations.js`.
- A `lenient` attribute is now available for `closure_js_library` which makes
the compiler more easy-going.
- `goog.labs`, `goog.ui`, and third party APIs may no longer be exported from
`//closure/library` and `//closure/library:testing` by default.1 parent 6403db4 commit dea93c4
131 files changed
Lines changed: 13768 additions & 1232 deletions
File tree
- closure
- compiler
- test/closure_js_deps
- library
- a11y/aria
- array
- asserts
- async
- bootstrap
- color
- crypt
- cssom
- iframe
- datasource
- date
- db
- debug
- devcss
- delegate
- disposable
- dom
- animationframe
- browserrange
- pattern
- callback
- editor
- plugins
- events
- format
- fs
- functions
- fx
- anim
- css3
- graphics
- ext
- history
- html
- sanitizer
- i18n
- uchar
- iter
- json
- labs
- dom
- events
- format
- i18n
- iterable
- mock
- net
- webchannel
- pubsub
- storage
- structs
- style
- testing
- useragent
- loader
- locale
- log
- math
- interpolator
- memoize
- messaging
- module
- net
- rpc
- streams
- xpc
- object
- positioning
- promise
- proto2
- proto
- pubsub
- reflect
- result
- soy
- spell
- stats
- storage
- mechanism
- string
- structs
- style
- testing
- async
- editor
- events
- fs
- i18n
- messaging
- net
- proto2
- storage
- style
- ui
- timer
- tweak
- ui
- ac
- editor
- emoji
- media
- style/app
- tree
- uri
- useragent
- vec
- webgl
- window
- private
- protobuf
- templates
- test
- testing/test
- java/com/google/javascript/jscomp
- third_party/closure/library
- caja/string/html
- dojo/dom
- loremipsum/text
- mochikit/async
- svgpan
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | | - | |
47 | | - | |
| 45 | + | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
272 | 270 | | |
273 | 271 | | |
274 | 272 | | |
275 | | - | |
276 | 273 | | |
277 | 274 | | |
278 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
63 | 76 | | |
64 | 77 | | |
65 | 78 | | |
| |||
74 | 87 | | |
75 | 88 | | |
76 | 89 | | |
77 | | - | |
78 | | - | |
| 90 | + | |
79 | 91 | | |
80 | 92 | | |
81 | 93 | | |
| |||
176 | 188 | | |
177 | 189 | | |
178 | 190 | | |
179 | | - | |
| 191 | + | |
180 | 192 | | |
181 | 193 | | |
182 | 194 | | |
| |||
199 | 211 | | |
200 | 212 | | |
201 | 213 | | |
| 214 | + | |
202 | 215 | | |
203 | 216 | | |
204 | 217 | | |
| |||
274 | 287 | | |
275 | 288 | | |
276 | 289 | | |
| 290 | + | |
| 291 | + | |
277 | 292 | | |
278 | 293 | | |
279 | 294 | | |
| |||
287 | 302 | | |
288 | 303 | | |
289 | 304 | | |
| 305 | + | |
290 | 306 | | |
291 | | - | |
292 | | - | |
| 307 | + | |
293 | 308 | | |
294 | 309 | | |
295 | 310 | | |
| |||
311 | 326 | | |
312 | 327 | | |
313 | 328 | | |
314 | | - | |
315 | | - | |
| 329 | + | |
316 | 330 | | |
317 | 331 | | |
318 | 332 | | |
| |||
337 | 351 | | |
338 | 352 | | |
339 | 353 | | |
| 354 | + | |
340 | 355 | | |
341 | 356 | | |
342 | 357 | | |
| |||
347 | 362 | | |
348 | 363 | | |
349 | 364 | | |
350 | | - | |
351 | 365 | | |
352 | 366 | | |
353 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments