https://github.com/shuhei/babel-preset-angular2
A Babel preset for angular2
https://github.com/shuhei/babel-preset-angular2
Last synced: 2 months ago
JSON representation
A Babel preset for angular2
- Host: GitHub
- URL: https://github.com/shuhei/babel-preset-angular2
- Owner: shuhei
- Created: 2016-05-08T04:23:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-21T02:34:21.000Z (over 9 years ago)
- Last Synced: 2025-01-12T13:46:32.807Z (11 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 14
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- angular-awesome-list - babel-preset-angular
README
# babel-preset-angular2
A Babel preset for angular2.
This preset includes the following plugins:
- babel-plugin-angular2-annotations
- babel-plugin-transform-decorators-legacy
- babel-plugin-transform-class-properties
- babel-plugin-transform-flow-strip-types
## Installation
```sh
npm install -D babel-preset-angular2 babel-preset-es2015
```
## Usage
Add the following line to your `.babelrc` file:
```json
{
"presets": ["es2015", "angular2"]
}
```
See [babel-angular2-app](https://github.com/shuhei/babel-angular2-app) for more complete example.