mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
move script in a separate folder
This commit is contained in:
36
scripts/README.md
Normal file
36
scripts/README.md
Normal 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
17
scripts/start.sh
Executable 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
|
Reference in New Issue
Block a user