-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for Angular v11 (follow up) (#120)
* work in progress * docs: keeping track of all the forks * chore: migrate from `configuration` to `buildTarget` - only unit tests are evaluated right now - no real tests were done yet * ci: bump node version to see if this fixes the break cause it works on my machine (tm) * Revert "ci: bump node version to see if this fixes the break" This reverts commit b300026. * tweaking dependencies / peerDependencies as seen in angularfire: https://github.com/angular/angularfire/blob/2ce41aa0af8c5f42df65f5ac5b2b5a50fb6f4300/package.json#L41-L68 commander has some breaking changes, so let's risk nothing here and rollback * fixing build and tests, cleanup see angular-schule/ngx-deploy-starter#10 * minor: docs + removes astronaut emoij ... since 👨🚀 emoij is combined (🧑🚀) and breaks on some cmds * docs: breaking change, 1.0.0-rc.1 * docs: suggestion from @fmalcher * Apply suggestions from code review many thanks to @fmalcher Co-authored-by: Ferdinand Malcher <[email protected]> Co-authored-by: Ferdinand Malcher <[email protected]>
- Loading branch information
1 parent
24d9922
commit 6e492b9
Showing
15 changed files
with
200 additions
and
339 deletions.
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
- [4. Testing](#4-testing) | ||
- [Testing the standalone CLI](#testing-the-standalone-cli) | ||
- [Publish to NPM](#publish-to-npm) | ||
- [Usage of Prettier Formatter](#usage-of-prettier-formatter) | ||
|
||
## How to start | ||
|
||
|
@@ -28,15 +27,19 @@ This may be useful when you want to try the latest non-published version of this | |
|
||
Follow the instructions for [checking and updating the Angular CLI version](#angular-cli) and then link the package. | ||
|
||
### 1. Angular CLI | ||
### 1. Optional: Latest Angular version | ||
|
||
1. Install the next version of the Angular CLI. | ||
This builder requires the method `getTargetOptions()` from the Angular DevKit which was introduced [here](https://github.com/angular/angular-cli/pull/13825/files). | ||
All Angular projects with Angular 9 and greater are supposed to be compatible. (Actually it works with some versions of 8.x too, but you want to be up to date anyway, don't you?) | ||
Execute the next three steps, if your test project is still older. | ||
|
||
1. Install the latest version of the Angular CLI. | ||
|
||
```sh | ||
npm install -g @angular/cli | ||
``` | ||
|
||
2. Run `ng version`, make sure you have installed Angular CLI v8.3.0 or greater. | ||
2. Run `ng version`, to make sure you have installed Angular v9.0.0 or greater. | ||
|
||
3. Update your existing project using the command: | ||
|
||
|
@@ -154,16 +157,20 @@ Use VSCode and debug the task `Launch Standalone Program`. | |
|
||
``` | ||
cd angular-cli-ghpages/src | ||
npx prettier --write '**/*' | ||
npm run prettier | ||
npm run build | ||
npm run test | ||
npm publish dist | ||
npm dist-tag add [email protected] next | ||
``` | ||
|
||
## Usage of Prettier Formatter | ||
## Keeping track of all the forks | ||
|
||
[ngx-deploy-starter](https://github.com/angular-schule/ngx-deploy-starter/) and | ||
[angular-cli-ghpages](https://github.com/angular-schule/angular-cli-ghpages/) (both developed by Johannes Hoppe) are follow-up projects of the deprecated [ngx-gh demo](https://github.com/mgechev/ngx-gh). | ||
This project was a follow-up of the deploy schematics from the [angularfire](https://github.com/angular/angularfire/) project. | ||
|
||
Just execute `npx prettier --write '**/*'` and the code is formated automatically. | ||
Please ignore the errors for now. ([error] No parser could be inferred for file) | ||
To stay in sync with the stuff the Angular team is doing, you might want to keep an eye on the following files: | ||
|
||
We are still working on this, see https://github.com/angular-schule/ngx-deploy-starter/issues/10 . | ||
- [builder.ts](https://github.com/angular/angularfire/blob/master/src/schematics/deploy/builder.ts) | ||
- [actions.ts](https://github.com/angular/angularfire/blob/master/src/schematics/deploy/actions.ts) |
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 @@ | ||
dist |
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 +1,5 @@ | ||
{ | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"arrowParens": "avoid" | ||
} |
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
Oops, something went wrong.