151 lines
6.2 KiB
JSON
151 lines
6.2 KiB
JSON
{
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
"version": 1,
|
|
"newProjectRoot": "projects",
|
|
"projects": {
|
|
"client": {
|
|
"projectType": "application",
|
|
"schematics": {
|
|
"@schematics/angular:component": {
|
|
"styleext": "scss"
|
|
}
|
|
},
|
|
"root": "",
|
|
"sourceRoot": "src",
|
|
"prefix": "os",
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular-devkit/build-angular:browser",
|
|
"options": {
|
|
"outputPath": "../openslides/static",
|
|
"index": "src/index.html",
|
|
"main": "src/main.ts",
|
|
"polyfills": "src/polyfills.ts",
|
|
"tsConfig": "tsconfig.app.json",
|
|
"aot": false,
|
|
"assets": [
|
|
"src/assets",
|
|
"src/manifest.json",
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce/skins",
|
|
"output": "/tinymce/skins/"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce/themes",
|
|
"output": "/tinymce/themes/"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce/plugins",
|
|
"output": "/tinymce/plugins/"
|
|
}
|
|
],
|
|
"styles": ["src/styles.scss"],
|
|
"scripts": ["node_modules/tinymce/tinymce.min.js"],
|
|
"webWorkerTsConfig": "tsconfig.worker.json"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"fileReplacements": [{
|
|
"replace": "src/environments/environment.ts",
|
|
"with": "src/environments/environment.prod.ts"
|
|
}],
|
|
"optimization": true,
|
|
"outputHashing": "all",
|
|
"sourceMap": false,
|
|
"extractCss": true,
|
|
"namedChunks": false,
|
|
"aot": true,
|
|
"extractLicenses": true,
|
|
"vendorChunk": false,
|
|
"buildOptimizer": true,
|
|
"serviceWorker": true,
|
|
"budgets": [{
|
|
"type": "initial",
|
|
"maximumWarning": "5mb",
|
|
"maximumError": "10mb"
|
|
}]
|
|
},
|
|
"es5": {
|
|
"tsConfig": "./tsconfig-es5.app.json"
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
"options": {
|
|
"browserTarget": "client:build"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"browserTarget": "client:build:production"
|
|
},
|
|
"es5": {
|
|
"browserTarget": "client:build:es5"
|
|
}
|
|
}
|
|
},
|
|
"extract-i18n": {
|
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
"options": {
|
|
"browserTarget": "client: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",
|
|
"styles": ["src/styles.scss"],
|
|
"scripts": ["node_modules/tinymce/tinymce.min.js"],
|
|
"assets": [
|
|
"src/assets",
|
|
"src/manifest.json",
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce/skins",
|
|
"output": "/tinymce/skins/"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce/themes",
|
|
"output": "/tinymce/themes/"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce/plugins",
|
|
"output": "/tinymce/plugins/"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"lint": {
|
|
"builder": "@angular-devkit/build-angular:tslint",
|
|
"options": {
|
|
"tsConfig": "tsconfig.spec.json",
|
|
"format": "stylish",
|
|
"exclude": ["**/node_modules/**"]
|
|
}
|
|
},
|
|
"e2e": {
|
|
"builder": "@angular-devkit/build-angular:protractor",
|
|
"options": {
|
|
"protractorConfig": "e2e/protractor.conf.js",
|
|
"devServerTarget": "client:serve"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"devServerTarget": "client:serve:production"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"defaultProject": "client"
|
|
}
|