2021-08-31 10:32:57 +00:00
|
|
|
// #docplaster ...
|
|
|
|
|
{
|
|
|
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
|
|
|
"version": 1,
|
|
|
|
|
"newProjectRoot": "projects",
|
|
|
|
|
// #docregion locale-config, i18n-baseHref
|
|
|
|
|
"projects": {
|
|
|
|
|
"angular.io-example": {
|
|
|
|
|
// #enddocregion locale-config, i18n-baseHref
|
|
|
|
|
"projectType": "application",
|
|
|
|
|
"root": "",
|
|
|
|
|
"sourceRoot": "src",
|
|
|
|
|
"prefix": "app",
|
|
|
|
|
// #docregion locale-config, i18n-baseHref
|
|
|
|
|
"i18n": {
|
|
|
|
|
"sourceLocale": "en-US",
|
|
|
|
|
"locales": {
|
2022-02-11 04:52:03 +00:00
|
|
|
"fr": {
|
|
|
|
|
"translation": "src/locale/messages.fr.xlf",
|
|
|
|
|
// #enddocregion locale-config
|
|
|
|
|
"baseHref": ""
|
|
|
|
|
// #docregion locale-config
|
|
|
|
|
}
|
2021-08-31 10:32:57 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// #docregion build-production-french
|
|
|
|
|
"architect": {
|
|
|
|
|
// #enddocregion locale-config, i18n-baseHref
|
|
|
|
|
// #docregion build-localize-true, build-single-locale, missing-translation-error
|
|
|
|
|
"build": {
|
|
|
|
|
// #enddocregion build-single-locale
|
2023-10-24 22:45:03 +00:00
|
|
|
"builder": "@angular-devkit/build-angular:application",
|
2021-08-31 10:32:57 +00:00
|
|
|
"options": {
|
|
|
|
|
// #enddocregion build-production-french, missing-translation-error
|
|
|
|
|
"localize": true,
|
|
|
|
|
// #enddocregion build-localize-true
|
|
|
|
|
"outputPath": "dist",
|
|
|
|
|
"index": "src/index.html",
|
2023-10-24 22:45:03 +00:00
|
|
|
"browser": "src/main.ts",
|
2022-10-31 10:55:29 +00:00
|
|
|
"polyfills": ["zone.js"],
|
2021-08-31 10:32:57 +00:00
|
|
|
"tsConfig": "tsconfig.app.json",
|
2022-02-15 22:41:04 +00:00
|
|
|
"assets": ["src/favicon.ico", "src/assets"],
|
|
|
|
|
"styles": ["src/styles.css"],
|
2021-08-31 10:32:57 +00:00
|
|
|
"scripts": [],
|
|
|
|
|
// #docregion missing-translation-error
|
|
|
|
|
"i18nMissingTranslation": "error"
|
|
|
|
|
// #docregion build-localize-true, build-production-french
|
|
|
|
|
},
|
|
|
|
|
// #enddocregion build-localize-true, missing-translation-error
|
|
|
|
|
// #docregion build-single-locale
|
|
|
|
|
"configurations": {
|
|
|
|
|
// #enddocregion build-single-locale, build-production-french
|
|
|
|
|
"production": {
|
|
|
|
|
"budgets": [
|
|
|
|
|
{
|
|
|
|
|
"type": "initial",
|
|
|
|
|
"maximumWarning": "500kb",
|
|
|
|
|
"maximumError": "1mb"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "anyComponentStyle",
|
|
|
|
|
"maximumWarning": "2kb",
|
|
|
|
|
"maximumError": "4kb"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"outputHashing": "all"
|
|
|
|
|
},
|
|
|
|
|
"development": {
|
2022-02-15 22:41:04 +00:00
|
|
|
"localize": false,
|
2021-08-31 10:32:57 +00:00
|
|
|
"optimization": false,
|
|
|
|
|
"extractLicenses": false,
|
2023-10-24 22:45:03 +00:00
|
|
|
"sourceMap": true
|
2021-08-31 10:32:57 +00:00
|
|
|
},
|
|
|
|
|
// #docregion build-single-locale, build-production-french
|
|
|
|
|
"fr": {
|
2022-02-15 22:41:04 +00:00
|
|
|
"localize": ["fr"]
|
2021-08-31 10:32:57 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// #enddocregion build-single-locale, build-production-french
|
|
|
|
|
"defaultConfiguration": "production"
|
|
|
|
|
// #docregion build-single-locale, build-production-french
|
|
|
|
|
},
|
|
|
|
|
"serve": {
|
|
|
|
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
|
|
|
"configurations": {
|
|
|
|
|
// #enddocregion build-single-locale
|
|
|
|
|
"production": {
|
2023-10-24 23:04:12 +00:00
|
|
|
"buildTarget": "angular.io-example:build:production"
|
2021-08-31 10:32:57 +00:00
|
|
|
},
|
|
|
|
|
// #enddocregion build-production-french
|
|
|
|
|
"development": {
|
2023-10-24 23:04:12 +00:00
|
|
|
"buildTarget": "angular.io-example:build:development"
|
2021-08-31 10:32:57 +00:00
|
|
|
},
|
|
|
|
|
// #docregion build-single-locale, build-production-french
|
|
|
|
|
"fr": {
|
2023-10-24 23:04:12 +00:00
|
|
|
"buildTarget": "angular.io-example:build:development,fr"
|
2021-08-31 10:32:57 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// #enddocregion build-single-locale, build-production-french
|
|
|
|
|
"defaultConfiguration": "development"
|
|
|
|
|
// #docregion build-single-locale, build-production-french
|
|
|
|
|
},
|
|
|
|
|
// #enddocregion build-single-locale, build-production-french
|
|
|
|
|
"extract-i18n": {
|
|
|
|
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
|
|
|
"options": {
|
2023-10-24 23:04:12 +00:00
|
|
|
"buildTarget": "angular.io-example:build"
|
2021-08-31 10:32:57 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"test": {
|
|
|
|
|
"builder": "@angular-devkit/build-angular:karma",
|
|
|
|
|
"options": {
|
2022-10-31 10:55:29 +00:00
|
|
|
"polyfills": ["zone.js", "zone.js/testing"],
|
2021-08-31 10:32:57 +00:00
|
|
|
"tsConfig": "tsconfig.spec.json",
|
2022-02-15 22:41:04 +00:00
|
|
|
"assets": ["src/favicon.ico", "src/assets"],
|
|
|
|
|
"styles": ["src/styles.css"],
|
2021-08-31 10:32:57 +00:00
|
|
|
"scripts": []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"e2e": {
|
|
|
|
|
"builder": "@angular-devkit/build-angular:protractor",
|
|
|
|
|
"options": {
|
|
|
|
|
"protractorConfig": "e2e/protractor.conf.js",
|
|
|
|
|
"devServerTarget": "angular.io-example:serve:fr"
|
|
|
|
|
},
|
|
|
|
|
"configurations": {
|
|
|
|
|
"production": {
|
|
|
|
|
"devServerTarget": "angular.io-example:serve:production"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// #docregion locale-config, build-single-locale, build-production-french, i18n-baseHref
|
|
|
|
|
}
|
|
|
|
|
// #enddocregion build-single-locale, build-production-french
|
|
|
|
|
}
|
2022-03-22 13:11:04 +00:00
|
|
|
}
|
2021-08-31 10:32:57 +00:00
|
|
|
// #enddocregion i18n-baseHref
|
|
|
|
|
// #docregion i18n-baseHref
|
|
|
|
|
}
|
|
|
|
|
// #enddocregion locale-config, i18n-baseHref
|