babel-plugin-metal-register-components

v1.0.1
A babel plugin for Metal.js that automatically registers components.
babel babel-plugin metal

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.

npm i babel-plugin-metal-register-components

Metadata

  • MIT
  • >=0.12.0
  • Maira Bello
  • released 11/25/2015

Downloads

Maintainers