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
desc('Continously monitors the javascript and less files for the project, and rebuilds them as necessary'); | |
task('watch', ['build'], function () { | |
// Recursively watch files with a callback | |
var fs = require('fs'); | |
var files = []; | |
var findFilesAndWatch = function (path) { | |
fs.stat(path, function (err, stats) { | |
if (err) { | |
return false; |