From 61b389f0b435168dbd4750cad05cd5148ab36969 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Wed, 18 May 2016 15:26:34 +0100 Subject: [PATCH] new start sh with install option --- README.md | 11 +++++++++++ start.sh | 16 ++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 54fca2a922..bd972156f0 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,17 @@ git clone https://github.com/Alfresco/dev-platform-js-api.git 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 an a project update) + +```sh +./start.sh -install +``` + +* Start the demo + +```sh ./start.sh ``` diff --git a/start.sh b/start.sh index a53372acb9..93f3ef7a89 100755 --- a/start.sh +++ b/start.sh @@ -1,13 +1,9 @@ #!/usr/bin/env bash cd demo-shell-ng2 -npm install -npm install ../ng2-components/ng2-alfresco-core -npm install ../ng2-components/ng2-alfresco-datatable -npm install ../ng2-components/ng2-alfresco-documentlist -npm install ../ng2-components/ng2-alfresco-login -npm install ../ng2-components/ng2-alfresco-upload -npm install ../../dev-platform-js-api - -#npm run build.dev -npm start +#!/bin/sh +if [[ $1 = "-install" ]]; then + npm run start +else + npm run start.dev +fi \ No newline at end of file