Browse Source

upgrade: templates

pull/25690/head
sumeyye 4 months ago
parent
commit
7c53945a74
  1. 32
      templates/app-nolayers/angular/package.json
  2. 11
      templates/app-nolayers/angular/tsconfig.app.json
  3. 5
      templates/app-nolayers/angular/tsconfig.json
  4. 30
      templates/app/angular/package.json
  5. 6
      templates/app/angular/src/app/app.config.ts
  6. 4
      templates/app/angular/src/app/home/home.component.ts
  7. 17
      templates/app/angular/tsconfig.app.json
  8. 9
      templates/app/angular/tsconfig.json
  9. 42
      templates/module/angular/package.json
  10. 8
      templates/module/angular/tsconfig.json
  11. 9
      templates/module/angular/tsconfig.prod.json

32
templates/app-nolayers/angular/package.json

@ -21,16 +21,16 @@
"@abp/ng.tenant-management": "~10.5.0-rc.1", "@abp/ng.tenant-management": "~10.5.0-rc.1",
"@abp/ng.theme.lepton-x": "~5.5.0-rc.1", "@abp/ng.theme.lepton-x": "~5.5.0-rc.1",
"@abp/ng.theme.shared": "~10.5.0-rc.1", "@abp/ng.theme.shared": "~10.5.0-rc.1",
"@angular/animations": "~21.2.0", "@angular/animations": "~22.0.1",
"@angular/aria": "~21.2.0", "@angular/aria": "~22.0.0",
"@angular/common": "~21.2.0", "@angular/common": "~22.0.1",
"@angular/compiler": "~21.2.0", "@angular/compiler": "~22.0.1",
"@angular/core": "~21.2.0", "@angular/core": "~22.0.1",
"@angular/forms": "~21.2.0", "@angular/forms": "~22.0.1",
"@angular/localize": "~21.2.0", "@angular/localize": "~22.0.1",
"@angular/platform-browser": "~21.2.0", "@angular/platform-browser": "~22.0.1",
"@angular/platform-browser-dynamic": "~21.2.0", "@angular/platform-browser-dynamic": "~22.0.1",
"@angular/router": "~21.2.0", "@angular/router": "~22.0.1",
"bootstrap-icons": "~1.8.0", "bootstrap-icons": "~1.8.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.0.0", "tslib": "^2.0.0",
@ -43,16 +43,16 @@
"@angular-eslint/eslint-plugin-template": "~21.2.0", "@angular-eslint/eslint-plugin-template": "~21.2.0",
"@angular-eslint/schematics": "~21.2.0", "@angular-eslint/schematics": "~21.2.0",
"@angular-eslint/template-parser": "~21.2.0", "@angular-eslint/template-parser": "~21.2.0",
"@angular/build": "~21.2.0", "@angular/build": "~22.0.1",
"@angular/cli": "~21.2.0", "@angular/cli": "~22.0.1",
"@angular/compiler-cli": "~21.2.0", "@angular/compiler-cli": "~22.0.1",
"@angular/language-service": "~21.2.0", "@angular/language-service": "~22.0.1",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "7.16.0", "@typescript-eslint/eslint-plugin": "7.16.0",
"@typescript-eslint/parser": "7.16.0", "@typescript-eslint/parser": "7.16.0",
"eslint": "^8.0.0", "eslint": "^8.0.0",
"jsdom": "^27.1.0", "jsdom": "^27.1.0",
"typescript": "~5.9.0", "typescript": "~6.0.3",
"vitest": "^4.0.0" "vitest": "^4.0.0"
} }
} }

11
templates/app-nolayers/angular/tsconfig.app.json

@ -11,5 +11,14 @@
], ],
"exclude": [ "exclude": [
"src/**/*.spec.ts" "src/**/*.spec.ts"
] ],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
},
"strictTemplates": true
}
} }

5
templates/app-nolayers/angular/tsconfig.json

@ -2,7 +2,6 @@
{ {
"compileOnSave": false, "compileOnSave": false,
"compilerOptions": { "compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc", "outDir": "./dist/out-tsc",
"sourceMap": true, "sourceMap": true,
"declaration": false, "declaration": false,
@ -15,10 +14,10 @@
"esModuleInterop": true, "esModuleInterop": true,
"paths": { "paths": {
"@proxy": [ "@proxy": [
"src/app/proxy/index.ts" "./src/app/proxy/index.ts"
], ],
"@proxy/*": [ "@proxy/*": [
"src/app/proxy/*" "./src/app/proxy/*"
] ]
}, },
"useDefineForClassFields": false "useDefineForClassFields": false

30
templates/app/angular/package.json

@ -21,16 +21,16 @@
"@abp/ng.tenant-management": "~10.5.0-rc.1", "@abp/ng.tenant-management": "~10.5.0-rc.1",
"@abp/ng.theme.lepton-x": "~5.5.0-rc.1", "@abp/ng.theme.lepton-x": "~5.5.0-rc.1",
"@abp/ng.theme.shared": "~10.5.0-rc.1", "@abp/ng.theme.shared": "~10.5.0-rc.1",
"@angular/animations": "~21.2.0", "@angular/animations": "~22.0.1",
"@angular/aria": "~21.2.0", "@angular/aria": "~22.0.0",
"@angular/common": "~21.2.0", "@angular/common": "~22.0.1",
"@angular/compiler": "~21.2.0", "@angular/compiler": "~22.0.1",
"@angular/core": "~21.2.0", "@angular/core": "~22.0.1",
"@angular/forms": "~21.2.0", "@angular/forms": "~22.0.1",
"@angular/localize": "~21.2.0", "@angular/localize": "~22.0.1",
"@angular/platform-browser": "~21.2.0", "@angular/platform-browser": "~22.0.1",
"@angular/platform-browser-dynamic": "~21.2.0", "@angular/platform-browser-dynamic": "~22.0.1",
"@angular/router": "~21.2.0", "@angular/router": "~22.0.1",
"bootstrap-icons": "~1.8.0", "bootstrap-icons": "~1.8.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.0.0", "tslib": "^2.0.0",
@ -43,16 +43,16 @@
"@angular-eslint/eslint-plugin-template": "~21.2.0", "@angular-eslint/eslint-plugin-template": "~21.2.0",
"@angular-eslint/schematics": "~21.2.0", "@angular-eslint/schematics": "~21.2.0",
"@angular-eslint/template-parser": "~21.2.0", "@angular-eslint/template-parser": "~21.2.0",
"@angular/build": "~21.2.0", "@angular/build": "~22.0.1",
"@angular/cli": "~21.2.0", "@angular/cli": "~22.0.1",
"@angular/compiler-cli": "~21.2.0", "@angular/compiler-cli": "~22.0.1",
"@angular/language-service": "~21.2.0", "@angular/language-service": "~22.0.1",
"@types/node": "~20.11.0", "@types/node": "~20.11.0",
"@typescript-eslint/eslint-plugin": "7.16.0", "@typescript-eslint/eslint-plugin": "7.16.0",
"@typescript-eslint/parser": "7.16.0", "@typescript-eslint/parser": "7.16.0",
"eslint": "^8.0.0", "eslint": "^8.0.0",
"jsdom": "^27.1.0", "jsdom": "^27.1.0",
"typescript": "~5.9.3", "typescript": "~6.0.3",
"vitest": "^4.0.0" "vitest": "^4.0.0"
} }
} }

6
templates/app/angular/src/app/app.config.ts

@ -6,7 +6,6 @@ import {
} from '@abp/ng.theme.shared'; } from '@abp/ng.theme.shared';
import { ApplicationConfig } from '@angular/core'; import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router'; import { provideRouter } from '@angular/router';
import { provideAnimations } from '@angular/platform-browser/animations';
import { appRoutes } from './app.routes'; import { appRoutes } from './app.routes';
import { APP_ROUTE_PROVIDER } from './route.provider'; import { APP_ROUTE_PROVIDER } from './route.provider';
@ -30,7 +29,7 @@ export const appConfig: ApplicationConfig = {
withOptions({ withOptions({
environment, environment,
registerLocaleFn: registerLocaleForEsBuild(), registerLocaleFn: registerLocaleForEsBuild(),
}) }),
), ),
provideThemeLeptonX(), provideThemeLeptonX(),
provideSideMenuLayout(), provideSideMenuLayout(),
@ -40,12 +39,11 @@ export const appConfig: ApplicationConfig = {
provideIdentityConfig(), provideIdentityConfig(),
provideTenantManagementConfig(), provideTenantManagementConfig(),
provideFeatureManagementConfig(), provideFeatureManagementConfig(),
provideAnimations(),
provideLogo(withEnvironmentOptions(environment)), provideLogo(withEnvironmentOptions(environment)),
provideAbpThemeShared( provideAbpThemeShared(
withValidationBluePrint({ withValidationBluePrint({
wrongPassword: 'Please choose 1q2w3E*', wrongPassword: 'Please choose 1q2w3E*',
}) }),
), ),
], ],
}; };

4
templates/app/angular/src/app/home/home.component.ts

@ -1,13 +1,13 @@
import { AuthService, LocalizationPipe } from '@abp/ng.core'; import { AuthService, LocalizationPipe } from '@abp/ng.core';
import { Component, inject } from '@angular/core'; import { Component, inject } from '@angular/core';
import { NgTemplateOutlet } from '@angular/common'; import { NgTemplateOutlet } from '@angular/common';
import { DynamicFormComponent, FormFieldConfig } from '@abp/ng.components/dynamic-form'; import { FormFieldConfig } from '@abp/ng.components/dynamic-form';
@Component({ @Component({
selector: 'app-home', selector: 'app-home',
templateUrl: './home.component.html', templateUrl: './home.component.html',
styleUrls: ['./home.component.scss'], styleUrls: ['./home.component.scss'],
imports: [NgTemplateOutlet, LocalizationPipe, DynamicFormComponent], imports: [NgTemplateOutlet, LocalizationPipe],
}) })
export class HomeComponent { export class HomeComponent {
private authService = inject(AuthService); private authService = inject(AuthService);

17
templates/app/angular/tsconfig.app.json

@ -6,10 +6,15 @@
"outDir": "./out-tsc/app", "outDir": "./out-tsc/app",
"types": [] "types": []
}, },
"include": [ "include": ["src/**/*.ts"],
"src/**/*.ts" "exclude": ["src/**/*.spec.ts"],
], "angularCompilerOptions": {
"exclude": [ "extendedDiagnostics": {
"src/**/*.spec.ts" "checks": {
] "nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
},
"strictTemplates": true
}
} }

9
templates/app/angular/tsconfig.json

@ -2,7 +2,6 @@
{ {
"compileOnSave": false, "compileOnSave": false,
"compilerOptions": { "compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc", "outDir": "./dist/out-tsc",
"sourceMap": true, "sourceMap": true,
"declaration": false, "declaration": false,
@ -14,12 +13,8 @@
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,
"paths": { "paths": {
"@proxy": [ "@proxy": ["./src/app/proxy/index.ts"],
"src/app/proxy/index.ts" "@proxy/*": ["./src/app/proxy/*"]
],
"@proxy/*": [
"src/app/proxy/*"
]
}, },
"useDefineForClassFields": false "useDefineForClassFields": false
}, },

42
templates/module/angular/package.json

@ -22,39 +22,39 @@
"@abp/ng.tenant-management": "~10.5.0-rc.1", "@abp/ng.tenant-management": "~10.5.0-rc.1",
"@abp/ng.theme.basic": "~10.5.0-rc.1", "@abp/ng.theme.basic": "~10.5.0-rc.1",
"@abp/ng.theme.shared": "~10.5.0-rc.1", "@abp/ng.theme.shared": "~10.5.0-rc.1",
"@angular/animations": "~21.2.0", "@angular/animations": "~22.0.0",
"@angular/aria": "~21.2.0", "@angular/aria": "~22.0.0",
"@angular/common": "~21.2.0", "@angular/common": "~22.0.0",
"@angular/compiler": "~21.2.0", "@angular/compiler": "~22.0.0",
"@angular/core": "~21.2.0", "@angular/core": "~22.0.0",
"@angular/forms": "~21.2.0", "@angular/forms": "~22.0.0",
"@angular/localize": "~21.2.0", "@angular/localize": "~22.0.0",
"@angular/platform-browser": "~21.2.0", "@angular/platform-browser": "~22.0.0",
"@angular/platform-browser-dynamic": "~21.2.0", "@angular/platform-browser-dynamic": "~22.0.0",
"@angular/router": "~21.2.0", "@angular/router": "~22.0.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.0.0", "tslib": "^2.0.0",
"zone.js": "~0.15.0" "zone.js": "~0.15.0"
}, },
"devDependencies": { "devDependencies": {
"@abp/ng.schematics": "~10.5.0-rc.1", "@abp/ng.schematics": "~10.5.0-rc.1",
"@angular-eslint/builder": "~21.2.0", "@angular-eslint/builder": "~22.0.0",
"@angular-eslint/eslint-plugin": "~21.2.0", "@angular-eslint/eslint-plugin": "~22.0.0",
"@angular-eslint/eslint-plugin-template": "~21.2.0", "@angular-eslint/eslint-plugin-template": "~22.0.0",
"@angular-eslint/schematics": "~21.2.0", "@angular-eslint/schematics": "~22.0.0",
"@angular-eslint/template-parser": "~21.2.0", "@angular-eslint/template-parser": "~22.0.0",
"@angular/build": "~21.2.0", "@angular/build": "~22.0.0",
"@angular/cli": "~21.2.0", "@angular/cli": "~22.0.0",
"@angular/compiler-cli": "~21.2.0", "@angular/compiler-cli": "~22.0.0",
"@angular/language-service": "~21.2.0", "@angular/language-service": "~22.0.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "7.16.0", "@typescript-eslint/eslint-plugin": "7.16.0",
"@typescript-eslint/parser": "7.16.0", "@typescript-eslint/parser": "7.16.0",
"eslint": "^8.0.0", "eslint": "^8.0.0",
"jsdom": "^27.1.0", "jsdom": "^27.1.0",
"ng-packagr": "~21.2.0", "ng-packagr": "~22.0.0",
"symlink": "^2.0.0", "symlink": "^2.0.0",
"typescript": "~5.9.0", "typescript": "~6.0.3",
"vitest": "^4.0.0" "vitest": "^4.0.0"
} }
} }

8
templates/module/angular/tsconfig.json

@ -6,13 +6,13 @@
"skipLibCheck": true, "skipLibCheck": true,
"paths": { "paths": {
"@my-company-name/my-project-name": [ "@my-company-name/my-project-name": [
"projects/my-project-name/src/public-api.ts" "./projects/my-project-name/src/public-api.ts"
], ],
"@my-company-name/my-project-name/config": [ "@my-company-name/my-project-name/config": [
"projects/my-project-name/config/src/public-api.ts" "./projects/my-project-name/config/src/public-api.ts"
], ],
"@proxy": ["projects/my-project-name/src/lib/proxy/index.ts"], "@proxy": ["./projects/my-project-name/src/lib/proxy/index.ts"],
"@proxy/*": ["projects/my-project-name/src/lib/proxy/*"] "@proxy/*": ["./projects/my-project-name/src/lib/proxy/*"]
} }
} }
} }

9
templates/module/angular/tsconfig.prod.json

@ -1,7 +1,6 @@
{ {
"compileOnSave": false, "compileOnSave": false,
"compilerOptions": { "compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc", "outDir": "./dist/out-tsc",
"sourceMap": true, "sourceMap": true,
"declaration": false, "declaration": false,
@ -18,6 +17,12 @@
], ],
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false "extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
},
"strictTemplates": true
} }
} }

Loading…
Cancel
Save