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-js-api.git
git clone https://github.com/Alfresco/dev-platform-webcomponents.git git clone https://github.com/Alfresco/dev-platform-webcomponents.git
cd dev-platform-webcomponents 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 ./start.sh
``` ```

View File

@@ -1,13 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd demo-shell-ng2 cd demo-shell-ng2
npm install #!/bin/sh
npm install ../ng2-components/ng2-alfresco-core if [[ $1 = "-install" ]]; then
npm install ../ng2-components/ng2-alfresco-datatable npm run start
npm install ../ng2-components/ng2-alfresco-documentlist else
npm install ../ng2-components/ng2-alfresco-login npm run start.dev
npm install ../ng2-components/ng2-alfresco-upload fi
npm install ../../dev-platform-js-api
#npm run build.dev
npm start