[ADF-570] Script for Pushing to Registry (#1875)

* change prepublish to build only
add .npmrc in the gitignore and npmignore
clean .npmrc during the clean task
change registry during publish with npmrc file
add rimraf install in npm publish

* add option to link an alfresco-js-api from github

* npm build on develop branch will use the alfresco-js-api from develop

* modify script after review
add -gitjsapi to starts.sh to change jsapi pointing
add -vjsapi to starts.sh to change jsapi pointing

* start dist demo shell script option
This commit is contained in:
Eugenio Romano
2017-05-12 15:12:24 +01:00
committed by Eugenio Romano
parent 1fadfa8166
commit 72704cad57
70 changed files with 351 additions and 54 deletions

1
.gitignore vendored
View File

@@ -12,3 +12,4 @@ ng2-components/ng2-alfresco-userinfo-old/src/services/ecm-user.service.spec.ts
src/environments/ src/environments/
/ng2-components/ng2-example-webpack/ /ng2-components/ng2-example-webpack/
/ng2-components/config/coverage/ /ng2-components/config/coverage/
*.npmrc

View File

@@ -15,7 +15,11 @@ env:
script: script:
- if ([ "$MODULE" == "ng2-components" ]); then - if ([ "$MODULE" == "ng2-components" ]); then
if ([ "$TRAVIS_BRANCH" = "master" ]); then
(./scripts/npm-build-all.sh -t || exit 1;); (./scripts/npm-build-all.sh -t || exit 1;);
else
(./scripts/npm-build-all.sh -t -gitjsapi development|| exit 1;);
fi
fi fi
- if ([ "$MODULE" == "ng2-demo-shell" ]); then - if ([ "$MODULE" == "ng2-demo-shell" ]); then
(cd demo-shell-ng2 && npm install && npm run test || exit 1;); (cd demo-shell-ng2 && npm install && npm run test || exit 1;);

View File

@@ -17,8 +17,13 @@ install:
# Get the latest stable version of Node.js or io.js # Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version - ps: Install-Product node $env:nodejs_version
# install module # install module
- IF %COMPONENT_NAME% EQU ng2-components (cd scripts && sh npm-build-all.sh -t) - if %COMPONENT_NAME% EQU ng2-components (
- IF %COMPONENT_NAME% EQU ng2-demo-shell (cd demo-shell-ng2 && npm install && npm run test || exit 1) if %APPVEYOR_REPO_BRANCH EQU master
(cd scripts && sh npm-build-all.sh -t || exit 1)
else
(cd scripts && sh npm-build-all.sh -t -gitjsapi development|| exit 1)
)
- if %COMPONENT_NAME% EQU ng2-demo-shell (cd demo-shell-ng2 && npm install && npm run test || exit 1)
# Don't actually build. # Don't actually build.
build: off build: off

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-activiti-analytics.js", "main": "bundles/ng2-activiti-analytics.js",
"contributors": [ "contributors": [

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-activiti-diagrams.js", "main": "bundles/ng2-activiti-diagrams.js",
"contributors": [ "contributors": [

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-activiti-form.js", "main": "bundles/ng2-activiti-form.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-activiti-processlist.js", "main": "bundles/ng2-activiti-processlist.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-activiti-tasklist.js", "main": "bundles/ng2-activiti-tasklist.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-core.js", "main": "bundles/ng2-alfresco-core.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-datatable.js", "main": "bundles/ng2-alfresco-datatable.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-documentlist.js", "main": "bundles/ng2-alfresco-documentlist.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-login.js", "main": "bundles/ng2-alfresco-login.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-search.js", "main": "bundles/ng2-alfresco-search.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-social.js", "main": "bundles/ng2-alfresco-social.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-tag.js", "main": "bundles/ng2-alfresco-tag.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-upload.js", "main": "bundles/ng2-alfresco-upload.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-userinfo.js", "main": "bundles/ng2-alfresco-userinfo.js",
"repository": { "repository": {

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,7 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
demo/localTestFile.pdf demo/localTestFile.pdf
coverage/ coverage/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,7 +4,8 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",

View File

@@ -1,6 +1,7 @@
npm-debug.log npm-debug.log
node_modules node_modules
.idea .idea
.npmrc
typings typings
coverage coverage
dist dist

View File

@@ -1,5 +1,6 @@
npm-debug.log npm-debug.log
.idea .idea
.npmrc
coverage/ coverage/
demo/ demo/

View File

@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test'); require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test'); require('zone.js/dist/fake-async-test');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
var appContext = require.context('./src', true, /\.spec\.ts/); var appContext = require.context('./src', true, /\.spec\.ts/);
appContext.keys().forEach(appContext); appContext.keys().forEach(appContext);

View File

@@ -4,12 +4,13 @@
"version": "1.4.0", "version": "1.4.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules typings bundles coverage", "clean": "rimraf dist node_modules typings bundles coverage .npmrc",
"rimraf": "rimraf",
"build": "webpack --config webpack.build.js --progress --profile --bail", "build": "webpack --config webpack.build.js --progress --profile --bail",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
"test-browser": "karma start karma.conf.js --reporters kjhtml --component", "test-browser": "karma start karma.conf.js --reporters kjhtml --component",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
"prepublish" : "npm run test" "prepublish" : "npm run build"
}, },
"main": "bundles/ng2-alfresco-webscript.js", "main": "bundles/ng2-alfresco-webscript.js",
"repository": { "repository": {

View File

@@ -38,12 +38,43 @@ feel for what's available.
```sh ```sh
./start.sh -update or -u ./start.sh -update or -u
``
* Install a different version of the ng2-components specified in the package.json his option is not compatible with -d
```sh
./start.sh -version or -v COMPONENTS_VERSION
./start.sh -v 1.4.0
``` ```
* Start the demo in development mode building the relative folder ng2-components with all the components and pointing to this component instead to the node_modules one * Start the demo in development mode building the relative folder ng2-components with all the components and pointing to this component instead to the node_modules one
```sh ```sh
./start.sh -develop -d ./start.sh -develop or -d
```
* Start the demo start the demo shell in dist mode
```sh
./start.sh -dist
```
* If you want start the demo shell using an alfresco-js-api referenced by commit-ish version of the JS-API
```sh
./start.sh -gitjsapi commit-ish
./start.sh -gitjsapi development
./start.sh -gitjsapi de92be966e2ce7eca642ca9e9d7647ba4f849356
```
* If you want start the alfresco-js-api against a commit-ish version of the JS-API
```sh
./start.sh -vjsapi 1.4.0
``` ```
* If you want to build all your local component: * If you want to build all your local component:
@@ -55,13 +86,23 @@ feel for what's available.
* If you want to build all your local component and run the test: * If you want to build all your local component and run the test:
```sh ```sh
./npm-buid-alll.sh -t or -test ./npm-buid-all.sh -t or -test
``` ```
* If you want clean the ng2-components folder node_modules before to build * If you want clean the ng2-components folder node_modules before to build
```sh ```sh
./npm-buid-alll.sh -c ./npm-buid-all.sh -c
```*
If you want build to build all the components against a commit-ish version of the JS-API
```sh
./npm-buid-all.sh -gitjsapi commit-ish
./npm-build-all.sh -gitjsapi development
./npm-build-all.sh -gitjsapi de92be966e2ce7eca642ca9e9d7647ba4f849356
``` ```
* If you want clean all your local component and the demo shell: * If you want clean all your local component and the demo shell:

View File

@@ -3,6 +3,8 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
eval RUN_TEST=false eval RUN_TEST=false
eval EXEC_CLEAN=false eval EXEC_CLEAN=false
eval EXEC_GIT_NPM_INSTALL_JSAPI=false
eval GIT_ISH=""
eval projects=( "ng2-alfresco-core" eval projects=( "ng2-alfresco-core"
"ng2-alfresco-datatable" "ng2-alfresco-datatable"
@@ -21,11 +23,13 @@ eval projects=( "ng2-alfresco-core"
"ng2-alfresco-viewer" "ng2-alfresco-viewer"
"ng2-alfresco-webscript" "ng2-alfresco-webscript"
"ng2-alfresco-userinfo" ) "ng2-alfresco-userinfo" )
show_help() { show_help() {
echo "Usage: npm-build-all.sh" echo "Usage: npm-build-all.sh"
echo "" echo ""
echo "-t or -test build all your local component and run also the test on them" echo "-t or -test build all your local component and run also the test on them"
echo "-c or -clean the ndode_moduels folder before to start the build" echo "-c or -clean the node_modules folder before to start the build"
echo "-gitjsapi to build all the components against a commit-ish version of the JS-API"
} }
enable_test(){ enable_test(){
@@ -37,6 +41,11 @@ test_project() {
npm run test -- --component $1 || exit 1 npm run test -- --component $1 || exit 1
} }
enable_js_api_git_link() {
GIT_ISH='git://github.com/Alfresco/alfresco-js-api.git#'$1
EXEC_GIT_NPM_INSTALL_JSAPI=true
}
clean() { clean() {
EXEC_CLEAN=true EXEC_CLEAN=true
} }
@@ -45,6 +54,8 @@ while [[ $1 == -* ]]; do
case "$1" in case "$1" in
-h|--help|-\?) show_help; exit 0;; -h|--help|-\?) show_help; exit 0;;
-t|--test) enable_test; shift;; -t|--test) enable_test; shift;;
-gitjsapi) enable_js_api_git_link $2; shift 2;;
-v|--version) install_version_pacakge $2; shift 2;;
-c|--clean) clean; shift;; -c|--clean) clean; shift;;
-*) echo "invalid option: $1" 1>&2; show_help; exit 1;; -*) echo "invalid option: $1" 1>&2; show_help; exit 1;;
esac esac
@@ -65,6 +76,14 @@ npm run pkg-build
echo "====== Install ng2-components dependencies =====" echo "====== Install ng2-components dependencies ====="
npm install npm install
if $EXEC_GIT_NPM_INSTALL_JSAPI == true; then
echo "====== Use the alfresco JS-API '$GIT_ISH'====="
npm install $GIT_ISH
cd "$DIR/../ng2-components/node_modules/alfresco-js-api"
npm install
cd "$DIR/../ng2-components/"
fi
echo "====== Build ng2-components =====" echo "====== Build ng2-components ====="
npm run build || exit 1 npm run build || exit 1

View File

@@ -3,7 +3,9 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
eval FORCE_PUBLISH=false eval FORCE_PUBLISH=false
eval NPM_REGISTRY="" eval EXEC_CHANGE_REGISTRY=false
eval NPM_REGISTRY=false
eval TOKEN_REGISTRY=""
eval OPTIONS="" eval OPTIONS=""
cd "$DIR/../demo-shell-ng2" cd "$DIR/../demo-shell-ng2"
@@ -13,6 +15,7 @@ show_help() {
echo "" echo ""
echo "-f or -force publish the package with force" echo "-f or -force publish the package with force"
echo "-r or -registry to publish in an alternative npm registry -registry 'http://npm.local.me:8080/' " echo "-r or -registry to publish in an alternative npm registry -registry 'http://npm.local.me:8080/' "
echo "-token auth token for publish in the npm registry"
echo "-t or -tag to add a tag when publish a package" echo "-t or -tag to add a tag when publish a package"
} }
@@ -20,6 +23,21 @@ enable_force(){
OPTIONS="$OPTIONS -force" OPTIONS="$OPTIONS -force"
} }
enable_change_registry(){
NPM_REGISTRY=$1
EXEC_CHANGE_REGISTRY=true
}
get_token_registry(){
TOKEN_REGISTRY=$1
if [[ "${TOKEN_REGISTRY}" == "" ]]
then
echo "token missing -token"
exit 0
fi
}
add_tag(){ add_tag(){
eval TAG=$1 eval TAG=$1
@@ -34,8 +52,6 @@ add_tag(){
} }
change_registry(){ change_registry(){
NPM_REGISTRY=$1
if [[ "${NPM_REGISTRY}" == "" ]] if [[ "${NPM_REGISTRY}" == "" ]]
then then
echo "NPM registry required WITH OPTION -r | -registry" echo "NPM registry required WITH OPTION -r | -registry"
@@ -43,7 +59,10 @@ change_registry(){
fi fi
echo "====== CHANGE REGISTRY: ${NPM_REGISTRY} =====" echo "====== CHANGE REGISTRY: ${NPM_REGISTRY} ====="
npm config set registry ${NPM_REGISTRY} touch .npmrc
echo 'strict-ssl=false' >> .npmrc
echo 'registry=http://'${NPM_REGISTRY} >> .npmrc
echo '//'${NPM_REGISTRY}'/:_authToken="'${TOKEN_REGISTRY}'"' >> .npmrc
} }
while [[ $1 == -* ]]; do while [[ $1 == -* ]]; do
@@ -51,7 +70,7 @@ while [[ $1 == -* ]]; do
-h|--help|-\?) show_help; exit 0;; -h|--help|-\?) show_help; exit 0;;
-t|--tag) add_tag $2; shift 2;; -t|--tag) add_tag $2; shift 2;;
-f|--force) enable_force; shift;; -f|--force) enable_force; shift;;
-r|--registry) change_registry $2; shift 2;; -r|--registry) get_token_registry $2; shift 2;;
-*) echo "invalid option: $1" 1>&2; show_help; exit 0;; -*) echo "invalid option: $1" 1>&2; show_help; exit 0;;
esac esac
done done
@@ -75,10 +94,23 @@ for PACKAGE in \
ng2-alfresco-userinfo ng2-alfresco-userinfo
do do
DESTDIR="$DIR/../ng2-components/${PACKAGE}" DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== PUBLISHING: ${DESTDIR} ===== npm publish ${OPTIONS}" echo "====== MOVE DIR: ${DESTDIR} ===== "
cd ${DESTDIR} cd ${DESTDIR}
echo "====== INSTALL AND CLEAN ===== "
npm install rimraf
npm run clean npm run clean
npm install npm install
if $EXEC_CHANGE_REGISTRY == true; then
change_registry
fi
echo "====== PUBLISHING: ${DESTDIR} ===== npm publish ${OPTIONS}"
npm publish ${OPTIONS} npm publish ${OPTIONS}
if $EXEC_CHANGE_REGISTRY == true; then
npm run rimraf .npmrc
fi
cd ${DIR} cd ${DIR}
done done

View File

@@ -6,15 +6,44 @@ eval EXEC_INSTALL=false
eval EXEC_UPDATE=false eval EXEC_UPDATE=false
eval EXEC_CLEAN=false eval EXEC_CLEAN=false
eval EXEC_DEVELOP=false eval EXEC_DEVELOP=false
eval EXEC_VERSION=false
eval ENABLE_DIST=false
eval EXEC_GIT_NPM_INSTALL_JSAPI=false
eval EXEC_VERSION_JSAPI=false
eval JSAPI_VERSION=""
eval NG2_COMPONENTS_VERSION=""
eval GIT_ISH=""
eval projects=( "ng2-alfresco-core"
"ng2-alfresco-datatable"
"ng2-activiti-diagrams"
"ng2-activiti-analytics"
"ng2-activiti-form"
"ng2-activiti-tasklist"
"ng2-activiti-processlist"
"ng2-alfresco-documentlist"
"ng2-alfresco-login"
"ng2-alfresco-search"
"ng2-alfresco-social"
"ng2-alfresco-tag"
"ng2-alfresco-social"
"ng2-alfresco-upload"
"ng2-alfresco-viewer"
"ng2-alfresco-webscript"
"ng2-alfresco-userinfo" )
show_help() { show_help() {
echo "Usage: start.sh" echo "Usage: start.sh"
echo "" echo ""
echo "-d or -develop start the demo shell using the relative ng2-components folder to link the components" echo "-d or -develop start the demo shell using the relative ng2-components folder to link the components"
echo "-dist start the demo shell in dist mode"
echo "-i or -install start the demo shell and install the dependencies" echo "-i or -install start the demo shell and install the dependencies"
echo "-u or -update start the demo shell and update the dependencies" echo "-u or -update start the demo shell and update the dependencies"
echo "-v or -version install different version of ng2_components from npm defined in the package.json this option is not compatible with -d"
echo "-c or -clean clean the demo shell and reinstall the dependencies" echo "-c or -clean clean the demo shell and reinstall the dependencies"
echo "-r or -registry to download the packages from an alternative npm registry example -registry 'http://npm.local.me:8080/' " echo "-r or -registry to download the packages from an alternative npm registry example -registry 'http://npm.local.me:8080/' "
echo "-gitjsapi to build all the components against a commit-ish version of the JS-API"
echo "-vjsapi install different version from npm of JS-API defined in the package.json"
} }
install() { install() {
@@ -29,6 +58,39 @@ develop() {
EXEC_DEVELOP=true EXEC_DEVELOP=true
} }
enable_dist() {
ENABLE_DIST=true
}
enable_js_api_git_link() {
GIT_ISH='git://github.com/Alfresco/alfresco-js-api.git#'$1
EXEC_GIT_NPM_INSTALL_JSAPI=true
}
version_component() {
NG2_COMPONENTS_VERSION=$1
if [[ "${NG2_COMPONENTS_VERSION}" == "" ]]
then
echo "NG2 components version required with -v | -version"
exit 0
fi
EXEC_VERSION=true
}
version_js_api() {
JSAPI_VERSION=$1
if [[ "${JSAPI_VERSION}" == "" ]]
then
echo "JSAPI version required with -vJSApi"
exit 0
fi
EXEC_VERSION_JSAPI=true
}
change_registry(){ change_registry(){
NPM_REGISTRY=$1 NPM_REGISTRY=$1
@@ -55,6 +117,10 @@ while [[ $1 == -* ]]; do
-c|--clean) clean; shift;; -c|--clean) clean; shift;;
-d|--develop) develop; shift;; -d|--develop) develop; shift;;
-r|--registry) change_registry $2; shift 2;; -r|--registry) change_registry $2; shift 2;;
-r|--version) version_component $2; shift 2;;
-dist) enable_dist; shift;;
-gitjsapi) enable_js_api_git_link $2; shift 2;;
-vjsapi) version_js_api $2; shift 2;;
-*) shift;; -*) shift;;
esac esac
done done
@@ -78,21 +144,71 @@ if $EXEC_INSTALL == true; then
npm install npm install
fi fi
if $EXEC_UPDATE == true; then if $EXEC_INSTALL == true; then
echo "====== Update Demo shell =====" echo "====== Install Demo shell ====="
cd "$DIR/../demo-shell-ng2" cd "$DIR/../demo-shell-ng2"
npm update npm install
fi
if $EXEC_VERSION == true; then
echo "====== Install version "${NG2_COMPONENTS_VERSION}" of ng2-components ====="
cd "$DIR/../demo-shell-ng2"
if [[ "${EXEC_DEVELOP}" == "" ]]
then
echo "Option -v is not compatible with -d see the help"
exit 0
fi
for PACKAGE in ${projects[@]}
do
npm install ${PACKAGE}@${NG2_COMPONENTS_VERSION}
done
fi
if $EXEC_GIT_NPM_INSTALL_JSAPI == true; then
echo "====== Use the alfresco JS-API '$GIT_ISH'====="
npm install $GIT_ISH
cd "$DIR/../ng2-components/node_modules/alfresco-js-api"
npm install
cd "$DIR/../ng2-components/"
fi
if $EXEC_GIT_NPM_INSTALL_JSAPI == true; then
echo "====== Use the alfresco JS-API '$GIT_ISH'====="
npm install $GIT_ISH
cd "$DIR/../ng2-components/node_modules/alfresco-js-api"
npm install
fi
if $EXEC_VERSION_JSAPI == true; then
echo "====== Use the alfresco JS-API '$JSAPI_VERSION'====="
cd "$DIR/../demo-shell-ng2"
npm install alfresco-js-api@${JSAPI_VERSION}
fi fi
if $EXEC_DEVELOP == true; then if $EXEC_DEVELOP == true; then
echo "====== Start Demo shell development mode====="
cd "$DIR/../demo-shell-ng2" cd "$DIR/../demo-shell-ng2"
if $ENABLE_DIST == true; then
echo "====== Build and start dist Demo shell ====="
npm run build:dev
npm run start:dist
else
echo "====== Start Demo shell ====="
npm run start:dev npm run start:dev
fi fi
else
if $EXEC_DEVELOP == false; then
echo "====== Start Demo shell ====="
cd "$DIR/../demo-shell-ng2" cd "$DIR/../demo-shell-ng2"
if $ENABLE_DIST == true; then
echo "====== Build and start dist Demo shell ====="
npm run build
npm run start:dist
else
echo "====== Start Demo shell dev mode====="
npm run start npm run start
fi fi
fi