decomponentify1
A browserify transform to enable the easy use of componentjs components in browserify client javascript projects.
Shamelessly copied from debowerify
Installation
Installation is via npm:
$ npm install decomponentify1
How to use.
Install some components directly from github:
$ component install components/underscore
Require the component file by it's component identifier (ie. in this case "underscore"):
// public/scripts/app.jsvar _ = ; // the remote component directly from githubvar $ = ; // from bower via debowerifyvar domready = ; // a regular browserify npm component;
Build out your browserify bundle using the decomponentif transform:
$ browserify -t decomponentify1 public/scripts/app.js -o public/scripts/build/bundle.js
Then include your bundle.js in your HTML file and you're done!