| OLD | NEW |
| 1 # Closure Compilation | 1 # Closure Compilation |
| 2 | 2 |
| 3 ## I just need to fix the compile! | 3 ## I just need to fix the compile! |
| 4 | 4 |
| 5 To locally run closure compiler like the bots, do this: | 5 To locally run closure compiler like the bots, do this: |
| 6 | 6 |
| 7 ```shell | 7 ```shell |
| 8 cd $CHROMIUM_SRC | 8 cd $CHROMIUM_SRC |
| 9 # sudo apt-get install openjdk-7-jre # may be required | 9 # sudo apt-get install openjdk-7-jre # may be required |
| 10 GYP_GENERATORS=ninja tools/gyp/gyp --depth . third_party/closure_compiler/compil
ed_resources.gyp | 10 GYP_GENERATORS=ninja tools/gyp/gyp --depth . third_party/closure_compiler/compil
ed_resources.gyp |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 The type information is | 32 The type information is |
| 33 [annotated in comment tags](https://developers.google.com/closure/compiler/docs/
js-for-compiler) | 33 [annotated in comment tags](https://developers.google.com/closure/compiler/docs/
js-for-compiler) |
| 34 that are briefly described below. | 34 that are briefly described below. |
| 35 | 35 |
| 36 See also: | 36 See also: |
| 37 [the design doc](https://docs.google.com/a/chromium.org/document/d/1Ee9ggmp6U-lM
-w9WmxN5cSLkK9B5YAq14939Woo-JY0/edit). | 37 [the design doc](https://docs.google.com/a/chromium.org/document/d/1Ee9ggmp6U-lM
-w9WmxN5cSLkK9B5YAq14939Woo-JY0/edit). |
| 38 | 38 |
| 39 ## Assumptions | 39 ## Assumptions |
| 40 | 40 |
| 41 A working Chrome checkout. See here: | 41 A working Chrome checkout. See here: |
| 42 http://www.chromium.org/developers/how-tos/get-the-code | 42 https://www.chromium.org/developers/how-tos/get-the-code |
| 43 | 43 |
| 44 ## Typechecking Your Javascript | 44 ## Typechecking Your Javascript |
| 45 | 45 |
| 46 So you'd like to compile your JavaScript! | 46 So you'd like to compile your JavaScript! |
| 47 | 47 |
| 48 Maybe you're working on a page that looks like this: | 48 Maybe you're working on a page that looks like this: |
| 49 | 49 |
| 50 ```html | 50 ```html |
| 51 <script src="other_file.js"></script> | 51 <script src="other_file.js"></script> |
| 52 <script src="my_product/my_file.js"></script> | 52 <script src="my_product/my_file.js"></script> |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 'jscomp_error=duplicate', | 279 'jscomp_error=duplicate', |
| 280 'jscomp_error=misplacedTypeAnnotation', | 280 'jscomp_error=misplacedTypeAnnotation', |
| 281 ], | 281 ], |
| 282 'disabled_closure_args': [], # remove the disabled closure args for more
strict compilation | 282 'disabled_closure_args': [], # remove the disabled closure args for more
strict compilation |
| 283 }, | 283 }, |
| 284 'includes': ['../third_party/closure_compiler/compile_js.gypi'], | 284 'includes': ['../third_party/closure_compiler/compile_js.gypi'], |
| 285 }, | 285 }, |
| 286 ], | 286 ], |
| 287 } | 287 } |
| 288 ``` | 288 ``` |
| OLD | NEW |