TJ’s Component is a great tool to build standalone JS from npm package (to work in browser or any non-node environments).
For example, Autoprefixer uses Component to pack all it files and npm dependencies in one autoprefixer.js and run it in autoprefixer-rails (Autoprefixer integration to Rails/Ruby). It is necessary, because JS runtime in Ruby doesn’t work with file system and doesn’t have require().
To support Component you need only component.json (like bower.json) in project repo (no special publish commands).
A lot of npm libraries contains component.js: underscore, mocha, async, jade.
I make this pull request, because Autoprefixer 1.0 will use source-map and component.json in source-map is required to build autoprefixer-rails standalone file.
I create PR in amdefine with component.json too: jrburke/amdefine#22
Also Rework support Component and without component.json here Rework’s standalone builds can’t support Source Map: https://github.com/visionmedia/css-stringify/issues/30
Seems browserify is better solution for Autoprefixer