Alfresco Angular 2 Components
Prerequisites
Start development
Install the npm packages described in the package.json
and verify that it works:
$ npm install
$ npm run build.dev
You're ready to write your application.
Remember the npm scripts in package.json
:
Development
-
To runs the compiler and a server at the same time, both in "watch mode"
$ npm start
-
To runs the test
$ npm test
-
To runs the TypeScript compiler once
$ npm run tsc
-
To runs the TypeScript compiler in watch mode; the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them
$ npm run tsc:w
-
To runs the lite-server, a light-weight, static file server, written and maintained by John Papa and Christopher Martin with excellent support for Angular apps that use routing.
$ npm run lite
-
To runs the typings tool
$ npm run typings
-
called by npm automatically after it successfully completes package installation. This script installs the TypeScript definition files this app requires
$ npm run postinstall