From 40946d5fc06ead971e55b3d45bbcf1089772612a Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Thu, 19 May 2016 14:20:12 +0100 Subject: [PATCH] fix start script and add update command --- README.md | 8 +++++++- start.sh | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 33a0ee0ded..0d87f7346e 100644 --- a/README.md +++ b/README.md @@ -49,12 +49,18 @@ git clone https://github.com/Alfresco/dev-platform-webcomponents.git cd dev-platform-webcomponents ``` -* Start the demo and Install all the dependencies (do it the first time or after a project update) +* Start the demo and Install all the dependencies (do it the first time) ```sh ./start.sh -install ``` +* Start the demo and update the dependencies + +```sh +./start.sh -update +``` + * Start the demo ```sh diff --git a/start.sh b/start.sh index 93f3ef7a89..892f4a0984 100755 --- a/start.sh +++ b/start.sh @@ -3,7 +3,11 @@ cd demo-shell-ng2 #!/bin/sh if [[ $1 = "-install" ]]; then + npm install + npm run start +elif [[ $1 = "-update " ]]; then + npm run update npm run start else - npm run start.dev + npm run start fi \ No newline at end of file