Skip to content

Commit ec072d6

Browse files
committed
docs: remove instructions using ng update
1 parent 3ad2856 commit ec072d6

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

README.md

-7
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,8 @@ Local project package:
114114
rm -rf node_modules dist # use rmdir on Windows
115115
npm install --save-dev @angular/cli@latest
116116
npm install
117-
ng update
118117
```
119118

120-
Running `ng update` will check for changes in all the auto-generated files created by `ng new` and allow you to update yours. You are offered four choices for each changed file: `y` (overwrite), `n` (don't overwrite), `d` (show diff between your file and the updated file) and `h` (help).
121-
122-
Carefully read the diffs for each code file, and either accept the changes or incorporate them manually after `ng update` finishes.
123-
124-
**The main cause of errors after an update is failing to incorporate these updates into your code**.
125-
126119
You can find more details about changes between versions in [CHANGELOG.md](https://github.com/angular/angular-cli/blob/master/CHANGELOG.md).
127120

128121

docs/documentation/overview.md

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ End-to-end tests are run via [Protractor](https://angular.github.io/protractor/)
4444

4545
### Additional Commands
4646
* [ng new](new)
47-
* [ng update](update)
4847
* [ng serve](serve)
4948
* [ng generate](generate)
5049
* [ng test](test)

tests/e2e/tests/generate/component/component-duplicate.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ import { oneLine } from 'common-tags';
44

55
export default function () {
66
return ng('generate', 'component', 'test-component')
7-
.then((output) => {
8-
if (!output.match(/update src[\\|\/]app[\\|\/]app.module.ts/)) {
7+
.then(({ stdout }) => {
8+
if (!stdout .match(/update src[\\|\/]app[\\|\/]app.module.ts/)) {
99
throw new Error(oneLine`
1010
Expected to match
1111
"update src${path.sep}app${path.sep}app.module.ts"
12-
in ${output}.`);
12+
in ${stdout}.`);
1313
}
1414
})
1515
.then(() => ng('generate', 'component', 'test-component'))
16-
.then((output) => {
17-
if (!output.match(/identical src[\\|\/]app[\\|\/]app.module.ts/)) {
16+
.then(({ stdout }) => {
17+
if (!stdout.match(/identical src[\\|\/]app[\\|\/]app.module.ts/)) {
1818
throw new Error(oneLine`
1919
Expected to match
2020
"identical src${path.sep}app${path.sep}app.module.ts"
21-
in ${output}.`);
21+
in ${stdout}.`);
2222
}
2323
});
2424
}

0 commit comments

Comments
 (0)