ocombe / babel-angular2-app

A skeleton Angular 2 app built with babel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Angular 2 app with babel

A skeleton Angular 2 app built with babel.

  • Bundles JavaScript files into one file. No lazy loading.
  • Uses babel instead of Traceur.
  • Supports @ annotation and type annotation with babel transformer plugins.
  • (Very limited rtts_assert supoort)

Try

Build

npm install
make

Preview

npm install -g http-server
http-server public

Motivation

angular/quickstart provides us to try Angular 2 app with on-the-fly transpilation and lazy-loading, which result in long waiting time for each file change. Also, I'm not familiar with the Traceur tool stack and its output. angular2 npm package says The files under /es6 are es6 compatible files that can be transpiled to es5 using any transpiler. So I gave it a shot.

Babel transformer plugins

To support AtScript syntax of Angular 2, this skeleton app uses the following external babel transformer plugins that I made:

TODO

  • Support source map.

About

A skeleton Angular 2 app built with babel.


Languages

Language:JavaScript 79.5%Language:Makefile 10.3%Language:HTML 10.2%