/bin
Created
October 2, 2015 13:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var chokadir = require('chokidar') | |
var exec = require('child_process').exec | |
chokadir.watch('./src').on('change', function () { | |
console.log('Got a change, running lein run') | |
exec('lein run', { cwd: process.cwd() }, function (err, stdout, stderr) { | |
if (err || stderr) { | |
throw err || stderr | |
} | |
}) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "niks-watcher", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"bin": { | |
"niks-watcher": "bin" | |
}, | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"chokidar": "^1.2.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment