Skip to content

Commit cc15444

Browse files
nlm-profilipesilva
authored andcommitted
docs(@angular/cli): update Development Hints
Due to the changes the devkit reintegration to this repository have bring, this old documentation didn't worked anymore, as the @angular/cli dependencies versions now are dynamics. So, we now need to build it before linking it with npm.
1 parent 68d87e8 commit cc15444

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

packages/angular/cli/README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,20 @@ You can find more details about changes between versions in [the Releases tab on
146146

147147
```bash
148148
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
150152
npm link
151153
```
152154

153155
`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.
155157
Additionally, this repository publishes several packages and we use special logic to load all of them
156158
on development setups.
157159

158160
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.
160163

161164
Now you can use `@angular/cli` via the command line:
162165

@@ -178,8 +181,8 @@ You can also use `ng new foo --link-cli` to automatically link the `@angular/cli
178181
Please read the official [npm-link documentation](https://docs.npmjs.com/cli/link)
179182
and the [npm-link cheatsheet](http://browsenpm.org/help#linkinganynpmpackagelocally) for more information.
180183

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`).
183186

184187
As part of the test procedure, all packages will be built and linked.
185188
You will need to re-run `npm link` to re-link the development Angular CLI environment after tests finish.

0 commit comments

Comments
 (0)