new start sh with install option

This commit is contained in:
Eugenio Romano
2016-05-18 15:26:34 +01:00
parent 680ca13a3d
commit 61b389f0b4
2 changed files with 17 additions and 10 deletions

View File

@@ -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
```

View File

@@ -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