2021-04-12 00:40:39 +08:00
|
|
|
{
|
|
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
2021-04-15 00:15:44 +08:00
|
|
|
"cli": {
|
|
|
|
"analytics": "405a5022-b417-4976-87d8-56f684a7a13b"
|
|
|
|
},
|
2021-04-12 00:40:39 +08:00
|
|
|
"version": 1,
|
|
|
|
"newProjectRoot": "projects",
|
|
|
|
"projects": {
|
|
|
|
"my-app": {
|
|
|
|
"projectType": "application",
|
|
|
|
"schematics": {
|
|
|
|
"@schematics/angular:component": {
|
|
|
|
"style": "scss"
|
|
|
|
},
|
|
|
|
"@schematics/angular:application": {
|
|
|
|
"strict": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"root": "",
|
|
|
|
"sourceRoot": "src",
|
|
|
|
"prefix": "app",
|
|
|
|
"architect": {
|
|
|
|
"build": {
|
|
|
|
"builder": "@angular-devkit/build-angular:browser",
|
|
|
|
"options": {
|
|
|
|
"outputPath": "dist/my-app",
|
|
|
|
"index": "src/index.html",
|
|
|
|
"main": "src/main.ts",
|
|
|
|
"polyfills": "src/polyfills.ts",
|
|
|
|
"tsConfig": "tsconfig.app.json",
|
|
|
|
"aot": true,
|
|
|
|
"assets": [
|
|
|
|
"src/favicon.ico",
|
|
|
|
"src/assets"
|
|
|
|
],
|
|
|
|
"styles": [
|
|
|
|
"src/styles.scss"
|
|
|
|
],
|
|
|
|
"scripts": []
|
|
|
|
},
|
|
|
|
"configurations": {
|
|
|
|
"production": {
|
|
|
|
"fileReplacements": [
|
|
|
|
{
|
|
|
|
"replace": "src/environments/environment.ts",
|
|
|
|
"with": "src/environments/environment.prod.ts"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"optimization": true,
|
|
|
|
"outputHashing": "all",
|
|
|
|
"sourceMap": false,
|
|
|
|
"namedChunks": false,
|
|
|
|
"extractLicenses": true,
|
|
|
|
"vendorChunk": false,
|
|
|
|
"buildOptimizer": true,
|
|
|
|
"budgets": [
|
|
|
|
{
|
|
|
|
"type": "initial",
|
|
|
|
"maximumWarning": "500kb",
|
|
|
|
"maximumError": "1mb"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "anyComponentStyle",
|
|
|
|
"maximumWarning": "2kb",
|
|
|
|
"maximumError": "4kb"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"serve": {
|
|
|
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
|
|
"options": {
|
|
|
|
"browserTarget": "my-app:build"
|
|
|
|
},
|
|
|
|
"configurations": {
|
|
|
|
"production": {
|
|
|
|
"browserTarget": "my-app:build:production"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"extract-i18n": {
|
|
|
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
|
|
"options": {
|
|
|
|
"browserTarget": "my-app:build"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"builder": "@angular-devkit/build-angular:karma",
|
|
|
|
"options": {
|
|
|
|
"main": "src/test.ts",
|
|
|
|
"polyfills": "src/polyfills.ts",
|
|
|
|
"tsConfig": "tsconfig.spec.json",
|
|
|
|
"karmaConfig": "karma.conf.js",
|
|
|
|
"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/**"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"e2e": {
|
|
|
|
"builder": "@angular-devkit/build-angular:protractor",
|
|
|
|
"options": {
|
|
|
|
"protractorConfig": "e2e/protractor.conf.js",
|
|
|
|
"devServerTarget": "my-app:serve"
|
|
|
|
},
|
|
|
|
"configurations": {
|
|
|
|
"production": {
|
|
|
|
"devServerTarget": "my-app:serve:production"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"defaultProject": "my-app"
|
|
|
|
}
|