Skip to content

Commit caf5ac9

Browse files
committed
add tests for ts angular v19
1 parent 486e0c5 commit caf5ac9

57 files changed

Lines changed: 27289 additions & 3 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/samples-typescript-client.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
# comment out below as there's no pom.xml
1414
#- samples/client/petstore/typescript-angular-v17-provided-in-root/**
1515
#- samples/client/petstore/typescript-angular-v18-provided-in-root/**
16-
#- samples/client/petstore/typescript-angular-v19-provided-in-root/**
16+
- samples/client/petstore/typescript-angular-v19-provided-in-root/**
1717
- samples/openapi3/client/petstore/typescript/builds/default/**
1818
# comment out due to build failure
1919
#- samples/openapi3/client/petstore/typescript/tests/default/**
@@ -50,7 +50,7 @@ on:
5050
- samples/client/petstore/typescript-angular-v16-provided-in-root/**
5151
#- samples/client/petstore/typescript-angular-v17-provided-in-root/**
5252
#- samples/client/petstore/typescript-angular-v18-provided-in-root/**
53-
#- samples/client/petstore/typescript-angular-v19-provided-in-root/**
53+
- samples/client/petstore/typescript-angular-v19-provided-in-root/**
5454
- samples/openapi3/client/petstore/typescript/builds/default/**
5555
#- samples/openapi3/client/petstore/typescript/tests/default/**
5656
- samples/openapi3/client/petstore/typescript/builds/jquery/**
@@ -98,7 +98,7 @@ jobs:
9898
- samples/client/petstore/typescript-angular-v16-provided-in-root/
9999
#- samples/client/petstore/typescript-angular-v17-provided-in-root/
100100
#- samples/client/petstore/typescript-angular-v18-provided-in-root/
101-
#- samples/client/petstore/typescript-angular-v19-provided-in-root/
101+
- samples/client/petstore/typescript-angular-v19-provided-in-root/
102102
- samples/openapi3/client/petstore/typescript/builds/default/
103103
#- samples/openapi3/client/petstore/typescript/tests/default/
104104
- samples/openapi3/client/petstore/typescript/builds/jquery/
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
generatorName: typescript-angular
2+
outputDir: samples/client/petstore/typescript-angular-v19-provided-in-root/builds/default
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/typescript-angular
5+
additionalProperties:
6+
ngVersion: 19.0.0
7+
supportsES6: true
8+
enumNameMappings:
9+
delivered: SHIPPED
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": "standard-with-typescript",
7+
"parser": "@typescript-eslint/parser",
8+
"plugins": [
9+
"@typescript-eslint"
10+
],
11+
"overrides": [
12+
{
13+
"files": [
14+
"*.ts"
15+
],
16+
// As mentioned in the comments, you should extend TypeScript plugins here,
17+
// instead of extending them outside the `overrides`.
18+
// If you don't want to extend any rules, you don't need an `extends` attribute.
19+
"extends": [
20+
"plugin:@typescript-eslint/recommended",
21+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
22+
],
23+
"parserOptions": {
24+
"project": [
25+
"./tsconfig.json"
26+
]
27+
// Specify it only for TypeScript files
28+
}
29+
}
30+
],
31+
"parserOptions": {
32+
"ecmaVersion": "latest"
33+
},
34+
"rules": {
35+
}
36+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
.angular
8+
9+
# dependencies
10+
/node_modules
11+
12+
# IDEs and editors
13+
/.idea
14+
.project
15+
.classpath
16+
.c9/
17+
*.launch
18+
.settings/
19+
*.sublime-workspace
20+
21+
# IDE - VSCode
22+
.vscode/*
23+
!.vscode/settings.json
24+
!.vscode/tasks.json
25+
!.vscode/launch.json
26+
!.vscode/extensions.json
27+
28+
# misc
29+
/.sass-cache
30+
/connect.lock
31+
/coverage
32+
/libpeerconnection.log
33+
npm-debug.log
34+
yarn-error.log
35+
testem.log
36+
/typings
37+
38+
# System Files
39+
.DS_Store
40+
Thumbs.db
41+
42+
.angular
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "tests",
5+
"projects": {
6+
"test-default": {
7+
"root": "tests/default",
8+
"sourceRoot": "tests/default/src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"aot": true,
17+
"outputPath": "tests/default/dist",
18+
"index": "tests/default/src/index.html",
19+
"main": "tests/default/src/main.ts",
20+
"polyfills": "tests/default/src/polyfills.ts",
21+
"tsConfig": "tests/default/src/tsconfig.app.json",
22+
"assets": [
23+
"tests/default/src/favicon.ico",
24+
"tests/default/src/assets"
25+
],
26+
"styles": [
27+
"tests/default/src/styles.css"
28+
],
29+
"scripts": []
30+
},
31+
"configurations": {
32+
"production": {
33+
"budgets": [
34+
{
35+
"type": "anyComponentStyle",
36+
"maximumWarning": "6kb"
37+
}
38+
],
39+
"fileReplacements": [
40+
{
41+
"replace": "tests/default/src/environments/environment.ts",
42+
"with": "tests/default/src/environments/environment.prod.ts"
43+
}
44+
],
45+
"optimization": true,
46+
"outputHashing": "all",
47+
"sourceMap": false,
48+
"namedChunks": false,
49+
"aot": true,
50+
"extractLicenses": true,
51+
"vendorChunk": false,
52+
"buildOptimizer": true
53+
},
54+
"development": {}
55+
},
56+
"defaultConfiguration": "production"
57+
},
58+
"serve": {
59+
"builder": "@angular-devkit/build-angular:dev-server",
60+
"options": {
61+
},
62+
"configurations": {
63+
"production": {
64+
"browserTarget": "test-default:build:production"
65+
},
66+
"development": {
67+
"browserTarget": "test-default:build:development"
68+
}
69+
},
70+
"defaultConfiguration": "development"
71+
},
72+
"extract-i18n": {
73+
"builder": "@angular-devkit/build-angular:extract-i18n",
74+
"options": {
75+
"browserTarget": "test-default:build"
76+
}
77+
},
78+
"test": {
79+
"builder": "@angular-devkit/build-angular:karma",
80+
"options": {
81+
"main": "tests/default/src/test.ts",
82+
"polyfills": "tests/default/src/polyfills.ts",
83+
"tsConfig": "tests/default/src/tsconfig.spec.json",
84+
"karmaConfig": "tests/default/src/karma.conf.js",
85+
"styles": [
86+
"tests/default/src/styles.css"
87+
],
88+
"scripts": [],
89+
"assets": [
90+
"tests/default/src/favicon.ico",
91+
"tests/default/src/assets"
92+
]
93+
}
94+
},
95+
"lint": {
96+
"builder": "@angular-devkit/build-angular:tslint",
97+
"options": {
98+
"tsConfig": [
99+
"tests/default/src/tsconfig.app.json",
100+
"tests/default/src/tsconfig.spec.json"
101+
],
102+
"exclude": [
103+
"**/node_modules/**"
104+
]
105+
}
106+
}
107+
}
108+
}
109+
},
110+
"cli": {
111+
"analytics": false
112+
}
113+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
wwwroot/*.js
2+
node_modules
3+
typings
4+
dist
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.gitignore
2+
README.md
3+
api.base.service.ts
4+
api.module.ts
5+
api/api.ts
6+
api/pet.service.ts
7+
api/store.service.ts
8+
api/user.service.ts
9+
configuration.ts
10+
encoder.ts
11+
git_push.sh
12+
index.ts
13+
model/apiResponse.ts
14+
model/category.ts
15+
model/models.ts
16+
model/order.ts
17+
model/pet.ts
18+
model/tag.ts
19+
model/user.ts
20+
param.ts
21+
provide-api.ts
22+
variables.ts
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.17.0-SNAPSHOT

0 commit comments

Comments
 (0)