babel-plugin-app-decorators-component-register
Babel Plugin for auto generating code
Installation
$ npm install babel-plugin-app-decorators-component-register --save
Usage
.babelrc
(Recommended)
Via .babelrc
.babelrc options
"plugins": "app-decorators-component-register" "imports": "IMPORT_NAME": "Register" "SOURCE": "app-decorators-helper/register-customelement" "IMPORT_NAME": "storage" "SOURCE": "app-decorators-helper/random-storage"
Via CLI
$ babel --plugins app-decorators-component-register script.js
Via Node API
;
The goal of this babel-plugin is for app-decorators @component:
Example 1
code:
@
transformed:
;; @ _registerRegister;
Tests
git clone https://github.com/SerkanSipahi/app-decorators.gitcd app-decorators/packages/babel-plugin-app-decorators-component-registermake installmake test