SuiteCRM-Core/angular.json
2021-07-26 09:59:22 +01:00

267 lines
8.1 KiB
JSON

{
"$schema": "node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "core/app",
"projects": {
"shell": {
"root": "core/app/shell",
"sourceRoot": "core/app/shell/src",
"projectType": "application",
"prefix": "scrm",
"architect": {
"build": {
"builder": "ngx-build-plus:browser",
"options": {
"namedChunks": true,
"commonChunk": false,
"sourceMap": true,
"aot": true,
"outputPath": "public/dist/",
"index": "core/app/shell/src/index.html",
"main": "core/app/shell/src/main.ts",
"polyfills": "core/app/shell/src/polyfills.ts",
"tsConfig": "core/app/shell/tsconfig.app.json",
"scripts": [],
"styles": [
"node_modules/bootstrap-css-only/css/bootstrap.min.css",
"core/app/shell/src/themes/suite8/css/style.scss"
],
"stylePreprocessorOptions": {
"includePaths": [
"core/app/shell/src/themes/*/css"
]
},
"deployUrl": "dist/",
"assets": [
{
"glob": "**/*",
"input": "core/app/shell/src/themes",
"ignore": [
"**/*.scss"
],
"output": "/themes/"
}
],
"allowedCommonJsDependencies": [
"graphql-tag",
"zen-observable"
],
"extraWebpackConfig": "core/app/shell/webpack.config.js"
},
"configurations": {
"serve": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"deployUrl": "/",
"assets": [
{
"glob": "**/*",
"input": "core/app/shell/src/themes",
"output": "public/dist/themes"
}
]
},
"production": {
"fileReplacements": [
{
"replace": "core/app/shell/src/environments/environment.ts",
"with": "core/app/shell/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
],
"extraWebpackConfig": "core/app/shell/webpack.prod.config.js"
}
}
},
"serve": {
"builder": "ngx-build-plus:dev-server",
"options": {
"browserTarget": "shell:build:serve",
"proxyConfig": "./proxy.conf.local.json",
"extraWebpackConfig": "core/app/shell/webpack.config.js",
"port": 5000
},
"configurations": {
"production": {
"browserTarget": "shell:build:production",
"extraWebpackConfig": "core/app/shell/webpack.prod.config.js"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "shell:build"
}
},
"test": {
"builder": "ngx-build-plus:karma",
"options": {
"main": "core/app/shell/src/test.ts",
"polyfills": "core/app/shell/src/polyfills.ts",
"tsConfig": "core/app/shell/tsconfig.spec.json",
"karmaConfig": "core/app/shell/karma.conf.js",
"styles": [
"node_modules/bootstrap-css-only/css/bootstrap.min.css",
"core/app/shell/src/themes/suite8/css/style.scss"
],
"scripts": [],
"assets": [
"core/app/shell/src/themes"
],
"extraWebpackConfig": "core/app/shell/webpack.config.spec.js"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"eslintConfig": "./.eslintrc.js",
"tsConfig": "core/app/shell/tsconfig.app.json",
"fix": true
}
}
}
},
"SuiteCRM-e2e": {
"root": "core/app/shell/e2e",
"projectType": "application",
"prefix": "",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "core/app/shell/e2e/protractor.conf.js",
"devServerTarget": "SuiteCRM:serve"
},
"configurations": {
"production": {
"devServerTarget": "SuiteCRM:serve:production"
}
}
}
}
},
"common": {
"projectType": "library",
"root": "core/app/common",
"sourceRoot": "core/app/common/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "core/app/common/tsconfig.lib.json",
"project": "core/app/common/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "core/app/common/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "core/app/common/src/test.ts",
"tsConfig": "core/app/common/tsconfig.spec.json",
"karmaConfig": "core/app/common/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"core/app/common/tsconfig.lib.json",
"core/app/common/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"core": {
"projectType": "library",
"root": "core/app/core",
"sourceRoot": "core/app/core/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "core/app/core/tsconfig.lib.json",
"project": "core/app/core/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "core/app/core/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "ngx-build-plus:karma",
"options": {
"main": "core/app/core/src/test.ts",
"tsConfig": "core/app/core/tsconfig.spec.json",
"karmaConfig": "core/app/core/karma.conf.js",
"styles": [
"node_modules/bootstrap-css-only/css/bootstrap.min.css"
],
"scripts": [],
"assets": [
],
"extraWebpackConfig": "core/app/core/webpack.config.spec.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"core/app/core/tsconfig.lib.json",
"core/app/core/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "shell",
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"style": "scss"
},
"@schematics/angular:directive": {
"prefix": "app"
}
},
"cli": {
"packageManager": "yarn"
}
}