UNPKG

glass-build

Version:

Contains scripts for building glass based projects.

53 lines (38 loc) 1.15 kB
// Generated by CoffeeScript 1.6.3 (function() { var browserBuild, build, ext, isWindows, kill, restart, server, start, utility, watcher, _ref; _ref = browserBuild = require('browser-build'), watcher = _ref.watcher, utility = _ref.utility; isWindows = process.platform === 'win32'; ext = isWindows ? ".bat" : ""; server = null; start = function() { return server = utility.spawn("ant" + ext + " runserver"); }; restart = (function(callback) { return kill(function() { start(); return typeof callback === "function" ? callback() : void 0; }); }).debounce(1000); kill = function(callback) { if (server != null) { server.kill(); } server = null; if (isWindows) { return utility.exec("taskkill /F /IM java.exe", callback); } else { return typeof callback === "function" ? callback() : void 0; } }; build = function() { return utility.spawn("ant" + ext + " compile", function() {}); }; exports.run = restart; exports.restart = restart; exports.kill = kill; exports.build = build; }).call(this); /* //@ sourceMappingURL=appengine.map */