move script in a separate folder

This commit is contained in:
Mario Romano
2016-06-28 11:47:07 +01:00
parent 221c0e3d9b
commit a6c01fc77a
3 changed files with 37 additions and 38 deletions

36
scripts/README.md Normal file
View File

@@ -0,0 +1,36 @@
## Running a demo project
The Alfresco application development framework comes with a demo project that you can run to get a
feel for what's available.
* Start by navigating into the app development framework source folder:
```ssh
cd app-dev-framework
```
* Start the demo and Install all the dependencies (*Note. do it this way only the first time, and be aware, it will take some time*)
```sh
./start.sh -install
```
* Start the demo (*the standard way of starting the demo after first initialization*):
```sh
./start.sh
```
* Start the demo, install all the dependencies, and remove the previous version of the npm packages (*Note. do this only after big changes*):
```sh
./start.sh -cleanInstall
```
* Start the demo and update the dependencies:
```sh
./start.sh -update
```
For development environment configuration please refer to [project docs](demo-shell-ng2/README.md).

17
scripts/start.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
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
elif [[ $1 = "-cleanInstall" ]]; then
npm run clean
npm install
npm run start
else
npm run start
fi