buddy-cli
Advanced tools
Comparing version 2.1.0 to 3.0.0
16
index.js
@@ -21,5 +21,7 @@ var find = require('./lib/find') | ||
.version(version) | ||
.usage('[options] <command> [path/to/package.json || path/to/buddy.js || path/to/buddy.json]') | ||
.option('-t, --targets [types]', 'optional comma separated list of target(s) to build [js,css,html]') | ||
.usage('[options] <command> [path-to-config]') | ||
.option('-c, --compress', 'compress output for production deployment') | ||
.option('-g, --grep <pattern>', 'only run build targets matching <pattern>') | ||
.option('-i, --invert', 'inverts grep matches') | ||
.option('-L, --lazy', 'convert js modules for lazy evaluation') | ||
.option('-l, --lint', 'check output for syntax and logic errors') | ||
@@ -29,3 +31,2 @@ .option('-r, --reload', 'reload all connected live-reload clients on file change during watch [ADD-ON buddy-server]') | ||
.option('-S, --script', 'run script on build completion') | ||
.option('-L, --lazy', 'convert js modules for lazy evaluation') | ||
.option('-v, --verbose', 'print all messages for debugging'); | ||
@@ -78,15 +79,16 @@ | ||
compress: program.compress, | ||
deploy: false, | ||
grep: program.grep, | ||
invert: program.invert, | ||
lazy: program.lazy, | ||
lint: program.lint, | ||
reload: program.reload, | ||
// Backwards compat | ||
script: program.script || program.test, | ||
lazy: program.lazy, | ||
reload: program.reload, | ||
serve: program.serve, | ||
watch: false, | ||
deploy: false, | ||
verbose: program.verbose | ||
}; | ||
if (program.targets) options.targets = program.targets.split(','); | ||
return options; | ||
} |
{ | ||
"name": "buddy-cli", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "The command-line bootstrapper for buddy", | ||
@@ -5,0 +5,0 @@ "author": "popeindustries <alex@pope-industries.com>", |
129
11606