brakmic / Angular2-Playground

:ng: 2 environment with Gulp, TypeScript, TSLint & Hapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular2 Playground

Angular2-rc1 environment based on:

Articles on Angular 2

Part 1

Part 2

Screenshot

demo

Installation
npm install
Running (with Hapi web-server)
npm start

server

Building (with linting, bundling & deployment)
gulp

gulp

Instead of the usual myriad of scripts the index.html in this demo only contains two script-tags.

index.html

This is because we use SystemBuilder in Gulpfile.js to bundle all of the @angular2 scripts & other libs (shims, polyfills, systemjs itself etc.).

Minification
gulp minify

This will produce app.js & app.css which should be used instead of the references from the above screenshot.

Watch with dynamic compilation and deployment
gulp watch
LICENSE

MIT

About

:ng: 2 environment with Gulp, TypeScript, TSLint & Hapi

License:MIT License


Languages

Language:JavaScript 66.6%Language:HTML 21.0%Language:TypeScript 8.1%Language:CSS 4.3%