Added --debug flags #577

Merged
merged 2 commits into from Jun 17, 2014

Projects

None yet

2 participants

@trevorgerhardt
Component member

To address #531

@trevorgerhardt trevorgerhardt changed the title from Added --debug flags #531 to Added --debug flags Jun 16, 2014
@jonathanong jonathanong and 1 other commented on an outdated diff Jun 16, 2014
bin/component-build
@@ -41,6 +42,10 @@ program.on('--help', function(){
program.parse(process.argv);
+// enable debug statements
+
+if (program.debug) require('debug').enable('component-build,component-consoler,component-resolver');
@jonathanong
jonathanong Jun 16, 2014

i'm not sure how it works via JS API, but in the CLI it should be component-build*, etc. since i namespace a lot of things

@trevorgerhardt
trevorgerhardt Jun 17, 2014

To simplify, should it just be component-* for everything?

@jonathanong

looks good! added to the team

@trevorgerhardt
Component member

Thanks!

@trevorgerhardt trevorgerhardt merged commit c607a7a into componentjs:master Jun 17, 2014

1 check passed

Details continuous-integration/travis-ci The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment