2016-04-22 19:39:11 +01:00
2016-04-19 16:27:21 +01:00
2016-04-08 14:51:32 +01:00
2016-04-19 14:42:45 +01:00
2016-04-21 12:18:34 +01:00
2016-04-22 19:39:11 +01:00
2016-04-22 19:36:53 +01:00

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
cd dev-platform-webcomponents
./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
Description
Languages
TypeScript 90.5%
HTML 4.4%
SCSS 2.4%
JavaScript 1.6%
C 0.8%
Other 0.2%