不要怂,就是干,撸起袖子干!

Commit 17463114 by Sascha Depold

watchr is now generating the docs as well

1 parent 524b682f
Showing with 6 additions and 3 deletions
......@@ -2,11 +2,14 @@ var watchr = require('watchr')
, spawn = require('child_process').spawn
watchr.watch({
path: __dirname,
listener: function(eventName, filePath) {
paths: [__dirname + '/lib', __dirname + '/spec', __dirname + '/index.js'],
listener: function(eventName) {
if (['new', 'change'].indexOf(eventName) > -1) {
var buster = spawn('./node_modules/.bin/buster-test', ['--reporter', 'specification'], { env: process.ENV })
// generate the documentation
spawn('npm', ['run', 'docs'])
// run the tests
var buster = spawn('./node_modules/.bin/buster-test', ['--reporter', 'specification'], { env: process.ENV })
buster.stderr.on('data', function(data) { console.log(data.toString()) })
buster.stdout.on('data', function(data) { console.log(data.toString()) })
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!