mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* upgrade preparation fixes * remove fdescribe * update browserlist config * ng8 * ngrx 8 * ng9 * ngrx 9 * remove entryComponents * unit tests * ng 10 * latest ADF * fix unit tests * fix lint * update deps and travis * code fixes * upgrade webdriver * cleanup libs * fix test * update test * Use browserTarget as target for lite-serve * Use the update webdriver with CI condition * Use version console.log('load', path * Fix path sh * Try to use remote env * Add the . to export variabled * Use hardcoded chrome version * Remove the run remote * Avoid to use the escape * Skip flaky e2e and raise issue ACA-3615 * SKip failing e2e * Skip flaky e2e and raise issue ACA-3615 * Fix close app toolbar menu and preconditions + tests of mark-favorite.test.ts Personal Files section * Fix mark-favorite tests * Fix ext-header test * Fix new-menu tests * Fix lint * no message * Fix viewer tests Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com> Co-authored-by: Cristina Jalba <cristina.jalba@ness.com>
384 lines
12 KiB
JSON
384 lines
12 KiB
JSON
{
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
"version": 1,
|
|
"newProjectRoot": "projects",
|
|
"projects": {
|
|
"app": {
|
|
"root": "",
|
|
"sourceRoot": "src",
|
|
"projectType": "application",
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular-devkit/build-angular:browser",
|
|
"options": {
|
|
"aot": true,
|
|
"outputPath": "dist/app",
|
|
"index": "src/index.html",
|
|
"main": "src/main.ts",
|
|
"tsConfig": "src/tsconfig.app.json",
|
|
"polyfills": "src/polyfills.ts",
|
|
"stylePreprocessorOptions": {
|
|
"includePaths": [
|
|
"src/app/ui"
|
|
]
|
|
},
|
|
"assets": [
|
|
{
|
|
"glob": "LICENSE",
|
|
"input": ".",
|
|
"output": "/"
|
|
},
|
|
"src/assets",
|
|
"src/favicon-96x96.png",
|
|
"src/app.config.json",
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@alfresco/adf-core/prebuilt-themes",
|
|
"output": "/assets/prebuilt-themes"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@alfresco/adf-core/bundles/assets",
|
|
"output": "/assets"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@alfresco/adf-content-services/bundles/assets",
|
|
"output": "/assets"
|
|
},
|
|
{
|
|
"glob": "pdf.worker.min.js",
|
|
"input": "node_modules/pdfjs-dist/build",
|
|
"output": "/"
|
|
},
|
|
{
|
|
"glob": "extension.schema.json",
|
|
"input": ".",
|
|
"output": "./assets"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@alfresco/adf-office-services-ext/assets",
|
|
"output": "./assets/adf-office-services-ext"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "projects/adf-office-services-ext/assets",
|
|
"output": "./assets/adf-office-services-ext"
|
|
},
|
|
{
|
|
"glob": "aos.plugin.json",
|
|
"input": "node_modules/@alfresco/adf-office-services-ext/assets",
|
|
"output": "./assets/plugins"
|
|
},
|
|
{
|
|
"glob": "aos.plugin.json",
|
|
"input": "projects/adf-office-services-ext/assets",
|
|
"output": "./assets/plugins"
|
|
}
|
|
],
|
|
"styles": [
|
|
"src/assets/fonts/material-icons/material-icons.css",
|
|
"src/assets/fonts/muli/muli.css",
|
|
"src/styles.scss"
|
|
],
|
|
"scripts": [
|
|
"node_modules/pdfjs-dist/build/pdf.js",
|
|
"node_modules/pdfjs-dist/web/pdf_viewer.js",
|
|
"node_modules/moment/min/moment.min.js"
|
|
]
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"optimization": true,
|
|
"outputHashing": "all",
|
|
"sourceMap": false,
|
|
"extractCss": true,
|
|
"namedChunks": false,
|
|
"aot": true,
|
|
"extractLicenses": true,
|
|
"vendorChunk": false,
|
|
"buildOptimizer": true,
|
|
"fileReplacements": [
|
|
{
|
|
"replace": "src/environments/environment.ts",
|
|
"with": "src/environments/environment.prod.ts"
|
|
}
|
|
],
|
|
"budgets": [
|
|
{
|
|
"type": "bundle",
|
|
"name": "main",
|
|
"maximumWarning": "2mb",
|
|
"maximumError": "5mb"
|
|
},
|
|
{
|
|
"type": "bundle",
|
|
"name": "vendor",
|
|
"maximumWarning": "10mb",
|
|
"maximumError": "15mb"
|
|
},
|
|
{
|
|
"type": "anyComponentStyle",
|
|
"maximumWarning": "6kb"
|
|
}
|
|
]
|
|
},
|
|
"e2e": {
|
|
"budgets": [
|
|
{
|
|
"type": "anyComponentStyle",
|
|
"maximumWarning": "6kb"
|
|
}
|
|
],
|
|
"optimization": true,
|
|
"outputHashing": "all",
|
|
"sourceMap": false,
|
|
"extractCss": true,
|
|
"namedChunks": false,
|
|
"aot": true,
|
|
"extractLicenses": true,
|
|
"vendorChunk": false,
|
|
"buildOptimizer": true,
|
|
"fileReplacements": [
|
|
{
|
|
"replace": "src/environments/environment.ts",
|
|
"with": "src/environments/environment.e2e.ts"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
"options": {
|
|
"browserTarget": "app:build",
|
|
"port": 4200,
|
|
"host": "0.0.0.0",
|
|
"proxyConfig": "src/proxy.conf.js"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"browserTarget": "app:build:production"
|
|
},
|
|
"e2e": {
|
|
"browserTarget": "app:build:e2e"
|
|
}
|
|
}
|
|
},
|
|
"lite-serve": {
|
|
"builder": "@angular-custom-builders/lite-serve:dist-serve",
|
|
"options": {
|
|
"publicHost": "http://localhost:4200",
|
|
"browserTarget": "app:build"
|
|
}
|
|
},
|
|
"extract-i18n": {
|
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
"options": {
|
|
"browserTarget": "app:build"
|
|
}
|
|
},
|
|
"test": {
|
|
"builder": "@angular-devkit/build-angular:karma",
|
|
"options": {
|
|
"main": "src/test.ts",
|
|
"karmaConfig": "./karma.conf.js",
|
|
"sourceMap": true,
|
|
"polyfills": "src/polyfills.ts",
|
|
"stylePreprocessorOptions": {
|
|
"includePaths": [
|
|
"src/app/ui"
|
|
]
|
|
},
|
|
"tsConfig": "src/tsconfig.spec.json",
|
|
"scripts": [
|
|
"node_modules/pdfjs-dist/build/pdf.js",
|
|
"node_modules/pdfjs-dist/web/pdf_viewer.js",
|
|
"node_modules/moment/min/moment.min.js"
|
|
],
|
|
"styles": [
|
|
"src/assets/fonts/material-icons/material-icons.css",
|
|
"src/assets/fonts/muli/muli.css",
|
|
"src/styles.scss"
|
|
],
|
|
"assets": [
|
|
"src/assets",
|
|
"src/favicon-96x96.png",
|
|
"src/app.config.json",
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@alfresco/adf-core/prebuilt-themes",
|
|
"output": "/assets/prebuilt-themes"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@alfresco/adf-core/bundles/assets",
|
|
"output": "/assets"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@alfresco/adf-content-services/bundles/assets",
|
|
"output": "/assets"
|
|
},
|
|
{
|
|
"glob": "pdf.worker.min.js",
|
|
"input": "node_modules/pdfjs-dist/build",
|
|
"output": "/"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"lint": {
|
|
"builder": "@angular-devkit/build-angular:tslint",
|
|
"options": {
|
|
"tsConfig": [
|
|
"src/tsconfig.app.json",
|
|
"src/tsconfig.spec.json"
|
|
],
|
|
"exclude": [
|
|
"**/node_modules/**",
|
|
"package.json"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"app-e2e": {
|
|
"root": "e2e",
|
|
"sourceRoot": "e2e",
|
|
"projectType": "application",
|
|
"architect": {
|
|
"e2e": {
|
|
"builder": "@angular-devkit/build-angular:protractor",
|
|
"options": {
|
|
"protractorConfig": "./protractor.conf.js",
|
|
"devServerTarget": "app:serve"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"devServerTarget": "app:serve:production"
|
|
}
|
|
}
|
|
},
|
|
"e2elite": {
|
|
"builder": "@angular-devkit/build-angular:protractor",
|
|
"options": {
|
|
"protractorConfig": "protractor.conf.js",
|
|
"webdriverUpdate": false,
|
|
"devServerTarget": "app:lite-serve"
|
|
}
|
|
},
|
|
"lint": {
|
|
"builder": "@angular-devkit/build-angular:tslint",
|
|
"options": {
|
|
"tsConfig": [
|
|
"e2e/tsconfig.e2e.json"
|
|
],
|
|
"exclude": [
|
|
"**/node_modules/**",
|
|
"package.json"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"adf-office-services-ext": {
|
|
"root": "projects/adf-office-services-ext",
|
|
"sourceRoot": "projects/adf-office-services-ext/src",
|
|
"projectType": "library",
|
|
"prefix": "lib",
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular-devkit/build-ng-packagr:build",
|
|
"options": {
|
|
"tsConfig": "projects/adf-office-services-ext/tsconfig.lib.json",
|
|
"project": "projects/adf-office-services-ext/ng-package.json"
|
|
}
|
|
, "configurations": {
|
|
"production": {
|
|
"tsConfig": "projects/adf-office-services-ext/tsconfig.lib.prod.json"
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"builder": "@angular-devkit/build-angular:karma",
|
|
"options": {
|
|
"main": "projects/adf-office-services-ext/src/test.ts",
|
|
"tsConfig": "projects/adf-office-services-ext/tsconfig.spec.json",
|
|
"karmaConfig": "projects/adf-office-services-ext/karma.conf.js"
|
|
}
|
|
},
|
|
"lint": {
|
|
"builder": "@angular-devkit/build-angular:tslint",
|
|
"options": {
|
|
"tsConfig": [
|
|
"projects/adf-office-services-ext/tsconfig.lib.json",
|
|
"projects/adf-office-services-ext/tsconfig.spec.json"
|
|
],
|
|
"exclude": [
|
|
"**/node_modules/**"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"aca-shared": {
|
|
"root": "projects/aca-shared",
|
|
"sourceRoot": "projects/aca-shared/src",
|
|
"projectType": "library",
|
|
"prefix": "lib",
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular-devkit/build-ng-packagr:build",
|
|
"options": {
|
|
"tsConfig": "projects/aca-shared/tsconfig.lib.json",
|
|
"project": "projects/aca-shared/ng-package.json"
|
|
}
|
|
, "configurations": {
|
|
"production": {
|
|
"tsConfig": "projects/aca-shared/tsconfig.lib.prod.json"
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"builder": "@angular-devkit/build-angular:karma",
|
|
"options": {
|
|
"main": "projects/aca-shared/test.ts",
|
|
"tsConfig": "projects/aca-shared/tsconfig.spec.json",
|
|
"karmaConfig": "projects/aca-shared/karma.conf.js"
|
|
}
|
|
},
|
|
"lint": {
|
|
"builder": "@angular-devkit/build-angular:tslint",
|
|
"options": {
|
|
"tsConfig": [
|
|
"projects/aca-shared/tsconfig.lib.json",
|
|
"projects/aca-shared/tsconfig.spec.json"
|
|
],
|
|
"exclude": [
|
|
"**/node_modules/**"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"aca-testing-shared": {
|
|
"root": "projects/aca-testing-shared",
|
|
"sourceRoot": "projects/aca-testing-shared/src",
|
|
"projectType": "library",
|
|
"prefix": "lib"
|
|
}
|
|
},
|
|
"defaultProject": "app",
|
|
"schematics": {
|
|
"@schematics/angular:component": {
|
|
"prefix": "aca",
|
|
"style": "scss"
|
|
},
|
|
"@schematics/angular:directive": {
|
|
"prefix": "aca"
|
|
}
|
|
}
|
|
}
|