Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # web/ | 1 # web/ |
| 2 | 2 |
| 3 Common html/css/js files shared by all apps live here, as well as a scripts | 3 Common html/css/js files shared by all apps live here, as well as a scripts |
| 4 to "build" web applications. | 4 to "build" web applications. |
| 5 | 5 |
| 6 ## Setup | 6 ## Setup |
| 7 | 7 |
| 8 *Hint*: If you are using infra.git gclient solution, these are already | |
| 9 in your path after `eval ./env.go`. | |
|
Ryan Tseng
2017/06/16 19:48:35
Maybe word it as "You can skip the following steps
tandrii(chromium)
2017/06/16 19:51:29
like this?
| |
| 10 | |
| 8 1. Install node & npm: https://docs.npmjs.com/getting-started/installing-node | 11 1. Install node & npm: https://docs.npmjs.com/getting-started/installing-node |
| 9 1. Install the rest: `./web.py install` | 12 1. Install the rest: `./web.py install` |
| 10 | 13 |
| 11 ## Building apps | 14 ## Building apps |
| 12 | 15 |
| 13 All supported web apps are in `web/apps/`. The snippet below uses rpcexplorer | 16 All supported web apps are in `web/apps/`. The snippet below uses rpcexplorer |
| 14 as an example. | 17 as an example. |
| 15 | 18 |
| 16 ```shell | 19 ```shell |
| 17 cd web | 20 cd web |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 | 109 |
| 107 ///<reference path="../inc/component/importer.ts" /> | 110 ///<reference path="../inc/component/importer.ts" /> |
| 108 ``` | 111 ``` |
| 109 | 112 |
| 110 This will cause Gulp to build a `main.js` file containing the correctly-ordered | 113 This will cause Gulp to build a `main.js` file containing the correctly-ordered |
| 111 chain of referenced components ready for inclusion. | 114 chain of referenced components ready for inclusion. |
| 112 | 115 |
| 113 If an application chooses to import external modules, those imports will require | 116 If an application chooses to import external modules, those imports will require |
| 114 a module loader such as [require.js](http://requirejs.org/) to be installed in | 117 a module loader such as [require.js](http://requirejs.org/) to be installed in |
| 115 the application. | 118 the application. |
| OLD | NEW |