OLD | NEW |
1 # DevTools Scripts | 1 # DevTools Scripts |
2 | 2 |
3 ## Development workflow scripts | 3 ## Development workflow scripts |
4 | 4 |
5 These are scripts that can be useful to run independently as you're working on C
hrome DevTools front-end. | 5 These are scripts that can be useful to run independently as you're working on C
hrome DevTools front-end. |
6 | 6 |
7 The newer scripts such as for testing and hosted mode are written in Node.js, wh
ich has become the standard toolchain for web apps. The older scripts such as bu
ilding (e.g. bundling and minifying) are written in Python, which has first-clas
s support in Chromium's infrastructure. | 7 The newer scripts such as for testing and hosted mode are written in Node.js, wh
ich has become the standard toolchain for web apps. The older scripts such as bu
ilding (e.g. bundling and minifying) are written in Python, which has first-clas
s support in Chromium's infrastructure. |
8 | 8 |
9 ## Overview | 9 ## Overview |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 - install_node_deps.py - installs node.js & npm modules | 25 - install_node_deps.py - installs node.js & npm modules |
26 - lint_javascript.py - run eslint | 26 - lint_javascript.py - run eslint |
27 - optimize_png_images.py - manually run when adding png images | 27 - optimize_png_images.py - manually run when adding png images |
28 | 28 |
29 ### Node.js scripts | 29 ### Node.js scripts |
30 | 30 |
31 The easiest way to run the node.js scripts is to use `npm run` which displays al
l the commands. For more information on the specific `npm run` commands, take a
look at the primary devtools front-end readme (`../readme.md`). | 31 The easiest way to run the node.js scripts is to use `npm run` which displays al
l the commands. For more information on the specific `npm run` commands, take a
look at the primary devtools front-end readme (`../readme.md`). |
32 | 32 |
33 ## Closure | 33 ## Closure |
34 | 34 |
35 DevTools manually rolls the closure compiler to ./closure. If you manually roll
closure compiler, you will need to re-generate the closure_runner (in ./closure)
and jsdoc_validator custom jars using the python scripts in their respective di
rectory. Make sure you use JDK 7 to compile these jars, otherwise they won't run
on buildbot. If you compile with JDK 7, anyone with Java 7 or Java 8 should be
able to run the jar. | 35 DevTools manually rolls the closure compiler to ./closure. If you manually roll
closure compiler, you will need to re-generate the closure_runner (in ./closure)
and jsdoc_validator custom jars using the python scripts in their respective di
rectory. |
OLD | NEW |