From b6626e1c2025d45ae4e450ea242797ef71e4c21d Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Thu, 11 Aug 2016 16:30:36 +0100 Subject: [PATCH] fix tslint and package.json + build-all script --- .../activiti/form-viewer.component.ts | 4 +- demo-shell-ng2/i18n/en.json | 26 ++++++++- demo-shell-ng2/package.json | 2 +- ng2-components/ng2-activiti-form/package.json | 2 +- .../ng2-activiti-processlist/package.json | 56 +++++++++---------- .../ng2-activiti-processlist.component.ts | 2 +- .../{ => src}/i18n/en.json | 0 .../ng2-activiti-tasklist/package.json | 22 +++----- .../components/activiti-tasklist.component.ts | 2 +- .../{ => src}/i18n/en.json | 0 .../{ => src}/i18n/it.json | 0 ng2-components/ng2-alfresco-core/package.json | 2 +- .../ng2-alfresco-datatable/package.json | 2 +- .../ng2-alfresco-documentlist/package.json | 2 +- .../ng2-alfresco-login/package.json | 2 +- .../ng2-alfresco-search/package.json | 2 +- .../ng2-alfresco-upload/package.json | 2 +- ng2-components/ng2-alfresco-viewer/.gitignore | 2 + .../ng2-alfresco-viewer/package.json | 2 +- .../ng2-alfresco-webscript/.gitignore | 2 + .../ng2-alfresco-webscript/package.json | 2 +- scripts/npm-build-all.sh | 23 ++++++++ 22 files changed, 99 insertions(+), 60 deletions(-) rename ng2-components/ng2-activiti-processlist/{ => src}/i18n/en.json (100%) rename ng2-components/ng2-activiti-tasklist/{ => src}/i18n/en.json (100%) rename ng2-components/ng2-activiti-tasklist/{ => src}/i18n/it.json (100%) create mode 100755 scripts/npm-build-all.sh diff --git a/demo-shell-ng2/app/components/activiti/form-viewer.component.ts b/demo-shell-ng2/app/components/activiti/form-viewer.component.ts index da2d8768d7..fd06f7254e 100644 --- a/demo-shell-ng2/app/components/activiti/form-viewer.component.ts +++ b/demo-shell-ng2/app/components/activiti/form-viewer.component.ts @@ -33,10 +33,10 @@ declare var componentHandler; }) export class FormViewer implements OnInit, OnDestroy, AfterViewChecked { - private sub: Subscription; - taskId: string; + private sub: Subscription; + constructor(private formService: FormService, private route: ActivatedRoute, private router: Router) { diff --git a/demo-shell-ng2/i18n/en.json b/demo-shell-ng2/i18n/en.json index feee0cf879..6f006a8158 100644 --- a/demo-shell-ng2/i18n/en.json +++ b/demo-shell-ng2/i18n/en.json @@ -4,7 +4,7 @@ "DOCUMENT_LIST": { "COLUMNS": { "DISPLAY_NAME": "Display name", - "CREATED_BY": "Created by", + "CREATED_BY": "mario", "CREATED_ON": "Created on" }, "ACTIONS": { @@ -39,5 +39,29 @@ "CUSTOM": "Custom action" } } + }, + + "LOGIN": { + "LOGO": "Alfresco", + "LABEL": { + "LOGIN": "Login", + "USERNAME": "Username", + "PASSWORD": "Password", + "REMEMBER": "Remember" + }, + "MESSAGES": { + "USERNAME-REQUIRED": "Required", + "USERNAME-MIN": "Your username needs to be at least 4 characters.", + "PASSWORD-REQUIRED": "Enter your password to sign in", + "LOGIN-ERROR": "You have entered an invalid username or password", + "LOGIN-SUCCESS": "Login successful" + }, + "BUTTON": { + "LOGIN": "MARIO" + }, + "ACTION": { + "HELP": "NEED HELP?", + "REGISTER": "REGISTER" + } } } diff --git a/demo-shell-ng2/package.json b/demo-shell-ng2/package.json index 1a50ffdb5a..dc9db510fc 100644 --- a/demo-shell-ng2/package.json +++ b/demo-shell-ng2/package.json @@ -12,7 +12,7 @@ "tsc:w": "tsc -w", "serve": "wsrv -o -s -l -p 3000 -a 0.0.0.0 -x ./server/versions.js", "typings": "typings install", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json app/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'app/{,**/}**.ts'", "licensecheck": "license-check" }, "repository": { diff --git a/ng2-components/ng2-activiti-form/package.json b/ng2-components/ng2-activiti-form/package.json index 30c3e4bbe8..47503cb8be 100644 --- a/ng2-components/ng2-activiti-form/package.json +++ b/ng2-components/ng2-activiti-form/package.json @@ -11,7 +11,7 @@ "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build:w": "npm run tslint && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", diff --git a/ng2-components/ng2-activiti-processlist/package.json b/ng2-components/ng2-activiti-processlist/package.json index 56d9f49c9f..534fbe99cc 100644 --- a/ng2-components/ng2-activiti-processlist/package.json +++ b/ng2-components/ng2-activiti-processlist/package.json @@ -1,33 +1,19 @@ { - "keywords": [ - "ng2", - "angular", - "angular2", - "alfresco", - "activiti" - ], "name": "ng2-activiti-processlist", "description": "Show active processes from the Activiti BPM suite", "version": "0.2.0", "author": "Alfresco Software, Ltd.", "scripts": { + "postinstall": "typings install", "clean": "rimraf dist node_modules typings", "typings": "typings install", - "server": "http-server -c-1 -o -p 8875 .", - "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", - "build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task", - "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", - "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", - "tslint-root": "tslint -c tslint.json *.ts", - "copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images", - "copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-images:w\" \"npm run copy-i18n:w\"", - "copy-html-css": "cpx \"./src/**/*.{html,css}\" ./dist/src", - "copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w", - "copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n", - "copy-i18n:w": "cpx \"./i18n/**/*.json\" ./dist/i18n -w", - "copy-images": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src", - "copy-images:w": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src -w", + "server": "wsrv -o -p 9875", + "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", + "build:w": "npm run tslint && rimraf dist && npm run watch-task", + "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", + "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", + "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", "tsc:w": "tsc -w", "pretest": "npm run build", @@ -38,13 +24,28 @@ "prepublish": "npm run build", "travis": "npm link ng2-alfresco-core ng2-alfresco-datatable" }, + "main": "./dist/index.js", + "typings": "./dist/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/Alfresco/alfresco-ng2-components" + "url": "https://github.com/Alfresco/alfresco-ng2-components.git" }, "bugs": { "url": "https://github.com/Alfresco/alfresco-ng2-components/issues" }, + "license": "Apache-2.0", + "contributors": [ + { + "name": "Will Abson", + "email": "will.abson@alfresco.com" + } + ], + "keywords": [ + "ng2", + "angular", + "angular2", + "alfresco" + ], "dependencies": { "@angular/common": "2.0.0-rc.3", "@angular/compiler": "2.0.0-rc.3", @@ -102,12 +103,5 @@ "blocking": false, "logInfo": false, "logError": true - }, - "license": "Apache-2.0", - "contributors": [ - { - "name": "Will Abson", - "email": "will.abson@alfresco.com" - } - ] + } } diff --git a/ng2-components/ng2-activiti-processlist/src/components/ng2-activiti-processlist.component.ts b/ng2-components/ng2-activiti-processlist/src/components/ng2-activiti-processlist.component.ts index 0dd514bc2a..70660d19b4 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/ng2-activiti-processlist.component.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/ng2-activiti-processlist.component.ts @@ -60,7 +60,7 @@ export class Ng2ActivitiProcesslistComponent implements OnInit { private translate: AlfrescoTranslationService ) { if (translate !== null) { - translate.addTranslationFolder('node_modules/ng2-activiti-processlist'); + translate.addTranslationFolder('node_modules/ng2-activiti-processlist/src'); } } diff --git a/ng2-components/ng2-activiti-processlist/i18n/en.json b/ng2-components/ng2-activiti-processlist/src/i18n/en.json similarity index 100% rename from ng2-components/ng2-activiti-processlist/i18n/en.json rename to ng2-components/ng2-activiti-processlist/src/i18n/en.json diff --git a/ng2-components/ng2-activiti-tasklist/package.json b/ng2-components/ng2-activiti-tasklist/package.json index dda05ee92a..195bbb34fb 100644 --- a/ng2-components/ng2-activiti-tasklist/package.json +++ b/ng2-components/ng2-activiti-tasklist/package.json @@ -4,22 +4,16 @@ "version": "0.2.0", "author": "Alfresco Software, Ltd.", "scripts": { + "postinstall": "typings install", "clean": "rimraf dist node_modules typings", "typings": "typings install", - "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", - "build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task", - "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", - "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", - "tslint-root": "tslint -c tslint.json *.ts", - "copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images", - "copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-images:w\" \"npm run copy-i18n:w\"", - "copy-html-css": "cpx \"./src/**/*.{html,css}\" ./dist/src", - "copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w", - "copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n", - "copy-i18n:w": "cpx \"./i18n/**/*.json\" ./dist/i18n -w", - "copy-images": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src", - "copy-images:w": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src -w", + "server": "wsrv -o -p 9875", + "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", + "build:w": "npm run tslint && rimraf dist && npm run watch-task", + "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", + "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", + "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", "tsc:w": "tsc -w", "pretest": "npm run build", diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.ts b/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.ts index 7e6dc87b7c..bf7a6834cc 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.ts +++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.ts @@ -71,7 +71,7 @@ export class ActivitiTaskList implements OnInit { public activiti: ActivitiTaskListService) { if (translate) { - translate.addTranslationFolder('node_modules/ng2-activiti-tasklist'); + translate.addTranslationFolder('node_modules/ng2-activiti-tasklist/src'); } } diff --git a/ng2-components/ng2-activiti-tasklist/i18n/en.json b/ng2-components/ng2-activiti-tasklist/src/i18n/en.json similarity index 100% rename from ng2-components/ng2-activiti-tasklist/i18n/en.json rename to ng2-components/ng2-activiti-tasklist/src/i18n/en.json diff --git a/ng2-components/ng2-activiti-tasklist/i18n/it.json b/ng2-components/ng2-activiti-tasklist/src/i18n/it.json similarity index 100% rename from ng2-components/ng2-activiti-tasklist/i18n/it.json rename to ng2-components/ng2-activiti-tasklist/src/i18n/it.json diff --git a/ng2-components/ng2-alfresco-core/package.json b/ng2-components/ng2-alfresco-core/package.json index 52cbb6a668..7d067d44e8 100644 --- a/ng2-components/ng2-alfresco-core/package.json +++ b/ng2-components/ng2-alfresco-core/package.json @@ -10,7 +10,7 @@ "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build:w": "npm run tslint && rimraf dist && tsc && npm run copy-dist:w && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"license-check\"", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", "licensecheck": "license-check", "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", diff --git a/ng2-components/ng2-alfresco-datatable/package.json b/ng2-components/ng2-alfresco-datatable/package.json index bf6963306d..38ed0864c1 100644 --- a/ng2-components/ng2-alfresco-datatable/package.json +++ b/ng2-components/ng2-alfresco-datatable/package.json @@ -11,7 +11,7 @@ "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build:w": "npm run tslint && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", diff --git a/ng2-components/ng2-alfresco-documentlist/package.json b/ng2-components/ng2-alfresco-documentlist/package.json index 3e6323f29b..d70e6ee051 100644 --- a/ng2-components/ng2-alfresco-documentlist/package.json +++ b/ng2-components/ng2-alfresco-documentlist/package.json @@ -10,7 +10,7 @@ "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build:w": "npm run tslint && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", diff --git a/ng2-components/ng2-alfresco-login/package.json b/ng2-components/ng2-alfresco-login/package.json index 61b06efce8..0a565f500d 100644 --- a/ng2-components/ng2-alfresco-login/package.json +++ b/ng2-components/ng2-alfresco-login/package.json @@ -10,7 +10,7 @@ "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build:w": "npm run tslint && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", diff --git a/ng2-components/ng2-alfresco-search/package.json b/ng2-components/ng2-alfresco-search/package.json index 5f575b8d21..18d3a755da 100644 --- a/ng2-components/ng2-alfresco-search/package.json +++ b/ng2-components/ng2-alfresco-search/package.json @@ -10,7 +10,7 @@ "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build:w": "npm run tslint && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", diff --git a/ng2-components/ng2-alfresco-upload/package.json b/ng2-components/ng2-alfresco-upload/package.json index 7dfe8fbac6..bbc11604b5 100644 --- a/ng2-components/ng2-alfresco-upload/package.json +++ b/ng2-components/ng2-alfresco-upload/package.json @@ -10,7 +10,7 @@ "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build:w": "npm run tslint && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", diff --git a/ng2-components/ng2-alfresco-viewer/.gitignore b/ng2-components/ng2-alfresco-viewer/.gitignore index aef7467c05..b7afa7a47d 100644 --- a/ng2-components/ng2-alfresco-viewer/.gitignore +++ b/ng2-components/ng2-alfresco-viewer/.gitignore @@ -11,4 +11,6 @@ src/**/*.d.ts demo/**/*.js demo/**/*.js.map demo/**/*.d.ts +index.js +index.js.map !systemjs.config.js diff --git a/ng2-components/ng2-alfresco-viewer/package.json b/ng2-components/ng2-alfresco-viewer/package.json index cd19111d33..36bb3542b8 100644 --- a/ng2-components/ng2-alfresco-viewer/package.json +++ b/ng2-components/ng2-alfresco-viewer/package.json @@ -10,7 +10,7 @@ "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build:w": "npm run tslint && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", diff --git a/ng2-components/ng2-alfresco-webscript/.gitignore b/ng2-components/ng2-alfresco-webscript/.gitignore index 3bea8a0c07..8987ee1a87 100644 --- a/ng2-components/ng2-alfresco-webscript/.gitignore +++ b/ng2-components/ng2-alfresco-webscript/.gitignore @@ -10,4 +10,6 @@ src/**/*.d.ts demo/**/*.js demo/**/*.js.map demo/**/*.d.ts +index.js +index.js.map !systemjs.config.js diff --git a/ng2-components/ng2-alfresco-webscript/package.json b/ng2-components/ng2-alfresco-webscript/package.json index c16493d5f9..388bdc25fc 100644 --- a/ng2-components/ng2-alfresco-webscript/package.json +++ b/ng2-components/ng2-alfresco-webscript/package.json @@ -12,7 +12,7 @@ "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build:w": "npm run tslint && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", - "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'", "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", diff --git a/scripts/npm-build-all.sh b/scripts/npm-build-all.sh new file mode 100755 index 0000000000..a53091a2d4 --- /dev/null +++ b/scripts/npm-build-all.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +for PACKAGE in \ + ng2-activiti-form \ + ng2-activiti-processlist \ + ng2-activiti-tasklist \ + ng2-alfresco-core \ + ng2-alfresco-datatable \ + ng2-alfresco-documentlist \ + ng2-alfresco-login \ + ng2-alfresco-search \ + ng2-alfresco-upload \ + ng2-alfresco-viewer \ + ng2-alfresco-webscript +do + DESTDIR="$DIR/../ng2-components/${PACKAGE}" + echo "====== build components : ${PACKAGE} =====" + cd "$DESTDIR" + npm install + npm run build +done \ No newline at end of file