Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renaming CLI option from --require to --use

  • Loading branch information...
commit 85b7d349e6652d47d4d377f0395b40b4ddd6fc06 1 parent 3233f4e
@nickjackson nickjackson authored
Showing with 5 additions and 5 deletions.
  1. +4 −4 bin/component-build
  2. +1 −1  test/build.js
View
8 bin/component-build
@@ -24,7 +24,7 @@ program
.option('-v, --verbose', 'output verbose build information')
.option('-p, --prefix <str>', 'prefix css asset urls with <str>')
.option('-c, --copy', 'copy files instead of linking')
- .option('-r, --require <name>', 'require the given builder middleware')
+ .option('-u, --use <name>', 'use the given script(s) or module(s) as builder middleware')
// examples
@@ -80,9 +80,9 @@ if (program.prefix) builder.prefixUrls(program.prefix);
if (conf.paths) builder.addLookup(conf.paths);
// require middleware plugins
-if (program.require) {
- var required = program.require.split(',');
- required.forEach(function(mod){
+if (program.use) {
+ var modules = program.use.split(',');
+ modules.forEach(function(mod){
// check for absolute path or local module
var abs = exists(mod) || exists(mod + '.js');
mod = abs ?
View
2  test/build.js
@@ -30,7 +30,7 @@ describe('component build', function(){
})
it('should require middleware', function(done){
- exec('cd test/fixtures/path && ' + bin + '-build -v -r ../plugin', function(err, stdout){
+ exec('cd test/fixtures/path && ' + bin + '-build -v -u ../plugin', function(err, stdout){
if (err) return done(err);
stdout.should.include('middleware fired!');
stdout.should.include('builder config fired!');
Please sign in to comment.
Something went wrong with that request. Please try again.