Browse Source

Update Angular config for latest builder and TypeScript on app-nolayers in templates

pull/23363/head
Fahri Gedik 7 months ago
parent
commit
70110ff372
  1. 15
      templates/app-nolayers/angular/angular.json
  2. 5
      templates/app-nolayers/angular/tsconfig.json

15
templates/app-nolayers/angular/angular.json

@ -19,12 +19,12 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/MyProjectName",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"browser": "src/main.ts",
"polyfills": ["src/polyfills.ts"],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"allowedCommonJsDependencies": ["chart.js", "js-sha256"],
@ -137,12 +137,9 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
"sourceMap": true
}
},
"defaultConfiguration": "production"
@ -168,8 +165,8 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"browser": "src/test.ts",
"polyfills": ["src/polyfills.ts"],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",

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

@ -11,10 +11,11 @@
"moduleResolution": "bundler",
"importHelpers": true,
"target": "ES2022",
"module": "es2020",
"module": "esnext",
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"es2018",
"es2020",
"dom"
],
"paths": {

Loading…
Cancel
Save