mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
1.5 KiB
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.
Using setup script (recommended)
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