-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Angular v14 (#12901)
* Add support for Angular v14 - Support Angular 14 - Support rxjs 7.5.5, tsickle 0.46.3, ngPackagr 14.0.2, zonejs 0.11.5 - Requires typescript >= 4.6.0 and < 4.8.0 * Review comments - Remove duplicate tests - Added openapi-generator-ignore * Update samples/client/petstore/typescript-angular-v14-provided-in-root/pom.xml * Update samples/client/petstore/typescript-angular-v14-provided-in-root/pom.xml * Update samples/client/petstore/typescript-angular-v14-provided-in-root/pom.xml * Review comments - Added typescript-angular-v14-provided-in-root test module to root pom. * update samples Co-authored-by: Esteban Gehring <[email protected]> Co-authored-by: Esteban Gehring <[email protected]>
- Loading branch information
1 parent
01a9c55
commit 904674c
Showing
77 changed files
with
27,307 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
generatorName: typescript-angular | ||
outputDir: samples/client/petstore/typescript-angular-v14-provided-in-root/builds/default | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/typescript-angular | ||
additionalProperties: | ||
ngVersion: 14.0.5 | ||
supportsES6: true |
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
41 changes: 41 additions & 0 deletions
41
samples/client/petstore/typescript-angular-v14-provided-in-root/.gitignore
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,41 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
/typings | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
.angular |
111 changes: 111 additions & 0 deletions
111
samples/client/petstore/typescript-angular-v14-provided-in-root/angular.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 |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "tests", | ||
"projects": { | ||
"test-default": { | ||
"root": "tests/default", | ||
"sourceRoot": "tests/default/src", | ||
"projectType": "application", | ||
"prefix": "app", | ||
"schematics": {}, | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-devkit/build-angular:browser", | ||
"options": { | ||
"aot": true, | ||
"outputPath": "tests/default/dist", | ||
"index": "tests/default/src/index.html", | ||
"main": "tests/default/src/main.ts", | ||
"polyfills": "tests/default/src/polyfills.ts", | ||
"tsConfig": "tests/default/src/tsconfig.app.json", | ||
"assets": [ | ||
"tests/default/src/favicon.ico", | ||
"tests/default/src/assets" | ||
], | ||
"styles": [ | ||
"tests/default/src/styles.css" | ||
], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"budgets": [ | ||
{ | ||
"type": "anyComponentStyle", | ||
"maximumWarning": "6kb" | ||
} | ||
], | ||
"fileReplacements": [ | ||
{ | ||
"replace": "tests/default/src/environments/environment.ts", | ||
"with": "tests/default/src/environments/environment.prod.ts" | ||
} | ||
], | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true | ||
}, | ||
"development": {} | ||
}, | ||
"defaultConfiguration": "production" | ||
}, | ||
"serve": { | ||
"builder": "@angular-devkit/build-angular:dev-server", | ||
"options": { | ||
}, | ||
"configurations": { | ||
"production": { | ||
"browserTarget": "test-default:build:production" | ||
}, | ||
"development": { | ||
"browserTarget": "test-default:build:development" | ||
} | ||
}, | ||
"defaultConfiguration": "development" | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "test-default:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "tests/default/src/test.ts", | ||
"polyfills": "tests/default/src/polyfills.ts", | ||
"tsConfig": "tests/default/src/tsconfig.spec.json", | ||
"karmaConfig": "tests/default/src/karma.conf.js", | ||
"styles": [ | ||
"tests/default/src/styles.css" | ||
], | ||
"scripts": [], | ||
"assets": [ | ||
"tests/default/src/favicon.ico", | ||
"tests/default/src/assets" | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"tests/default/src/tsconfig.app.json", | ||
"tests/default/src/tsconfig.spec.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "test-default" | ||
} |
4 changes: 4 additions & 0 deletions
4
samples/client/petstore/typescript-angular-v14-provided-in-root/builds/default/.gitignore
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,4 @@ | ||
wwwroot/*.js | ||
node_modules | ||
typings | ||
dist |
23 changes: 23 additions & 0 deletions
23
...petstore/typescript-angular-v14-provided-in-root/builds/default/.openapi-generator-ignore
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,23 @@ | ||
# OpenAPI Generator Ignore | ||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator | ||
|
||
# Use this file to prevent files from being overwritten by the generator. | ||
# The patterns follow closely to .gitignore or .dockerignore. | ||
|
||
# As an example, the C# client generator defines ApiClient.cs. | ||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: | ||
#ApiClient.cs | ||
|
||
# You can match any string of characters against a directory, file or extension with a single asterisk (*): | ||
#foo/*/qux | ||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | ||
|
||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**): | ||
#foo/**/qux | ||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | ||
|
||
# You can also negate patterns with an exclamation (!). | ||
# For example, you can ignore all files in a docs folder with the file extension .md: | ||
#docs/*.md | ||
# Then explicitly reverse the ignore rule for a single file: | ||
#!docs/README.md |
19 changes: 19 additions & 0 deletions
19
.../petstore/typescript-angular-v14-provided-in-root/builds/default/.openapi-generator/FILES
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,19 @@ | ||
.gitignore | ||
README.md | ||
api.module.ts | ||
api/api.ts | ||
api/pet.service.ts | ||
api/store.service.ts | ||
api/user.service.ts | ||
configuration.ts | ||
encoder.ts | ||
git_push.sh | ||
index.ts | ||
model/apiResponse.ts | ||
model/category.ts | ||
model/models.ts | ||
model/order.ts | ||
model/pet.ts | ||
model/tag.ts | ||
model/user.ts | ||
variables.ts |
1 change: 1 addition & 0 deletions
1
...etstore/typescript-angular-v14-provided-in-root/builds/default/.openapi-generator/VERSION
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 @@ | ||
6.1.0-SNAPSHOT |
Oops, something went wrong.