Alfresco Angular 2 Components

alfresco angular2

style

## Prerequisites Docker machine with latest `platform-distribution:api-latest` image. ``` docker login dockerreg.alfresco.com docker pull dockerreg.alfresco.com/platform-distribution:api-latest docker-compose up ``` to clean up afterwards ``` docker-compose rm ``` ### Configuring development environment *All scripts assume you are at the project root folder* **Install symlinks for Alfresco components** *ng2-alfresco-core:* ```sh cd ng2-components/ng2-alfresco-core npm link cd ../../demo-shell-ng npm link ng2-alfresco-core ``` *ng2-alfresco-documentlist component:* ```sh cd ng2-components/ng2-alfresco-documentlist npm link cd ../../demo-shell-ng npm link ng2-alfresco-documentlist ``` *ng2-alfresco-login component:* ```sh cd ng2-components/ng2-alfresco-login npm link cd ../../demo-shell-ng npm link ng2-alfresco-login ``` *dev-platform-js-api client:* ```sh npm link ../../dev-platform-js-api ``` Please refer to [this article](https://docs.npmjs.com/cli/link) for more details on npm link. ### Building and running **Install dependencies:** ```sh cd dev-platform-webcomponents/demo-shell-ng2/ npm install ``` **(Option 1) Fast build and watch for dev purposes:** ```sh npm start ``` **(Option 2) Build and watch with Gulp:** ```sh npm run build.dev ``` *or* ```sh gulp dev ``` ###Multi-language To support a new language you need to create your language file (.json) and add it to `i18n/` folder. ```json { "username" : "Username", "input-required-message": "Required", "input-min-message": "Your username needs to be at least 4 characters.", "login-button": "Login" } ``` Directory structure: ``` . ├── i18n/ │ ├── en.json │ ├── it.json │ └── fr.json ```