gwm-components

0.0.1 • Public • Published

gulp-web-modules plugin which will assign individual components from a components directory

Usage

If you include a components directory within any section, all files within that directly will be included as global entries to "Components" with a key matching the file name.

    {project root}
    |-- {section name}
        |-- components
            |-- foo.js
// foo.js
{abc: "def"}
// component access
var component = Components.foo;
console.log(component.def);

This is a silly example and is intended for use with creating individual react.js components

Install

Add this plugin to the gulp-web-module reference in your gulpfile

    var gulpWebModules = require('gulp-web-modules'),
        gwmComponents = require('gwm-components');
 
    gulpWebModules({
      plugins: [
        gwmComponents(options)
      ]
    }).injectTasks(gulp);

Package Sidebar

Install

npm i gwm-components

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • jhudson