@@ -146,17 +146,20 @@ You can find more details about changes between versions in [the Releases tab on
146
146
147
147
``` bash
148
148
git clone https://github.com/angular/angular-cli.git
149
- cd angular-cli
149
+ npm install
150
+ npm run build
151
+ cd dist/@angular/cli
150
152
npm link
151
153
```
152
154
153
155
` npm link ` is very similar to ` npm install -g ` except that instead of downloading the package
154
- from the repo, the just cloned ` angular- cli/ ` folder becomes the global package.
156
+ from the repo, the just builded ` dist/@ angular/ cli/` folder becomes the global package.
155
157
Additionally, this repository publishes several packages and we use special logic to load all of them
156
158
on development setups.
157
159
158
160
Any changes to the files in the ` angular-cli/ ` folder will immediately affect the global ` @angular/cli ` package,
159
- allowing you to quickly test any changes you make to the cli project.
161
+ meaning that, in order to quickly test any changes you make to the cli project, you should simply just run ` npm run build `
162
+ again.
160
163
161
164
Now you can use ` @angular/cli ` via the command line:
162
165
@@ -178,8 +181,8 @@ You can also use `ng new foo --link-cli` to automatically link the `@angular/cli
178
181
Please read the official [ npm-link documentation] ( https://docs.npmjs.com/cli/link )
179
182
and the [ npm-link cheatsheet] ( http://browsenpm.org/help#linkinganynpmpackagelocally ) for more information.
180
183
181
- To run the Angular CLI test suite use the ` node tests/run_e2e.js ` command.
182
- It can also receive a filename to only run that test (e.g. ` node tests/run_e2e.js tests/e2e/tests/build/dev-build.ts ` ).
184
+ To run the Angular CLI test suite use the ` node ./ tests/legacy-cli/ run_e2e ` command.
185
+ It can also receive a filename to only run that test (e.g. ` node ./ tests/legacy-cli/ run_e2e tests/legacy-cli /e2e/tests/build/dev-build.ts ` ).
183
186
184
187
As part of the test procedure, all packages will be built and linked.
185
188
You will need to re-run ` npm link ` to re-link the development Angular CLI environment after tests finish.
0 commit comments