npm.io
1.0.1 • Published 10 years ago

babel-plugin-metal-register-components

Licence
MIT
Version
1.0.1
Deps
1
Vulns
0
Weekly
0
Stars
1

babel-plugin-metal-register-components

A babel plugin for Metal.js that automatically registers components.

Usage

This is a babel plugin automatically registers Component classes. Helps avoid the boilerplate of doing it manually for each component. To use it, just add it to your package.json and pass it as a plugin when calling babel:

{
  "plugins": ["metal-register-components"]
}

Note that gulp-metal already includes this plugin by default on build tasks. So there's no need to add it manually if you're using it.

Keywords