build(docs-infra): align code with new CLI v12 apps (#42259)
This commit aligns the angular.io config files more closely to how a newly generated CLI v12 app would look like. This helps validate the setup and makes it easier to apply new chages in the future (by preventing the angular.io layout from deviating too much from the default new app layout). PR Close #42259
This commit is contained in:
parent
5161084917
commit
edf3e5a9cf
|
@ -11,16 +11,19 @@
|
||||||
"newProjectRoot": "projects",
|
"newProjectRoot": "projects",
|
||||||
"projects": {
|
"projects": {
|
||||||
"site": {
|
"site": {
|
||||||
"root": "",
|
|
||||||
"sourceRoot": "src",
|
|
||||||
"projectType": "application",
|
"projectType": "application",
|
||||||
"prefix": "aio",
|
|
||||||
"schematics": {
|
"schematics": {
|
||||||
|
"@schematics/angular:application": {
|
||||||
|
"strict": true
|
||||||
|
},
|
||||||
"@schematics/angular:component": {
|
"@schematics/angular:component": {
|
||||||
"inlineStyle": true,
|
"inlineStyle": true,
|
||||||
"style": "scss"
|
"style": "scss"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"root": "",
|
||||||
|
"sourceRoot": "src",
|
||||||
|
"prefix": "aio",
|
||||||
"architect": {
|
"architect": {
|
||||||
"build": {
|
"build": {
|
||||||
"builder": "@angular-devkit/build-angular:browser",
|
"builder": "@angular-devkit/build-angular:browser",
|
||||||
|
@ -63,17 +66,19 @@
|
||||||
],
|
],
|
||||||
"scripts": [],
|
"scripts": [],
|
||||||
"budgets": [
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "850kb",
|
||||||
|
"maximumError": "1mb"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "anyComponentStyle",
|
"type": "anyComponentStyle",
|
||||||
"maximumWarning": "6kb"
|
"maximumWarning": "2kb",
|
||||||
|
"maximumError": "4kb"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"fast": {
|
|
||||||
"buildOptimizer": false,
|
|
||||||
"optimization": false
|
|
||||||
},
|
|
||||||
"next": {
|
"next": {
|
||||||
"fileReplacements": [
|
"fileReplacements": [
|
||||||
{
|
{
|
||||||
|
@ -112,18 +117,20 @@
|
||||||
},
|
},
|
||||||
"ci": {
|
"ci": {
|
||||||
"progress": false
|
"progress": false
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"buildOptimizer": false,
|
||||||
|
"optimization": false,
|
||||||
|
"outputHashing": "none",
|
||||||
|
"vendorChunk": true,
|
||||||
|
"extractLicenses": false
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"defaultConfiguration": "stable"
|
||||||
},
|
},
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"options": {
|
|
||||||
"browserTarget": "site:build"
|
|
||||||
},
|
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"fast": {
|
|
||||||
"browserTarget": "site:build:fast"
|
|
||||||
},
|
|
||||||
"next": {
|
"next": {
|
||||||
"browserTarget": "site:build:next"
|
"browserTarget": "site:build:next"
|
||||||
},
|
},
|
||||||
|
@ -138,8 +145,12 @@
|
||||||
},
|
},
|
||||||
"ci": {
|
"ci": {
|
||||||
"browserTarget": "site:build:ci"
|
"browserTarget": "site:build:ci"
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"browserTarget": "site:build:development"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"defaultConfiguration": "development"
|
||||||
},
|
},
|
||||||
"extract-i18n": {
|
"extract-i18n": {
|
||||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"aio-use-npm": "node tools/ng-packages-installer restore .",
|
"aio-use-npm": "node tools/ng-packages-installer restore .",
|
||||||
"aio-check-local": "node tools/ng-packages-installer check .",
|
"aio-check-local": "node tools/ng-packages-installer check .",
|
||||||
"ng": "yarn check-env && ng",
|
"ng": "yarn check-env && ng",
|
||||||
"start": "yarn check-env && ng serve --configuration=fast",
|
"start": "yarn check-env && ng serve",
|
||||||
"prebuild": "yarn setup",
|
"prebuild": "yarn setup",
|
||||||
"build": "yarn ~~build",
|
"build": "yarn ~~build",
|
||||||
"prebuild-local": "yarn setup-local",
|
"prebuild-local": "yarn setup-local",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// The file contents for the current environment will overwrite these during build.
|
// The file contents for the current environment will overwrite these during build.
|
||||||
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
|
// The build system defaults to using `environment.ts`, but if you do
|
||||||
// `ng build --configuration=<foo>` then `environment.<foo>.ts` will be used instead.
|
// `ng build --configuration=<foo>` then `environment.<foo>.ts` will be used instead.
|
||||||
// The list of which configurations maps to which file can be found in `angular.json`.
|
// The list of which configuration maps to which file can be found in `angular.json`.
|
||||||
|
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"target": "es2015",
|
"target": "es2017",
|
||||||
"module": "es2020",
|
"module": "es2020",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2018",
|
"es2018",
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
"aio": {
|
"aio": {
|
||||||
"master": {
|
"master": {
|
||||||
"uncompressed": {
|
"uncompressed": {
|
||||||
"runtime-es2015": 4619,
|
"runtime-es2017": 4619,
|
||||||
"main-es2015": 453855,
|
"main-es2017": 454043,
|
||||||
"polyfills-es2015": 55210
|
"polyfills-es2017": 55210
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"aio-local": {
|
"aio-local": {
|
||||||
"master": {
|
"master": {
|
||||||
"uncompressed": {
|
"uncompressed": {
|
||||||
"runtime-es2015": 4619,
|
"runtime-es2017": 4619,
|
||||||
"main-es2015": 453981,
|
"main-es2017": 454178,
|
||||||
"polyfills-es2015": 55291
|
"polyfills-es2017": 55348
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue