Skip to content

Commit

Permalink
Update to Angular 9
Browse files Browse the repository at this point in the history
  • Loading branch information
dhcode committed Feb 8, 2020
1 parent e9396d9 commit 8b35c9a
Show file tree
Hide file tree
Showing 18 changed files with 2,783 additions and 1,542 deletions.
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
package.json
dist
dist
coverage
.idea
node_modules
34 changes: 15 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,38 +34,34 @@ See [Angular library README](projects/openapi-viewer/README.md)

See [Web component README](projects/openapi-viewer-element/README.md)




## Browser Compatibility

This project aims to support the most common browsers.

* Chrome
* Firefox
* Safari
* Internet Explorer 11
* Microsoft Edge
- Chrome
- Firefox
- Safari
- Internet Explorer 11
- Microsoft Edge

## Not supported features

* Example values for XML
- Example values for XML

## TODO

* Integrate OAuth authentication support
* Integrate support for [links](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#linkObject)
* Show generated commandline for curl
* Show generated code for JavaScript and other languages
* Increase test coverage
* Publish library to npm
- Integrate support for [links](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#linkObject)
- Show generated commandline for curl
- Show generated code for JavaScript and other languages
- Increase test coverage
- Publish library to npm

## Other libraries used

* [ngx-ace-wrapper](https://github.com/zefoy/ngx-ace-wrapper) + [brace](https://github.com/thlorenz/brace) + [ace](https://github.com/ajaxorg/ace) to show nicely formatted code
* [ngx-markdown](https://github.com/jfcere/ngx-markdown) + [marked](https://github.com/markedjs/marked) to show nicely formatted descriptions, if markdown was used in a specification
* [swagger-client](https://github.com/swagger-api/swagger-js) to parse specifications and to create HTTP requests based on parameters
* [openapi3-ts](https://github.com/metadevpro/openapi3-ts) for OpenAPI specification typings
- [ngx-ace-wrapper](https://github.com/zefoy/ngx-ace-wrapper) + [brace](https://github.com/thlorenz/brace) + [ace](https://github.com/ajaxorg/ace) to show nicely formatted code
- [ngx-markdown](https://github.com/jfcere/ngx-markdown) + [marked](https://github.com/markedjs/marked) to show nicely formatted descriptions, if markdown was used in a specification
- [swagger-client](https://github.com/swagger-api/swagger-js) to parse specifications and to create HTTP requests based on parameters
- [openapi3-ts](https://github.com/metadevpro/openapi3-ts) for OpenAPI specification typings

## License

Expand Down
90 changes: 39 additions & 51 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets",
"src/404.html"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets", "src/404.html"],
"styles": ["src/styles.scss"],
"scripts": [
{
"input": "node_modules/document-register-element/build/document-register-element.js"
Expand All @@ -50,7 +44,6 @@
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand All @@ -59,10 +52,20 @@
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
]
},
"es5": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"tsConfig": "./tsconfig.es5.app.json"
}
}
Expand Down Expand Up @@ -94,27 +97,16 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json", "e2e/tsconfig.json"],
"exclude": ["**/node_modules/**"]
}
},
"e2e": {
Expand Down Expand Up @@ -147,6 +139,11 @@
"options": {
"tsConfig": "projects/openapi-viewer/tsconfig.lib.json",
"project": "projects/openapi-viewer/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/openapi-viewer/tsconfig.lib.prod.json"
}
}
},
"test": {
Expand All @@ -161,13 +158,8 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/openapi-viewer/tsconfig.lib.json",
"projects/openapi-viewer/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
"tsConfig": ["projects/openapi-viewer/tsconfig.lib.json", "projects/openapi-viewer/tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
}
}
Expand All @@ -191,7 +183,7 @@
"main": "projects/openapi-viewer-element/src/main.ts",
"polyfills": "projects/openapi-viewer-element/src/polyfills.ts",
"tsConfig": "projects/openapi-viewer-element/tsconfig.app.json",
"aot": false,
"aot": true,
"assets": [
"projects/openapi-viewer-element/src/assets",
{
Expand All @@ -200,9 +192,7 @@
"output": "./"
}
],
"styles": [
"projects/openapi-viewer-element/src/styles.scss"
]
"styles": ["projects/openapi-viewer-element/src/styles.scss"]
},
"configurations": {
"production": {
Expand All @@ -217,7 +207,6 @@
"sourceMap": false,
"extractCss": true,
"namedChunks": true,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand All @@ -235,6 +224,12 @@
]
},
"es5": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"tsConfig": "projects/openapi-viewer-element/tsconfig.es5.app.json"
}
}
Expand Down Expand Up @@ -266,30 +261,23 @@
"polyfills": "projects/openapi-viewer-element/src/polyfills.ts",
"tsConfig": "projects/openapi-viewer-element/tsconfig.spec.json",
"karmaConfig": "projects/openapi-viewer-element/karma.conf.js",
"assets": [
"projects/openapi-viewer-element/src/favicon.ico",
"projects/openapi-viewer-element/src/assets"
],
"styles": [
"projects/openapi-viewer-element/src/styles.scss"
],
"assets": ["projects/openapi-viewer-element/src/favicon.ico", "projects/openapi-viewer-element/src/assets"],
"styles": ["projects/openapi-viewer-element/src/styles.scss"],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/openapi-viewer-element/tsconfig.app.json",
"projects/openapi-viewer-element/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
"tsConfig": ["projects/openapi-viewer-element/tsconfig.app.json", "projects/openapi-viewer-element/tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"defaultProject": "openapi-ui"
"defaultProject": "openapi-ui",
"cli": {
"analytics": "0f97ae6f-d627-472f-bd24-1a80532718e5"
}
}
Loading

0 comments on commit 8b35c9a

Please sign in to comment.