Update .gitignore and .prettierignore; add generated Swagger API libraries

This commit is contained in:
Lorenz Hilpert
2025-01-29 17:09:36 +01:00
parent d474f555e3
commit 9efbfab253
70 changed files with 8605 additions and 727 deletions

3
.gitignore vendored
View File

@@ -54,4 +54,5 @@ libs/swagger/src/lib/*
.nx/cache
.nx/workspace-data
.nx/workspace-data
.angular

View File

@@ -8,3 +8,5 @@
*.json
*.yml
.angular

View File

@@ -3,6 +3,7 @@
"johnpapa.angular2",
"esbenp.prettier-vscode",
"angular.ng-template",
"nrwl.angular-console"
"nrwl.angular-console",
"dbaeumer.vscode-eslint"
]
}
}

33
eslint.config.mjs Normal file
View File

@@ -0,0 +1,33 @@
import nx from '@nx/eslint-plugin';
export default [
...nx.configs['flat/base'],
...nx.configs['flat/typescript'],
...nx.configs['flat/javascript'],
{
ignores: ['**/dist'],
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'@nx/enforce-module-boundaries': [
'error',
{
enforceBuildableLibDependency: true,
allow: ['^.*/eslint(\\.base)?\\.config\\.[cm]?js$'],
depConstraints: [
{
sourceTag: '*',
onlyDependOnLibsWithTags: ['*'],
},
],
},
],
},
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs'],
// Override or add rules here
rules: {},
},
];

View File

@@ -0,0 +1,3 @@
# generated-swagger-availability-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "https://isa-test.paragon-data.net/ava/v6/swagger.json",
"output": "apps/isa-app/src/swagger/availability",
"prefix": "Av",
"minParamsForContainer": 2,
"sortParams": "desc",

View File

@@ -0,0 +1,20 @@
{
"name": "generated-swagger-availability-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/availability-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"generate": {
"command": "ng-swagger-gen --config {projectRoot}/ng-swagger-gen.json --output {projectRoot}/src",
"inputs": [
"^production",
"{projectRoot}/ng-swagger-gen.json",
"!{projectRoot}/src/**/*.ts"
],
"outputs": ["{projectRoot}/src"],
"cache": false
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,3 @@
# generated-swagger-cat-search-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "https://isa-test.paragon-data.net/cat/v6/swagger.json",
"output": "apps/isa-app/src/swagger/cat",
"prefix": "Cat",
"minParamsForContainer": 2,
"sortParams": "desc",

View File

@@ -0,0 +1,20 @@
{
"name": "generated-swagger-cat-search-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/cat-search-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"generate": {
"command": "ng-swagger-gen --config {projectRoot}/ng-swagger-gen.json --output {projectRoot}/src",
"inputs": [
"^production",
"{projectRoot}/ng-swagger-gen.json",
"!{projectRoot}/src/**/*.ts"
],
"outputs": ["{projectRoot}/src"],
"cache": false
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,3 @@
# generated-swagger-checkout-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "https://isa-test.paragon-data.net/checkout/v6/swagger.json",
"output": "apps/isa-app/src/swagger/checkout",
"prefix": "Checkout",
"minParamsForContainer": 2,
"sortParams": "desc",

View File

@@ -0,0 +1,20 @@
{
"name": "generated-swagger-checkout-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/checkout-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"generate": {
"command": "ng-swagger-gen --config {projectRoot}/ng-swagger-gen.json --output {projectRoot}/src",
"inputs": [
"^production",
"{projectRoot}/ng-swagger-gen.json",
"!{projectRoot}/src/**/*.ts"
],
"outputs": ["{projectRoot}/src"],
"cache": false
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,3 @@
# generated-swagger-crm-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "https://isa-test.paragon-data.net/crm/v6/swagger.json",
"output": "apps/isa-app/src/swagger/crm",
"prefix": "Crm",
"minParamsForContainer": 2,
"sortParams": "desc",

View File

@@ -0,0 +1,20 @@
{
"name": "generated-swagger-crm-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/crm-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"generate": {
"command": "ng-swagger-gen --config {projectRoot}/ng-swagger-gen.json --output {projectRoot}/src",
"inputs": [
"^production",
"{projectRoot}/ng-swagger-gen.json",
"!{projectRoot}/src/**/*.ts"
],
"outputs": ["{projectRoot}/src"],
"cache": false
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,3 @@
# generated-swagger-eis-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,5 +1,5 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "eis.swagger.json",
"output": "apps/isa-app/src/swagger/eis",
"prefix": "Eis",

View File

@@ -0,0 +1,20 @@
{
"name": "generated-swagger-eis-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/eis-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"generate": {
"command": "ng-swagger-gen --config {projectRoot}/ng-swagger-gen.json --output {projectRoot}/src",
"inputs": [
"^production",
"{projectRoot}/ng-swagger-gen.json",
"!{projectRoot}/src/**/*.ts"
],
"outputs": ["{projectRoot}/src"],
"cache": false
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,3 @@
# generated-swagger-inventory-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "https://isa-test.paragon-data.net/inv/v6/swagger.json",
"output": "apps/isa-app/src/swagger/remi",
"prefix": "Remi",
"minParamsForContainer": 2,
"sortParams": "desc",

View File

@@ -0,0 +1,13 @@
{
"name": "generated-swagger-inventory-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/inventory-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/eslint:lint"
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,3 @@
# generated-swagger-isa-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "https://isa-test.paragon-data.net/isa/v1/swagger.json",
"output": "apps/isa-app/src/swagger/isa",
"prefix": "Isa",
"minParamsForContainer": 2,
"sortParams": "desc",

View File

@@ -0,0 +1,20 @@
{
"name": "generated-swagger-isa-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/isa-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"generate": {
"command": "ng-swagger-gen --config {projectRoot}/ng-swagger-gen.json --output {projectRoot}/src",
"inputs": [
"^production",
"{projectRoot}/ng-swagger-gen.json",
"!{projectRoot}/src/**/*.ts"
],
"outputs": ["{projectRoot}/src"],
"cache": false
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,3 @@
# generated-swagger-oms-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "https://isa-test.paragon-data.net/oms/v6/swagger.json",
"output": "apps/isa-app/src/swagger/oms",
"prefix": "Oms",
"minParamsForContainer": 2,
"sortParams": "desc",

View File

@@ -0,0 +1,20 @@
{
"name": "generated-swagger-oms-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/oms-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"generate": {
"command": "ng-swagger-gen --config {projectRoot}/ng-swagger-gen.json --output {projectRoot}/src",
"inputs": [
"^production",
"{projectRoot}/ng-swagger-gen.json",
"!{projectRoot}/src/**/*.ts"
],
"outputs": ["{projectRoot}/src"],
"cache": false
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,3 @@
# generated-swagger-print-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "https://isa-test.paragon-data.net/print/v1/swagger.json",
"output": "apps/isa-app/src/swagger/print",
"prefix": "Print",
"minParamsForContainer": 2,
"sortParams": "desc",

View File

@@ -0,0 +1,13 @@
{
"name": "generated-swagger-print-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/print-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/eslint:lint"
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,3 @@
# generated-swagger-wws-api
This library was generated with [Nx](https://nx.dev).

View File

@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../../eslint.config.mjs';
export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];

View File

@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"$schema": "../../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
"swagger": "https://isa-test.paragon-data.net/wws/v1/swagger.json",
"output": "apps/isa-app/src/swagger/wws",
"prefix": "Wws",
"minParamsForContainer": 2,
"sortParams": "desc",

View File

@@ -0,0 +1,20 @@
{
"name": "generated-swagger-wws-api",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "generated/swagger/wws-api/src",
"prefix": "lib",
"projectType": "library",
"tags": [],
"targets": {
"generate": {
"command": "ng-swagger-gen --config {projectRoot}/ng-swagger-gen.json --output {projectRoot}/src",
"inputs": [
"^production",
"{projectRoot}/ng-swagger-gen.json",
"!{projectRoot}/src/**/*.ts"
],
"outputs": ["{projectRoot}/src"],
"cache": false
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2022",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/**/*.spec.ts", "jest.config.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}

39
nx.json
View File

@@ -6,34 +6,37 @@
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
]
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"test": {
"cache": true,
"inputs": [
"default",
"^production",
"{workspaceRoot}/karma.conf.js"
]
"inputs": ["default", "^production", "{workspaceRoot}/karma.conf.js"]
},
"@nx/eslint:lint": {
"cache": true,
"inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore", "{workspaceRoot}/eslint.config.mjs"]
}
},
"defaultBase": "develop",
"namedInputs": {
"sharedGlobals": [],
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [
"default",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/**/*.spec.[jt]s"
"!{projectRoot}/**/*.spec.[jt]s",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/eslint.config.mjs"
]
},
"generators": {
"@nx/angular:library": {
"linter": "eslint",
"unitTestRunner": "none"
},
"@nx/angular:component": {
"style": "css"
}
}
}
}

8159
package-lock.json generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -76,8 +76,12 @@
"@angular/language-service": "^18.2.8",
"@chromatic-com/storybook": "^1.9.0",
"@compodoc/compodoc": "^1.1.26",
"@eslint/js": "^9.8.0",
"@ngneat/spectator": "^19.0.0",
"@nx/angular": "20.4.0",
"@nx/eslint": "20.4.0",
"@nx/eslint-plugin": "20.4.0",
"@nx/js": "20.4.0",
"@nx/workspace": "20.4.0",
"@schematics/angular": "^18.2.9",
"@storybook/addon-docs": "^8.3.6",
@@ -88,9 +92,16 @@
"@storybook/angular": "^8.3.6",
"@storybook/blocks": "^8.3.6",
"@storybook/test": "^8.3.6",
"@swc-node/register": "~1.9.1",
"@swc/core": "~1.5.7",
"@swc/helpers": "~0.5.11",
"@types/jasmine": "~5.1.4",
"@types/uuid": "^10.0.0",
"@typescript-eslint/utils": "^8.19.0",
"angular-eslint": "^18.3.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^9.1.6",
"jasmine-core": "~5.4.0",
"jasmine-marbles": "^0.9.2",
@@ -111,7 +122,8 @@
"pretty-quick": "~4.0.0",
"storybook": "^8.3.6",
"tailwindcss": "^3.4.14",
"typescript": "~5.4.0"
"typescript": "~5.4.0",
"typescript-eslint": "^8.19.0"
},
"engines": {
"node": ">=18.13.0",
@@ -120,4 +132,4 @@
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "*"
}
}
}

44
tsconfig.base.json Normal file
View File

@@ -0,0 +1,44 @@
{
"compileOnSave": false,
"compilerOptions": {
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": false,
"target": "ES2022",
"module": "es2020",
"lib": ["es2020", "dom"],
"baseUrl": "./",
"paths": {
"@adapter/*": ["apps/isa-app/src/adapter/*/index.ts"],
"@cdn/*": ["apps/isa-app/src/cdn/*/index.ts"],
"@core/*": ["apps/isa-app/src/core/*/index.ts"],
"@domain/*": ["apps/isa-app/src/domain/*/index.ts"],
"@external/*": ["apps/isa-app/src/external/*/index.ts"],
"@generated/swagger/availability-api": ["generated/swagger/availability-api/src/index.ts"],
"@generated/swagger/cat-search-api": ["generated/swagger/cat-search-api/src/index.ts"],
"@generated/swagger/checkout-api": ["generated/swagger/checkout-api/src/index.ts"],
"@generated/swagger/crm-api": ["generated/swagger/crm-api/src/index.ts"],
"@generated/swagger/eis-api": ["generated/swagger/eis-api/src/index.ts"],
"@generated/swagger/inventory-api": ["generated/swagger/inventory-api/src/index.ts"],
"@generated/swagger/isa-api": ["generated/swagger/isa-api/src/index.ts"],
"@generated/swagger/oms-api": ["generated/swagger/oms-api/src/index.ts"],
"@generated/swagger/print-api": ["generated/swagger/print-api/src/index.ts"],
"@generated/swagger/wws-api": ["generated/swagger/wws-api/src/index.ts"],
"@hub/*": ["apps/isa-app/src/hub/*/index.ts"],
"@modal/*": ["apps/isa-app/src/modal/*/index.ts"],
"@page/*": ["apps/isa-app/src/page/*/index.ts"],
"@shared/*": ["apps/isa-app/src/shared/*/index.ts"],
"@shared/components/*": ["apps/isa-app/src/shared/components/*/index.ts"],
"@shared/directives/*": ["apps/isa-app/src/shared/directives/*/index.ts"],
"@shared/pipes/*": ["apps/isa-app/src/shared/pipes/*/index.ts"],
"@shared/services/*": ["apps/isa-app/src/shared/services/*/index.ts"],
"@swagger/*": ["apps/isa-app/src/swagger/*/index.ts"],
"@ui/*": ["apps/isa-app/src/ui/*/index.ts"],
"@utils/*": ["apps/isa-app/src/utils/*/index.ts"],
"packageJson": ["package.json"]
}
}
}

View File

@@ -1,81 +1,13 @@
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"esModuleInterop": true,
"module": "es2020",
"resolveJsonModule": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": false,
"target": "ES2022",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2020",
"dom"
],
"paths": {
"@adapter/*": [
"apps/isa-app/src/adapter/*/index.ts"
],
"@cdn/*": [
"apps/isa-app/src/cdn/*/index.ts"
],
"@core/*": [
"apps/isa-app/src/core/*/index.ts"
],
"@domain/*": [
"apps/isa-app/src/domain/*/index.ts"
],
"@external/*": [
"apps/isa-app/src/external/*/index.ts"
],
"@hub/*": [
"apps/isa-app/src/hub/*/index.ts"
],
"@modal/*": [
"apps/isa-app/src/modal/*/index.ts"
],
"@page/*": [
"apps/isa-app/src/page/*/index.ts"
],
"@shared/components/*": [
"apps/isa-app/src/shared/components/*/index.ts"
],
"@shared/directives/*": [
"apps/isa-app/src/shared/directives/*/index.ts"
],
"@shared/services/*": [
"apps/isa-app/src/shared/services/*/index.ts"
],
"@shared/pipes/*": [
"apps/isa-app/src/shared/pipes/*/index.ts"
],
"@shared/*": [
"apps/isa-app/src/shared/*/index.ts"
],
"@swagger/*": [
"apps/isa-app/src/swagger/*/index.ts"
],
"@ui/*": [
"apps/isa-app/src/ui/*/index.ts"
],
"@utils/*": [
"apps/isa-app/src/utils/*/index.ts"
],
"packageJson": [
"package.json"
]
},
"typeRoots": ["node_modules/@types"],
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"strictTemplates": true,
"strictTemplates": true
},
}
"extends": "./tsconfig.base.json"
}