Mario Romano 6da0eaba37 Fix build problem (#1861)
* fix sourcemap
fix relative path and pre publish build
change travis wait
all test run build and remove unused cpx

* global test task
modify publish script to accept options

* appveyor run

* different approach single test run

* make it work the analytics test
modify start demo shell script to use a different registry

* sourcemap demo shell working

* update readme and add install after any clean
add registry option in start.sh script
add develop and normal mode in demo shell
add -d option in start.sh to point to the local components
add -c option in build script to point to the local components
2017-05-25 15:12:49 +01:00

74 lines
1.6 KiB
Markdown

## 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, and then the script folder:
```ssh
cd alfresco-ng2-components
cd scripts
```
* 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 or -i
```
* 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 -c -i
```
* Start the demo using an alternative npm registry
```sh
./start.sh -registry 'http://npm.local.me:8080/'
```
* Start the demo and update the dependencies:
```sh
./start.sh -update or -u
```
* Start the demo in development mode building the relative folder ng2-components with all the components and pointing to this component instead to the node_modules one
```sh
./start.sh -develop -d
```
* If you want to build all your local component:
```sh
./npm-buid-all.sh
```
* If you want to build all your local component and run the test:
```sh
./npm-buid-alll.sh -t or -test
```
* If you want clean the ng2-components folder node_modules before to build
```sh
./npm-buid-alll.sh -c
```
* If you want clean all your local component and the demo shell:
```sh
./npm-clean.sh
```
For development environment configuration please refer to [project docs](../demo-shell-ng2/README.md).