Files
alfresco-ng2-components/README.md
Denys Vuika c4070c6b8a Quick run script
- quick run shell script (for demo setups)
- README updates
2016-04-22 19:36:53 +01:00

1.5 KiB

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.

git clone https://github.com/Alfresco/dev-platform-webcomponents.git
./start.sh
Manual setup
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

git clone https://github.com/Alfresco/dev-platform-webcomponents.git

Install symlinks for Alfresco components

ng2-alfresco-documentlist component:

cd ng2-components/ng2-alfresco-documentlist
npm link
cd ../../demo-shell-ng
npm link ng2-alfresco-documentlist

ng2-alfresco-login component:

cd ng2-components/ng2-alfresco-login
npm link
cd ../../demo-shell-ng
npm link ng2-alfresco-login

Please refer to this article for more details on npm link.

Building and running

Install dependencies:

cd dev-platform-webcomponents/demo-shell-ng2/
npm install

(Option 1) Fast build and watch for dev purposes:

npm start

(Option 2) Build and watch with Gulp:

npm run build.dev

or

gulp dev