Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
add COMPONENT_PATH support. Closes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 22, 2012
1 parent 2440593 commit 8a26a3a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/component-build
Expand Up @@ -36,6 +36,10 @@ program.on('--help', function(){
console.log(' # build standalone as window.$');
console.log(' $ component build --standalone $');
console.log();
console.log(' # add lookup paths');
console.log(' $ COMPONENT_PATH=lib');
console.log(' $ component build');
console.log();
});

// parse argv
Expand Down Expand Up @@ -64,6 +68,14 @@ var css = fs.createWriteStream(path.join(program.out, program.name + '.css'));
var builder = new Builder(process.cwd());
var start = new Date;

// COMPONENT_PATH

var paths = process.env.COMPONENT_PATH
? process.env.COMPONENT_PATH.split(':')
: null;

if (paths) builder.addLookup(paths);

// --dev

if (program.dev) builder.development();
Expand Down

0 comments on commit 8a26a3a

Please sign in to comment.