diff --git a/scripts/README.md b/scripts/README.md index 191d33878c..a3a4f48b7b 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -34,4 +34,11 @@ feel for what's available. ./start.sh -update ``` +* If you want to use your local components use the following script with any of the previous option. It will npm link all the components +in the demo shell: + +```sh +./start-linked.sh +``` + For development environment configuration please refer to [project docs](demo-shell-ng2/README.md). \ No newline at end of file diff --git a/scripts/start-linked.sh b/scripts/start-linked.sh new file mode 100755 index 0000000000..1c0529c063 --- /dev/null +++ b/scripts/start-linked.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +"$DIR/npm-link-demo-shell.sh" + +cd "$DIR/../demo-shell-ng2" + +if [[ $1 = "-install" ]]; then + npm install + npm run start +elif [[ $1 = "-update " ]]; then + npm run update + npm run start +elif [[ $1 = "-cleanInstall" ]]; then + npm run clean + npm install + npm run start +else + npm run start +fi diff --git a/scripts/start.sh b/scripts/start.sh index 8984114d26..33f93b05d8 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -2,22 +2,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -for PACKAGE in \ - ng2-alfresco-core \ - ng2-alfresco-datatable \ - ng2-alfresco-documentlist \ - ng2-alfresco-login \ - ng2-alfresco-search \ - ng2-alfresco-upload \ - ng2-alfresco-viewer -do - cd "$DIR/../ng2-components/${PACKAGE}"; npm version patch -done - -"$DIR/update-version.sh" ^0.1.0 - -"$DIR/npm-link-demo-shell.sh" - cd "$DIR/../demo-shell-ng2" if [[ $1 = "-install" ]]; then