Browse Source

Removed redundant watch tool

v3_develop
jos 10 years ago
parent
commit
ff9e658a02
1 changed files with 0 additions and 33 deletions
  1. +0
    -33
      tools/watch.js

+ 0
- 33
tools/watch.js View File

@ -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...');

Loading…
Cancel
Save