mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
relative pointing (#1879)
readme modify start.sh and nom-build-all refactoring change travis conf update version of zone.js (fixes console error) karma conf remove dist add alias build override tsconfig components build
This commit is contained in:
committed by
Eugenio Romano
parent
d5f90a59f4
commit
075ee8a538
@@ -1,5 +1,12 @@
|
||||
## Running a demo project
|
||||
|
||||
|
||||
- [Quick examples](#quick-examples)
|
||||
- [start.sh Demo shell script](#start.sh)
|
||||
- [Ng2 components framework alfresco build](#npm-build-all.sh)
|
||||
- [Clean components and Demo](#npm-clean.sh)
|
||||
|
||||
|
||||
The Alfresco application development framework comes with a demo project that you can run to get a
|
||||
feel for what's available.
|
||||
|
||||
@@ -10,22 +17,63 @@ feel for what's available.
|
||||
cd scripts
|
||||
```
|
||||
|
||||
* Start the demo and Install all the dependencies (*Note. do it this way only the first time, and be aware, it will take some time*)
|
||||
# Quick examples if you want develop the ADF framework
|
||||
|
||||
* Start the demo shell using the JS-API from the development branch and the local component in the ng2-components folder
|
||||
|
||||
```sh
|
||||
./start.sh -install or -i
|
||||
./start.sh -dev -t -gitjsapi development
|
||||
```
|
||||
|
||||
* Start the demo (*the standard way of starting the demo after first initialization*):
|
||||
* Build the ng2-components folder using the JS-API from the development branch
|
||||
|
||||
```sh
|
||||
./start.sh
|
||||
./npm-build-all.sh -gitjsapi development
|
||||
```
|
||||
|
||||
* Build the ng2-components folder using the JS-API from the development branch and run the test on it
|
||||
|
||||
```sh
|
||||
./npm-build-all.sh -t -gitjsapi development
|
||||
```
|
||||
|
||||
# start.sh
|
||||
|
||||
***start.sh*** script provide a easy way to deal with the npm command and the correct sequence to run the task on demo-shell during develop phases.
|
||||
|
||||
## Options
|
||||
|
||||
The default behaviour of the ***start.sh*** script always run the install and the start of the demo shell on the port 3000, anyway with some of the options below this behaviour can be changed
|
||||
All the commands before can be used in combination
|
||||
|
||||
| Option | Description |
|
||||
| --- | --- |
|
||||
| -h or --help | show the help |
|
||||
| -u or --update | run the update of the node_modules packages on the demo shell |
|
||||
| -c or --clean | clean the demo shell folder before to start it |
|
||||
| -t or --test | run the test on the demo-shell |
|
||||
| -r or --registry | Start the demo using an alternative npm registry |
|
||||
| -v or --version | Instead to use the version defined in the pacakge.json . Download from npm and Install a different version of the ng2-components (this option is not compatible with -dev) |
|
||||
| -si or --skipinstall | skip the install of the node_modules |
|
||||
| -ss or --skipstart | skip the start of the demo shell and oly build it providing a dist folder in the relative demo-shell-ng2 folder |
|
||||
| -dev or --develop | Start the demo in development mode building the relative folder ng2-components with all the components and pointing to those components instead to the ng2-components present in the node_modules folder |
|
||||
| -dist | Start the demo shell using a light server and the files builded in the dist folder, particular useful to test the final result of the project |
|
||||
| -gitjsapi | if you want start the demo shell using an alfresco-js-api referenced by commit-ish version of the JS-API |
|
||||
| -vjsapi | Instead to use the version defined in the pacakge.json . Download from npm and Install a different version of JS-API |
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
* Start the demo and Install all the dependencies
|
||||
|
||||
```sh
|
||||
./start.sh
|
||||
```
|
||||
|
||||
* Start the demo, install all the dependencies, and remove the previous version of the npm packages (*Note. do this only after big changes*):
|
||||
|
||||
```sh
|
||||
./start.sh -c -i
|
||||
./start.sh -c
|
||||
```
|
||||
|
||||
* Start the demo using an alternative npm registry
|
||||
@@ -40,7 +88,7 @@ feel for what's available.
|
||||
./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
|
||||
* Instead to use the version defined in the pacakge.json . Download from npm and Install a different version of the ng2-components (this option is not compatible with -dev) |
|
||||
|
||||
```sh
|
||||
./start.sh -version or -v COMPONENTS_VERSION
|
||||
@@ -51,10 +99,10 @@ feel for what's available.
|
||||
* 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
|
||||
./start.sh -develop or -d
|
||||
./start.sh -develop or -dev
|
||||
```
|
||||
|
||||
* Start the demo start the demo shell in dist mode
|
||||
* Start the demo shell using a light server using the files builded in the dist folder
|
||||
|
||||
```sh
|
||||
./start.sh -dist
|
||||
@@ -77,28 +125,54 @@ feel for what's available.
|
||||
|
||||
```
|
||||
|
||||
* If you want run the Demo shell test
|
||||
|
||||
```sh
|
||||
./start.sh -t
|
||||
|
||||
```
|
||||
|
||||
# npm-build-all.sh
|
||||
|
||||
***npm-build-all.sh*** this script provide a easy way to deal with the npm command and the correct sequence to build the ng2-components
|
||||
|
||||
## Options
|
||||
|
||||
The default behaviour of the ***npm-build-all.sh*** install node_modules and build all the components
|
||||
|
||||
|
||||
| Option | Description |
|
||||
| --- | --- |
|
||||
| -h or --help | show the help |
|
||||
| -t or --test | If you want run the test: |
|
||||
| -c or --clean | clean the ng2_components folders before to start from all the temp builds file as node_modules |
|
||||
| -gitjsapi | if you want start the demo shell using an alfresco-js-api referenced by commit-ish version of the JS-API |
|
||||
| -si or --skipinstall | skip the install of the node_modules |
|
||||
| -sb or --skipbuild | skip the creation of the bundles files and skip the errors and lint check inside the components |
|
||||
|
||||
|
||||
* If you want to build all your local component:
|
||||
|
||||
```sh
|
||||
./npm-buid-all.sh
|
||||
./npm-build-all.sh
|
||||
```
|
||||
|
||||
* If you want to build all your local component and run the test:
|
||||
|
||||
```sh
|
||||
./npm-buid-all.sh -t or -test
|
||||
./npm-build-all.sh -t or -test
|
||||
```
|
||||
|
||||
* If you want clean the ng2-components folder node_modules before to build
|
||||
|
||||
```sh
|
||||
./npm-buid-all.sh -c
|
||||
./npm-build-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 commit-ish
|
||||
|
||||
./npm-build-all.sh -gitjsapi development
|
||||
|
||||
@@ -108,15 +182,13 @@ feel for what's available.
|
||||
* If you want avoid initial build and run only all the test
|
||||
|
||||
```sh
|
||||
./npm-buid-all.sh -s -t
|
||||
./npm-build-all.sh -s -t
|
||||
```
|
||||
|
||||
* If you want test in less time (high memoery consumign less detail)
|
||||
* If you want skip initial install node_modules
|
||||
|
||||
```sh
|
||||
./npm-buid-all.sh -ft //test and build
|
||||
|
||||
./npm-buid-all.sh -s -ft //only test
|
||||
./npm-build-all.sh -si
|
||||
```
|
||||
|
||||
* If you want clean all your local component and the demo shell:
|
||||
@@ -126,3 +198,15 @@ feel for what's available.
|
||||
```
|
||||
|
||||
For development environment configuration please refer to [project docs](../demo-shell-ng2/README.md).
|
||||
|
||||
|
||||
# npm-clean.sh
|
||||
|
||||
***npm-clean.sh*** clean all the projects folder : ng2-components, ng2-components/*.*/demo and demo-shell-ng2.
|
||||
|
||||
## Options
|
||||
|
||||
| Option | Description |
|
||||
| --- | --- |
|
||||
| -h or --help | show the help |
|
||||
| -sd or --skipDemo | skip the demo folder clean |
|
||||
|
@@ -5,6 +5,7 @@ eval RUN_TEST=false
|
||||
eval EXEC_FAST_TEST=false
|
||||
eval EXEC_CLEAN=false
|
||||
eval EXEC_BUILD=true
|
||||
eval EXEC_INSTALL=true
|
||||
eval EXEC_GIT_NPM_INSTALL_JSAPI=false
|
||||
eval GIT_ISH=""
|
||||
|
||||
@@ -29,10 +30,11 @@ eval projects=( "ng2-alfresco-core"
|
||||
show_help() {
|
||||
echo "Usage: npm-build-all.sh"
|
||||
echo ""
|
||||
echo "-e or -exclude exclude initial build"
|
||||
echo "-t or -test build all your local component and run also the test on them"
|
||||
echo "-ft or -fast test build all your local component and run also the test in one single karmatestshim (high memory consuming and less details)"
|
||||
echo "-c or -clean the node_modules folder before to start the build"
|
||||
echo "-si or -skipinstall skip the install node_modules folder before to start the build"
|
||||
echo "-sb or skip build"
|
||||
echo "-ft or -fast test build all your local component and run also the test in one single karma-test-shim (high memory consuming and less details)"
|
||||
echo "-gitjsapi to build all the components against a commit-ish version of the JS-API"
|
||||
}
|
||||
|
||||
@@ -62,15 +64,19 @@ exclude_build(){
|
||||
EXEC_BUILD=false
|
||||
}
|
||||
|
||||
exec_install(){
|
||||
EXEC_INSTALL=false
|
||||
}
|
||||
|
||||
while [[ $1 == -* ]]; do
|
||||
case "$1" in
|
||||
-h|--help|-\?) show_help; exit 0;;
|
||||
-t|--test) enable_test; shift;;
|
||||
-ft|--fasttest) enable_fast_test; shift;;
|
||||
-gitjsapi) enable_js_api_git_link $2; shift 2;;
|
||||
-v|--version) install_version_pacakge $2; shift 2;;
|
||||
-c|--clean) clean; shift;;
|
||||
-s|--skipbuild) exclude_build; shift;;
|
||||
-si|--skipinstall) exec_install; shift;;
|
||||
-sb|--skipbuild) exclude_build; shift;;
|
||||
-*) echo "invalid option: $1" 1>&2; show_help; exit 1;;
|
||||
esac
|
||||
done
|
||||
@@ -87,8 +93,10 @@ echo "====== Regenerate global ng2-components package.json ====="
|
||||
npm install package-json-merge
|
||||
npm run pkg-build
|
||||
|
||||
echo "====== Install ng2-components dependencies ====="
|
||||
npm install
|
||||
if $EXEC_INSTALL == true; then
|
||||
echo "====== Install ng2-components dependencies ====="
|
||||
npm install
|
||||
fi
|
||||
|
||||
if $EXEC_GIT_NPM_INSTALL_JSAPI == true; then
|
||||
echo "====== Use the alfresco JS-API '$GIT_ISH'====="
|
||||
|
@@ -2,6 +2,14 @@
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
eval EXEC_CLEAN_DEMO=true
|
||||
|
||||
show_help() {
|
||||
echo "Usage: npm-clean.sh"
|
||||
echo ""
|
||||
echo "-sd or -skipDemo skip the clean of the demo folder of any components"
|
||||
}
|
||||
|
||||
eval projects=( "ng2-activiti-diagrams"
|
||||
"ng2-activiti-analytics"
|
||||
"ng2-activiti-form"
|
||||
@@ -20,25 +28,42 @@ eval projects=( "ng2-activiti-diagrams"
|
||||
"ng2-alfresco-webscript"
|
||||
"ng2-alfresco-userinfo" )
|
||||
|
||||
npm install rimraf
|
||||
clea_demo() {
|
||||
EXEC_CLEAN_DEMO=false
|
||||
}
|
||||
|
||||
while [[ $1 == -* ]]; do
|
||||
case "$1" in
|
||||
-h|--help|-\?) show_help; exit 0;;
|
||||
-sd|--skipDemo) update; shift;;
|
||||
-*) shift;;
|
||||
esac
|
||||
done
|
||||
|
||||
for PACKAGE in ${projects[@]}
|
||||
do
|
||||
echo "====== clean component: ${PACKAGE} ====="
|
||||
cd "$DIR/../ng2-components/${PACKAGE}"
|
||||
npm run clean
|
||||
|
||||
if [ -d "$DIR/../ng2-components/${PACKAGE}/demo" ]; then
|
||||
echo "====== clean component demo: ${PACKAGE} ====="
|
||||
cd "$DIR/../ng2-components/${PACKAGE}/demo"
|
||||
echo "====== clean component: ${PACKAGE} ====="
|
||||
cd "$DIR/../ng2-components/${PACKAGE}"
|
||||
npm install rimraf
|
||||
npm run clean
|
||||
fi
|
||||
|
||||
if $EXEC_CLEAN_DEMO == true; then
|
||||
if [ -d "$DIR/../ng2-components/${PACKAGE}/demo" ]; then
|
||||
echo "====== clean component demo: ${PACKAGE} ====="
|
||||
cd "$DIR/../ng2-components/${PACKAGE}/demo"
|
||||
npm install rimraf
|
||||
npm run clean
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
npm install rimraf
|
||||
npm run clean
|
||||
|
||||
|
||||
cd "$DIR/../ng2-components"
|
||||
npm install rimraf
|
||||
npm run clean
|
||||
|
||||
cd ${DIR}
|
||||
|
@@ -7,6 +7,8 @@ eval EXEC_CHANGE_REGISTRY=false
|
||||
eval NPM_REGISTRY=false
|
||||
eval TOKEN_REGISTRY=""
|
||||
eval OPTIONS=""
|
||||
eval EXEC_GIT_NPM_INSTALL_JSAPI=false
|
||||
eval GIT_ISH=""
|
||||
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
|
||||
@@ -17,6 +19,7 @@ show_help() {
|
||||
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 "-gitjsapi to build all the components against a commit-ish version of the JS-API"
|
||||
}
|
||||
|
||||
enable_force(){
|
||||
@@ -38,6 +41,11 @@ get_token_registry(){
|
||||
fi
|
||||
}
|
||||
|
||||
enable_js_api_git_link() {
|
||||
GIT_ISH='git://github.com/Alfresco/alfresco-js-api.git#'$1
|
||||
EXEC_GIT_NPM_INSTALL_JSAPI=true
|
||||
}
|
||||
|
||||
add_tag(){
|
||||
eval TAG=$1
|
||||
|
||||
@@ -72,6 +80,7 @@ while [[ $1 == -* ]]; do
|
||||
-f|--force) enable_force; shift;;
|
||||
-token) get_token_registry $2; shift 2;;
|
||||
-r|--registry) enable_change_registry $2; shift 2;;
|
||||
-gitjsapi) enable_js_api_git_link $2; shift 2;;
|
||||
-*) echo "invalid option: $1" 1>&2; show_help; exit 0;;
|
||||
esac
|
||||
done
|
||||
@@ -102,6 +111,14 @@ do
|
||||
npm run clean
|
||||
npm install
|
||||
|
||||
if $EXEC_GIT_NPM_INSTALL_JSAPI == true; then
|
||||
echo "====== Use the alfresco JS-API '$GIT_ISH'====="
|
||||
npm install $GIT_ISH
|
||||
cd "${DESTDIR}/node_modules/alfresco-js-api"
|
||||
npm install
|
||||
cd ${DESTDIR}
|
||||
fi
|
||||
|
||||
if $EXEC_CHANGE_REGISTRY == true; then
|
||||
change_registry
|
||||
fi
|
||||
|
126
scripts/start.sh
126
scripts/start.sh
@@ -2,14 +2,16 @@
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
eval EXEC_INSTALL=false
|
||||
eval EXEC_INSTALL=true
|
||||
eval EXEC_UPDATE=false
|
||||
eval EXEC_CLEAN=false
|
||||
eval EXEC_DEVELOP=false
|
||||
eval EXEC_VERSION=false
|
||||
eval ENABLE_DIST=false
|
||||
eval EXEC_DIST=false
|
||||
eval EXEC_GIT_NPM_INSTALL_JSAPI=false
|
||||
eval EXEC_VERSION_JSAPI=false
|
||||
eval EXEC_START=true
|
||||
eval EXEC_TEST=false
|
||||
eval JSAPI_VERSION=""
|
||||
eval NG2_COMPONENTS_VERSION=""
|
||||
eval GIT_ISH=""
|
||||
@@ -35,19 +37,21 @@ eval projects=( "ng2-alfresco-core"
|
||||
show_help() {
|
||||
echo "Usage: start.sh"
|
||||
echo ""
|
||||
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 "-ss or -skipstart build only the demo shell without start"
|
||||
echo "-si or -skipinstall start the demo shell and skip the install the dependencies"
|
||||
echo "-dev or -develop start the demo shell using the relative ng2-components folder to link the components"
|
||||
echo "-dist create the disbuild the demo shell in dist mode"
|
||||
echo "-t or -test execute test"
|
||||
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 "-r or -registry to download the packages from an alternative npm registry example -registry 'http://npm.local.me:8080/' "
|
||||
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 "-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() {
|
||||
EXEC_INSTALL=true
|
||||
EXEC_INSTALL=false
|
||||
}
|
||||
|
||||
update() {
|
||||
@@ -59,7 +63,15 @@ develop() {
|
||||
}
|
||||
|
||||
enable_dist() {
|
||||
ENABLE_DIST=true
|
||||
EXEC_DIST=true
|
||||
}
|
||||
|
||||
disable_start() {
|
||||
EXEC_START=false
|
||||
}
|
||||
|
||||
enable_test() {
|
||||
EXEC_TEST=false
|
||||
}
|
||||
|
||||
enable_js_api_git_link() {
|
||||
@@ -112,12 +124,14 @@ clean() {
|
||||
while [[ $1 == -* ]]; do
|
||||
case "$1" in
|
||||
-h|--help|-\?) show_help; exit 0;;
|
||||
-i|--install) install; shift;;
|
||||
-u|--update) update; shift;;
|
||||
-c|--clean) clean; shift;;
|
||||
-d|--develop) develop; shift;;
|
||||
-t|--test) enable_test; shift;;
|
||||
-r|--registry) change_registry $2; shift 2;;
|
||||
-r|--version) version_component $2; shift 2;;
|
||||
-v|--version) version_component $2; shift 2;;
|
||||
-si|--skipinstall) install; shift;;
|
||||
-ss|--skipstart) disable_start; shift;;
|
||||
-dev|--develop) develop; shift;;
|
||||
-dist) enable_dist; shift;;
|
||||
-gitjsapi) enable_js_api_git_link $2; shift 2;;
|
||||
-vjsapi) version_js_api $2; shift 2;;
|
||||
@@ -125,34 +139,28 @@ while [[ $1 == -* ]]; do
|
||||
esac
|
||||
done
|
||||
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
|
||||
if $EXEC_CLEAN == true; then
|
||||
echo "====== Clean Demo shell ====="
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
npm install rimraf
|
||||
npm run clean
|
||||
fi
|
||||
|
||||
if $EXEC_INSTALL == true; then
|
||||
echo "====== Install Demo shell ====="
|
||||
npm install
|
||||
fi
|
||||
|
||||
if $EXEC_DEVELOP == true; then
|
||||
echo "====== Build ng2-components folder====="
|
||||
cd "$DIR/../scripts"
|
||||
sh npm-build-all.sh
|
||||
fi
|
||||
|
||||
if $EXEC_INSTALL == true; then
|
||||
echo "====== Install Demo shell ====="
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
npm install
|
||||
fi
|
||||
|
||||
if $EXEC_INSTALL == true; then
|
||||
echo "====== Install Demo shell ====="
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
npm install
|
||||
echo "====== Install node_modules ng2-components ====="
|
||||
cd "$DIR/../ng2-components"
|
||||
npm install
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
fi
|
||||
|
||||
if $EXEC_VERSION == true; then
|
||||
echo "====== Install version "${NG2_COMPONENTS_VERSION}" of ng2-components ====="
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
echo "====== Install version "${NG2_COMPONENTS_VERSION}" of ng2-components ====="
|
||||
|
||||
if [[ "${EXEC_DEVELOP}" == "" ]]
|
||||
then
|
||||
@@ -169,46 +177,52 @@ 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"
|
||||
cd "$DIR/../demo-shell-ng2/node_modules/alfresco-js-api"
|
||||
npm install
|
||||
if $EXEC_DEVELOP == true; then
|
||||
cd "$DIR/../ng2-components/"
|
||||
npm install $GIT_ISH
|
||||
cd "$DIR/../ng2-components/node_modules/alfresco-js-api"
|
||||
npm install
|
||||
fi
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
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}
|
||||
if $EXEC_DEVELOP == true; then
|
||||
echo "====== Install node_modules ng2-components ====="
|
||||
cd "$DIR/../ng2-components/"
|
||||
npm install alfresco-js-api@${JSAPI_VERSION}
|
||||
fi
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
fi
|
||||
|
||||
if $EXEC_DEVELOP == true; then
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
if $ENABLE_DIST == true; then
|
||||
echo "====== Build and start dist Demo shell ====="
|
||||
npm run build:dev
|
||||
if $EXEC_TEST == true; then
|
||||
echo "====== Demo shell Test====="
|
||||
npm run test
|
||||
fi
|
||||
|
||||
if $EXEC_START == true; then
|
||||
if $EXEC_DEVELOP == true; then
|
||||
echo "====== Start Demo shell dev mode ====="
|
||||
npm run start:dev
|
||||
elif $EXEC_DIST == true; then
|
||||
echo "====== Start Demo shell dist mode ====="
|
||||
npm run start:dist
|
||||
else
|
||||
echo "====== Start Demo shell ====="
|
||||
npm run start:dev
|
||||
npm run start
|
||||
fi
|
||||
else
|
||||
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
|
||||
fi
|
||||
|
||||
if $EXEC_DEVELOP == true; then
|
||||
echo "====== Build Demo shell dev mode ====="
|
||||
npm run build:dev
|
||||
else
|
||||
echo "====== Build Demo shell ====="
|
||||
npm run build
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user