[ADF-2514][ADF-2517][ADF-2143] Fix build isssues (#3097)

* fix remove angular folder problem

* fix npm import cli

* fix search module

* fix comment

* fix tsconfig output

* es 20016 tsconfig

* travis add demo shell dist

* exclude datapicker process services

* demo shell script fix

* bundle check new build

* add simulate publish

* invert publish

* test distribution

* improve sh help

* uncomment script

* finally got the guilty piece of code

* run e2e
This commit is contained in:
Eugenio Romano
2018-03-20 11:53:11 +00:00
committed by GitHub
parent c06cf28769
commit c578529b15
19 changed files with 188 additions and 49 deletions

View File

@@ -29,14 +29,14 @@ import { SearchControlComponent } from './components/search-control.component';
import { SearchComponent } from './components/search.component';
import { EmptySearchResultComponent } from './components/empty-search-result.component';
export const ALFRESCO_SEARCH_DIRECTIVES: [any] = [
export const ALFRESCO_SEARCH_DIRECTIVES: any[] = [
SearchComponent,
SearchControlComponent,
SearchTriggerDirective,
EmptySearchResultComponent
];
export const ALFRESCO_SEARCH_PROVIDERS: [any] = [
export const ALFRESCO_SEARCH_PROVIDERS: any[] = [
SearchService
];

View File

@@ -16,7 +16,7 @@
"noFallthroughCasesInSwitch": true,
"removeComments": true,
"declaration": true,
"outDir": "./",
"outDir": "../dist/content-services/",
"baseUrl" : "./",
"paths": {
"@alfresco/adf-process-services": ["../process-services"],
@@ -25,7 +25,7 @@
"@angular/*": ["../node_modules/@angular/*"]
},
"lib": [
"es2015",
"es2016",
"dom"
],
"suppressImplicitAnyIndexErrors": true,

View File

@@ -16,7 +16,7 @@
"noFallthroughCasesInSwitch": true,
"removeComments": true,
"declaration": true,
"outDir": "./",
"outDir": "../dist/core/",
"baseUrl" : "./",
"allowSyntheticDefaultImports": true,
"paths": {
@@ -26,7 +26,7 @@
"@angular/*": ["../node_modules/@angular/*"]
},
"lib": [
"es2015",
"es2016",
"dom"
],
"suppressImplicitAnyIndexErrors": true,

View File

@@ -16,7 +16,7 @@
"noFallthroughCasesInSwitch": true,
"removeComments": true,
"declaration": true,
"outDir": "./",
"outDir": "../dist/insights/",
"baseUrl" : "./",
"paths": {
"@alfresco/adf-process-services": ["../process-services"],
@@ -26,7 +26,7 @@
"@angular/*": ["../node_modules/@angular/*"]
},
"lib": [
"es2015",
"es2016",
"dom"
],
"suppressImplicitAnyIndexErrors": true,

View File

@@ -7,7 +7,7 @@
"clean": "rimraf node_modules",
"clean-lock": "rimraf package-lock.json",
"rimraf": "rimraf",
"build": "npm run webpack -- --config config/webpack.build.js --progress --profile --bail && npm run build-style && npm run bundlesize-check",
"build": "npm run webpack -- --config config/webpack.build.js --progress --profile --bail && npm run build-style",
"test": "node node_modules/karma/bin/karma start --reporters mocha,coverage --single-run --component .",
"build-style": "npm run bundle-scss && npm run webpack -- --config config/webpack.style.js --progress --profile --bail",
"build-style-new": "npm run bundle-scss-new && npm run webpack -- --config config/webpack.style.js --progress --profile --bail",
@@ -24,7 +24,7 @@
"copy-i18n": "mkdir -p dist/core/bundles/assets/adf-core/i18n && cp -R core/i18n/* dist/core/bundles/assets/adf-core/i18n && mkdir -p dist/content-services/bundles/assets/adf-content-services/i18n && cp -R content-services/i18n/* dist/content-services/bundles/assets/adf-content-services/i18n && mkdir -p dist/process-services/bundles/assets/adf-process-services/i18n && cp -R process-services/i18n/* dist/process-services/bundles/assets/adf-process-services/i18n && mkdir -p dist/insights/bundles/assets/adf-insights/i18n && cp -R insights/i18n/* dist/insights/bundles/assets/adf-insights/i18n",
"copy-assets": "cp -R core/assets/* dist/core/bundles/assets && cp -R content-services/assets/* dist/content-services/bundles/assets && cp -R process-services/assets/* dist/process-services/bundles/assets",
"copy-app-schema": "cp core/app-config/schema.json dist/core/app.config.schema.json",
"new-build": "npm run build-bundles && npm run build-style-new && npm run copy-i18n && npm run copy-assets && npm run copy-app-schema",
"new-build": "rm -rf node_modules/@alfresco && npm run build-bundles && npm run build-style-new && npm run copy-i18n && npm run copy-assets && npm run copy-app-schema && npm run bundlesize-check",
"build-bundles": "npm run build-core && npm run link-core && npm run build-content && npm run link-content && npm run build-process && npm run build-insights",
"link-core": "mkdir -p ./node_modules/@alfresco/adf-core/ && cp -R ./dist/core/* ./node_modules/@alfresco/adf-core/",
"link-content": "mkdir -p ./node_modules/@alfresco/adf-content-services/ && cp -R ./dist/content-services/* ./node_modules/@alfresco/adf-content-services/",
@@ -161,19 +161,19 @@
"license": "Apache-2.0",
"bundlesize": [
{
"path": "./content-services/bundles/adf-content-services.js",
"path": "./dist/content-services/bundles/adf-content-services.umd.js",
"maxSize": "50 kb"
},
{
"path": "./process-services/bundles/adf-process-services.js",
"maxSize": "60 kb"
"path": "./dist/process-services/bundles/adf-process-services.umd.js",
"maxSize": "50 kb"
},
{
"path": "./insights/bundles/adf-insights.js",
"maxSize": "60 kb"
"path": "./dist/insights/bundles/adf-insights.umd.js",
"maxSize": "50 kb"
},
{
"path": "./core/bundles/adf-core.js",
"path": "./dist/core/bundles/adf-core.umd.js",
"maxSize": "150 kb"
}
],

View File

@@ -19,7 +19,6 @@
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
import {
baseHost,
UploadWidgetComponent,
FormService,
LogService,
@@ -32,12 +31,23 @@ import {
import { ContentNodeDialogService } from '@alfresco/adf-content-services';
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/from';
@Component({
selector: 'attach-widget',
templateUrl: './attach-file-widget.component.html',
styleUrls: ['./attach-file-widget.component.scss'],
host: baseHost,
host: {
'(click)': 'event($event)',
'(blur)': 'event($event)',
'(change)': 'event($event)',
'(focus)': 'event($event)',
'(focusin)': 'event($event)',
'(focusout)': 'event($event)',
'(input)': 'event($event)',
'(invalid)': 'event($event)',
'(select)': 'event($event)'
},
encapsulation: ViewEncapsulation.None
})
export class AttachFileWidgetComponent extends UploadWidgetComponent implements OnInit {

View File

@@ -19,7 +19,6 @@
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
import {
baseHost,
WidgetComponent,
FormService,
NodesApiService
@@ -31,7 +30,17 @@ import { MinimalNodeEntryEntity } from 'alfresco-js-api';
selector: 'attach-folder-widget',
templateUrl: './attach-folder-widget.component.html',
styleUrls: ['./attach-folder-widget.component.scss'],
host: baseHost,
host: {
'(click)': 'event($event)',
'(blur)': 'event($event)',
'(change)': 'event($event)',
'(focus)': 'event($event)',
'(focusin)': 'event($event)',
'(focusout)': 'event($event)',
'(input)': 'event($event)',
'(invalid)': 'event($event)',
'(select)': 'event($event)'
},
encapsulation: ViewEncapsulation.None
})
export class AttachFolderWidgetComponent extends WidgetComponent implements OnInit {

View File

@@ -13,6 +13,7 @@
"minimatch": "minimatch",
"@angular/platform-browser/animations": "@angular/platform-browser/animations",
"@angular/material": "@angular/material",
"@mat-datetimepicker": "@mat-datetimepicker",
"@angular/flex-layout": "@angular/flex-layout",
"@alfresco/adf-core": "@alfresco/adf-core",
"@alfresco/adf-content-services": "@alfresco/adf-content-services",

View File

@@ -90,7 +90,7 @@ export class ProcessInstanceDetailsComponent implements OnChanges {
}
/**
* Reset the task detail to undefined
* Reset the task detail
*/
reset() {
this.processInstanceDetails = null;

View File

@@ -27,6 +27,7 @@ import 'rxjs/add/observable/throw';
import 'rxjs/add/observable/forkJoin';
import 'rxjs/add/observable/fromPromise';
import 'rxjs/operator/switchMap';
import 'rxjs/add/observable/from';
@Injectable()
export class TaskListService {

View File

@@ -16,7 +16,7 @@
"noFallthroughCasesInSwitch": true,
"removeComments": true,
"declaration": true,
"outDir": "./",
"outDir": "../dist/process-services/",
"baseUrl" : "./",
"paths": {
"@alfresco/adf-process-services": ["../process-services"],
@@ -26,7 +26,7 @@
"@angular/*": ["../node_modules/@angular/*"]
},
"lib": [
"es2015",
"es2016",
"dom"
],
"suppressImplicitAnyIndexErrors": true,

View File

@@ -31,7 +31,7 @@
"rxjs/*": ["./node_modules/rxjs/*"]
},
"lib": [
"es2015",
"es2016",
"dom"
],
"suppressImplicitAnyIndexErrors": true,