Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manekinekko/angular-aot-demo
A demo app using Angular 2 final + Webpack 2 + TypeScript 2 🎉✨🎊
https://github.com/manekinekko/angular-aot-demo
Last synced: 5 days ago
JSON representation
A demo app using Angular 2 final + Webpack 2 + TypeScript 2 🎉✨🎊
- Host: GitHub
- URL: https://github.com/manekinekko/angular-aot-demo
- Owner: manekinekko
- Created: 2016-09-10T23:00:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T16:47:23.000Z (almost 7 years ago)
- Last Synced: 2024-11-01T11:42:28.262Z (12 days ago)
- Language: JavaScript
- Homepage: http://slides.com/wassimchegham/demystifying-ahead-of-time-compilation-in-angular-2-aot-jit
- Size: 38.1 KB
- Stars: 75
- Watchers: 6
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[![CircleCI](https://circleci.com/gh/manekinekko/angular2-aot-demo/tree/master.svg?style=svg)](https://circleci.com/gh/manekinekko/angular2-aot-demo/tree/master)
# Angular 2 AOT (Ahead Of Time) offline compilation example with Webpack and TypeScript
This repository shows how to use the Angular 2 final command line offline compiler (ngc) with Webpack and TypeScript.
## Presentation
[Demystifying Ahead-Of-Time Compilation In Angular 2](http://slides.com/wassimchegham/demystifying-ahead-of-time-compilation-in-angular-2-aot-jit).
# How to
## Build a JIT bundle
```
$ npm run build-jit
```## Build an AOT bundle
```
$ npm run build-aot
```## Build both
```
$ npm run demo
```See [package.json#L5-L13](https://github.com/manekinekko/angular2-aot-demo/blob/master/package.json#L5-L13) for more details.