Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"XX-frontend": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "XX",
"schematics": {
"@schematics/angular:component": {
"styleext": "scss",
"flat": false,
"lintFix": true
},
"@schematics/angular:service": {
"lintFix": true
},
"@schematics/angular:pipe": {
"lintFix": true
},
"@schematics/ngrx:feature": {
"lintFix": true
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "../src/interfaces/XX/dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"statsJson": true,
"assets": [
"src/favicon.ico",
"src/assets/favicons",
"src/manifest.json"
],
"styles": [
"./node_modules/minireset.css/minireset.css",
"src/assets/scss/styles.scss",
"src/assets/scss/themes.scss"
],
"stylePreprocessorOptions": {
"includePaths": [
"src/assets/scss/importable"
]
},
"scripts": []
},
"configurations": {
"dev": {
"aot": false,
"assets": [
"src/favicon.ico",
"src/assets/favicons",
"src/manifest.json"
],
"fileReplacements": [
{
"replace": "src/index.html",
"with": "src/index.dev.html"
}
],
"outputHashing": "all"
},
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.production.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "allScript",
"maximumWarning": "4000kb",
"maximumError": "5000kb"
},
{
"type": "anyScript",
"maximumWarning": "1000kb",
"maximumError": "6000kb"
}
],
"serviceWorker": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "XX-frontend:build",
"proxyConfig": "proxy.conf.json"
},
"configurations": {
"dev": {
"browserTarget": "XX-frontend:build:dev"
},
"production": {
"browserTarget": "XX-frontend:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "XX-frontend:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.test.ts"
}
],
"sourceMap": true,
"stylePreprocessorOptions": {
"includePaths": [
"src/assets/scss/importable"
]
},
"codeCoverageExclude": [
"src/lib/moment/**/*",
"src/polyfills.ts",
"src/app/core/backend-api/gateways/**/*.*",
"src/app/core/shared/white-label/themes/**/*.*"
],
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [],
"scripts": [
"src/app/testing/global.js",
"node_modules/hammerjs/hammer.js"
],
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.json"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**",
"**/src/polyfills.ts",
"**/src/test.ts"
]
}
}
}
}
},
"defaultProject": "XX-frontend",
"cli": {
"defaultCollection": "@ngrx/schematics"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.