babel-plugin-app-decorators-view-precompile
Babel Plugin for auto generating code
Installation
$ npm install babel-plugin-app-decorators-view-precompile --save
Usage
.babelrc
(Recommended)
Via .babelrc
.babelrc options
"plugins": "app-decorators-view-precompile" "engine": "handlebars"
Via CLI
$ babel --plugins app-decorators-view-precompile script.js
Via Node API
;
The goal of this babel-plugin is precompile template with handlebars that is inside of app-decorators @view:
Example
Input:
@
Output:
@
Tests
git clone https://github.com/SerkanSipahi/app-decorators.gitcd app-decorators/packages/babel-plugin-app-decorators-view-precompilemake installmake test