Permalink
Browse files

Added --list for listing builds

  • Loading branch information...
1 parent fc2b44c commit a67f3c0cc730291f7a28616bebce4c62f86240e0 @davglass committed Sep 4, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/index.js
View
@@ -49,7 +49,13 @@ exports.init = function () {
if (pack.valid(json)) {
log.info('putting the hammer down, let\'s build this thing!');
pack.munge(json, function () {
- builder.start(json, options);
+ if (options.list) {
+ var mods = Object.keys(json.builds).sort();
+ log.info('This module includes:');
+ console.log(mods.join(', '));
+ } else {
+ builder.start(json, options);
+ }
});
} else {
log.error('hitting the brakes, your ' + buildFileName + ' file is invalid, please fix it!');

0 comments on commit a67f3c0

Please sign in to comment.