New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update docs example dependencies to version 8 #30385
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0a1ddaf
docs: update docs example dependencies to version 8
brandonroberts d23af73
fixup! docs: update docs example dependencies to version 8
brandonroberts 532fbe8
fixup! docs: update docs example dependencies to version 8
brandonroberts 56dfafe
fixup! docs: update docs example dependencies to version 8
brandonroberts bf5a174
fixup! docs: update docs example dependencies to version 8
brandonroberts ec2b95c
fixup! docs: update docs example dependencies to version 8
brandonroberts 9976578
fixup! docs: update docs example dependencies to version 8
brandonroberts 2aef84c
fixup! docs: update docs example dependencies to version 8
brandonroberts d272593
fixup! docs: update docs example dependencies to version 8
brandonroberts File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
{ | ||
"projectType": "elements" | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
**/yarn.lock | ||
**/package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,50 @@ | ||
# How to update the CLI boilerplate | ||
# How to update the CLI project | ||
|
||
The boilerplate is updated by hand so you normally update it every minor version unless there is a major bug to fix. | ||
The Angular CLI default setup is updated using `ng update`. Any necessary file changes will be done automatically through migration schematics. | ||
|
||
## Getting a new boilerplate | ||
|
||
The first thing would be updating the CLI globally | ||
In the `cli` folder, update the Angular CLI depedencies to the latest version: | ||
|
||
``` | ||
npm i -g @angular/cli | ||
ng update @angular/cli --next | ||
``` | ||
|
||
Then create a new dummy project in a temporary folder outside angular | ||
Then update the Angular Framework dependencies to the latest version: | ||
|
||
``` | ||
ng new dummy | ||
ng update @angular/core --next | ||
``` | ||
|
||
Now you have a fresh application to get our new boilerplate files. | ||
|
||
## Updating files | ||
|
||
From `dummy` you can replace the following files into `aio/tools/examples/shared/boilerplate/cli`: | ||
|
||
* .editorconfig | ||
* angular.json | ||
* package.json | ||
* tsconfig.json | ||
* tslint.json | ||
* e2e/src/app.po.ts | ||
* e2e/protractor.conf.js | ||
* e2e/tsconfig.e2e.json | ||
* src/environments/environment.prod.ts | ||
* src/environments/environment.ts | ||
* src/browserslist | ||
* src/favicon.ico | ||
* src/karma.conf.js | ||
* src/polyfills.js | ||
* src/styles.css | ||
* src/test.ts | ||
* src/tsconfig.app.json | ||
* src/tsconfig.spec.json | ||
* src/tslint.json | ||
* src/typings.d.ts | ||
|
||
### angular.json | ||
|
||
Update the `project > name` to `angular.io-example`. | ||
|
||
### package.json | ||
|
||
Update the `name` to `angular.io-example`. | ||
|
||
### src/tsconfig.app.json | ||
|
||
This file is small enough and there are a few new excludes, update by hand. | ||
Commit any changes to the `cli` folder to the repository. | ||
|
||
## Updating other CLI-based projects | ||
|
||
Along with the boilerplate files for the `cli` folder, the other cli-based projects need to be updated also. Each cli-based project has slightly modified files specific to the project type. Make sure any necessary changes to these projects are made also to be in alignment with the `cli` project files. | ||
|
||
The specific changes to each project type are listed below: | ||
|
||
* i18n | ||
- angular.json | ||
- Includes additional configurations for `build`, `serve`, and `e2e` for different locales | ||
- package.json | ||
- Includes custom scripts for building and serving different locales | ||
* ivy | ||
- cli/tsconfig.app.json | ||
- Includes an `angularCompilerOptions` object with `enableIvy` set to `true` | ||
* schematics | ||
- angular.json | ||
- Includes a `my-lib` project that contains a library with example schematics | ||
* service-worker | ||
- angular.json | ||
- Has `serviceWorker` set to `true` in the `production` build target | ||
- package.json | ||
- Includes `@angular/service-worker` in `dependencies` | ||
* testing | ||
- angular.json | ||
- Includes `src/test.css` in the `styles` for the `test` target | ||
* universal | ||
- angular.json | ||
- Includes a `server` target in the `build` architect runners | ||
- package.json | ||
- Includes custom scripts for building the `server` | ||
- Includes additional `dependencies` on `@nguniversal/common`, `@nguniversal/express-engine`, and `@nguniversal/module-map-ngfactory-loader` | ||
- Includes `devDependencies` on `@angular/platform-server`, and `ts-loader` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉