mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 04:47:10 +08:00
- Move files to core lib - Fix imports - Fix unit tests configuration - Fix configuration - Use ng-dynamic-component no barrels version -- enables using ng-dynamic-component in angular lib
247 lines
7.5 KiB
JSON
247 lines
7.5 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": "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"
|
|
}
|
|
}
|