mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-48934 Migrate to @angular/build (#12098)
* AAE-48934 Migrate to @angular/build * cr * cr * fix watch issue * fix insights tests
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = function (config) {
|
||||
{ pattern: 'lib/process-services-cloud/**/*.ts', included: false, served: true, watched: false },
|
||||
{ pattern: 'lib/config/app.config.json', included: false, served: true, watched: false }
|
||||
],
|
||||
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
||||
frameworks: ['jasmine'],
|
||||
proxies: {
|
||||
'/assets/': '/base/lib/process-services-cloud/src/lib/assets/',
|
||||
'/resources/i18n/en.json': '/base/lib/process-services-cloud/src/lib/mock/en.json',
|
||||
@@ -34,13 +34,7 @@ module.exports = function (config) {
|
||||
'/assets/adf-process-services-cloud/i18n/en-GB.json': '/base/lib/process-services-cloud/lib/i18n/en.json',
|
||||
'/app.config.json': '/base/lib/config/app.config.json'
|
||||
},
|
||||
plugins: [
|
||||
require('karma-jasmine'),
|
||||
require('karma-chrome-launcher'),
|
||||
require('karma-jasmine-html-reporter'),
|
||||
require('karma-coverage'),
|
||||
require('@angular-devkit/build-angular/plugins/karma')
|
||||
],
|
||||
plugins: [require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage')],
|
||||
client: {
|
||||
clearContext: false,
|
||||
jasmine: {
|
||||
@@ -76,7 +70,6 @@ module.exports = function (config) {
|
||||
port: 9876,
|
||||
colors: true,
|
||||
logLevel: constants.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['ChromeHeadless'],
|
||||
singleRun: true
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"prefix": "adf-cloud",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@angular-devkit/build-angular:ng-packagr",
|
||||
"executor": "@angular/build:ng-packagr",
|
||||
"options": {
|
||||
"tsConfig": "lib/process-services-cloud/tsconfig.lib.json",
|
||||
"project": "lib/process-services-cloud/ng-package.json"
|
||||
@@ -20,11 +20,12 @@
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"test": {
|
||||
"executor": "@angular-devkit/build-angular:karma",
|
||||
"executor": "@angular/build:karma",
|
||||
"options": {
|
||||
"main": "lib/process-services-cloud/src/test.ts",
|
||||
"tsConfig": "lib/process-services-cloud/tsconfig.spec.json",
|
||||
"karmaConfig": "lib/process-services-cloud/karma.conf.js",
|
||||
"watch": false,
|
||||
"sourceMap": true,
|
||||
"codeCoverage": true,
|
||||
"stylePreprocessorOptions": {
|
||||
|
||||
Reference in New Issue
Block a user