From ff9e658a02be3da044aa21fc9c12f8ebb95eaa7c Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 8 Jul 2014 15:56:59 +0200 Subject: [PATCH] Removed redundant watch tool --- tools/watch.js | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 tools/watch.js diff --git a/tools/watch.js b/tools/watch.js deleted file mode 100644 index 79c99a9c..00000000 --- a/tools/watch.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Watch for changes in the sourcecode, and rebuild vis.js on change - * - * Usage: - * cd vis - * node tools/watch.js - */ - -var watch = require('node-watch'), - child_process = require('child_process'); - -// constants -var WATCH_FOLDER = './src'; -var BUILD_COMMAND = 'jake build'; - -// rebuilt vis.js on change of code -function rebuild() { - var start = +new Date(); - child_process.exec(BUILD_COMMAND, function () { - var end = +new Date(); - console.log('rebuilt in ' + (end - start) + ' ms'); - }); -} - -// watch for changes in the code, rebuilt vis.js automatically -watch(WATCH_FOLDER, function(filename) { - console.log(filename + ' changed'); - rebuild(); -}); - -rebuild(); - -console.log('watching for changes in the source code...');