node package manager


Component builder plugin that transforms AMD to CommonJS.


Component builder plugin that transpiles AMD modules into CommonJS modules which can be included in component builds.

With this plugin in use, CommonJS and AMD modules can be freely intermixed within the component toolchain.

$ npm install component-amd

Build the component, including AMD modules, by invoking component build with component-amd in use.

component build -u component-amd
var fs      = require('fs')
  , Builder = require('component-builder')
  , amd     = require('component-amd');
var builder = new Builder(__dirname);
builder.use(amd);, obj) {
  if (err) throw err;
  fs.writeFileSync('build/build.js', obj.require + obj.js);
  if (obj.css) fs.writeFileSync('build/build.css', obj.css);
$ npm install
$ make test

The MIT License

Copyright (c) 2013 Jared Hanson <>