walmartlabs / generator-thorax

Thorax yeoman generator
MIT License
87 stars 27 forks source link

silence the generator stdout output during tests #52

Closed eriktrom closed 10 years ago

eriktrom commented 11 years ago

e.g., not get:

     create bower.json
   create package.json
   create Gruntfile.js
   create css/base.css
   create dist/index.html
   create tasks/ensure-installed.js
   create tasks/open-browser.js
   create tasks/styles.js
   create tasks/templates.js
   create tasks/options/clean.js
   create tasks/options/connect.js
   create tasks/options/copy.js
   create tasks/options/cssmin.js
   create tasks/options/handlebars.js
   create tasks/options/requirejs.js
   create tasks/options/thorax.js
   create tasks/options/watch.js
   create js/views/root.js
   create js/templates/root.hbs
   create js/view.js
   create js/collection-view.js
   create js/layout-view.js
   create js/model.js
   create js/collection.js
   create js/main.js
   create public/index.html
   create .jshintrc
   create .editorconfig
   create .bowerrc
   create .gitignore

I'm all done. Just run bower install & npm install to install the required dependencies.
eriktrom commented 11 years ago

Fixing this requires understanding https://github.com/mikeal/logref and doing something like setting process.logger = require('logger'); at the top of the test file. It's one of those weekend, get better at node type of issues.