From c4070c6b8a4377b0d0d143c9c3a601f96d2dce74 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 22 Apr 2016 19:36:53 +0100 Subject: [PATCH] Quick run script - quick run shell script (for demo setups) - README updates --- README.md | 40 +++++++++++++++++++++++++++++++++------- start.sh | 7 +++++++ 2 files changed, 40 insertions(+), 7 deletions(-) create mode 100755 start.sh diff --git a/README.md b/README.md index 3e37d9e5a2..7ebe70ac0a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,31 @@ # ALFRESCO WEB COMPONENTS +### Running demo project + +**Note**: *Steps below show the quickest way to get demo shell up and running. +For development configuration please refer to* **Configuring development environment** +*section further in this document.* + +##### Using setup script (recommended) + +```sh +git clone https://github.com/Alfresco/dev-platform-webcomponents.git +./start.sh +``` + +##### Manual setup + +```sh +git clone https://github.com/Alfresco/dev-platform-webcomponents.git +cd dev-platform-webcomponents/demo-shell-ng2 + +npm install +npm install ../ng2-components/ng2-alfresco-documentlist +npm install ../ng2-components/ng2-alfresco-login + +npm run build.dev +``` + ### Configuring development environment **Get a copy** @@ -40,7 +66,13 @@ cd dev-platform-webcomponents/demo-shell-ng2/ npm install ``` -**Build and watch with Gulp:** +**(Option 1) Fast build and watch for dev purposes:** + +```sh +npm start +``` + +**(Option 2) Build and watch with Gulp:** ```sh npm run build.dev @@ -51,9 +83,3 @@ npm run build.dev ```sh gulp dev ``` - -**Fast build and watch for dev purposes:** - -```sh -npm start -``` diff --git a/start.sh b/start.sh new file mode 100755 index 0000000000..3078965dcf --- /dev/null +++ b/start.sh @@ -0,0 +1,7 @@ +cd demo-shell-ng2 + +npm install +npm install ../ng2-components/ng2-alfresco-documentlist +npm install ../ng2-components/ng2-alfresco-login + +npm run build.dev