加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
angular.json 7.32 KB
一键复制 编辑 原始数据 按行查看 历史
大漠穷秋 提交于 2023-08-27 13:01 . 升级 angular 到 16.2.0
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"NiceFish": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/browser",
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "tsconfig.app.json",
"polyfills": [
"zone.js"
],
"assets": [
"src/assets",
"src/mock-data",
"src/favicon.ico"
],
"styles": [
"src/styles.scss"
],
"scripts": [
"node_modules/echarts/dist/echarts.js"
]
},
"configurations": {
"development-mock": {
"optimization": false,
"outputHashing": "all",
"sourceMap": true,
"namedChunks": true,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": true,
"statsJson": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.mock.ts"
}
]
},
"development-backend": {
"optimization": false,
"outputHashing": "all",
"sourceMap": true,
"namedChunks": true,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": true,
"statsJson": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.backend.ts"
}
]
},
"production-mock": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.mock.ts"
}
]
},
"production-backend": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.backend.ts"
}
]
}
},
"defaultConfiguration": "development-mock"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "NiceFish:build:development",
"proxyConfig": "proxy.config.json"
},
"configurations": {
"development-mock": {
"browserTarget": "NiceFish:build:development-mock"
},
"development-backend": {
"browserTarget": "NiceFish:build:development-backend"
},
"production-mock": {
"browserTarget": "NiceFish:build:production-mock"
},
"production-backend": {
"browserTarget": "NiceFish:build:production-backend"
}
},
"defaultConfiguration": "development-mock"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "NiceFish:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "./karma.conf.js",
"codeCoverage": true,
"polyfills": [
"zone.js",
"zone.js/testing"
],
"scripts": [
"node_modules/echarts/dist/echarts.js"
],
"styles": [
"src/styles.scss"
],
"assets": [
"src/assets",
"src/mock-data",
"src/favicon.ico"
]
}
},
"e2e": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "NiceFish:serve",
"watch": true,
"headless": false
},
"configurations": {
"production": {
"devServerTarget": "NiceFish:serve:production"
}
}
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/server",
"main": "src/main.server.ts",
"tsConfig": "tsconfig.server.json"
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true
}
}
},
"cypress-run": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "NiceFish:serve"
},
"configurations": {
"production": {
"devServerTarget": "NiceFish:serve:production"
}
}
},
"cypress-open": {
"builder": "@cypress/schematic:cypress",
"options": {
"watch": true,
"headless": false
}
},
"ct": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "NiceFish:serve",
"watch": true,
"headless": false,
"testingType": "component"
},
"configurations": {
"development": {
"devServerTarget": "NiceFish:serve:development"
}
}
}
}
}
},
"schematics": {
"@schematics/angular:component": {
"prefix": "",
"style": "scss"
},
"@schematics/angular:directive": {
"prefix": ""
}
},
"cli": {
"analytics": "431dadd7-96a7-44e9-ab8e-fae5200510fc",
"schematicCollections": [
"@cypress/schematic",
"@schematics/angular"
]
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化