SuiteCRM-Core/angular.json
Clemente Raposo aad193930a Add dynamic module federation to build
- Re-setup karma / jasmine tests
-- Fix tsconfig paths
-- Remove no longer needed view and field test imports
-- Add test app-shell specific test command
-- Add karma/jasmine specific webpack configuration
2021-03-30 19:22:44 +01:00

160 lines
No EOL
4.9 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": {
"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"
],
"deployUrl": "dist/",
"assets": [
"core/app/shell/src/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": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"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": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"extraWebpackConfig": "core/app/shell/webpack.prod.config.js"
}
}
},
"serve": {
"builder": "ngx-build-plus:dev-server",
"options": {
"browserTarget": "SuiteCRM:build:serve",
"proxyConfig": "./proxy.conf.local.json",
"extraWebpackConfig": "core/app/shell/webpack.config.js",
"port": 5000
},
"configurations": {
"production": {
"browserTarget": "SuiteCRM: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"
}
}
}
}
}
},
"defaultProject": "SuiteCRM",
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"style": "scss"
},
"@schematics/angular:directive": {
"prefix": "app"
}
},
"cli": {
"packageManager": "yarn"
}
}