Created
March 12, 2015 08:16
-
-
Save dwi2/a71a32c366ba55ced04f to your computer and use it in GitHub Desktop.
CallScreen build script for debuguy
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
'use strict'; | |
/* global require, exports */ | |
var utils = require('utils'); | |
var CallScreenAppBuilder = function() { | |
}; | |
CallScreenAppBuilder.prototype.execute = function(options) { | |
utils.copyToStage(options); | |
var stageDir = options.STAGE_APP_DIR + '/js' | |
var debuguy = new utils.Commander('debuguy'); | |
var args = [ | |
'autolog', | |
stageDir | |
]; | |
debuguy.initPath(utils.getEnvPath()); | |
debuguy.run(args, function(exitValue) { | |
if (exitValue !== 0) { | |
throw new Error(); | |
} | |
}); | |
}; | |
exports.execute = function(options) { | |
(new CallScreenAppBuilder()).execute(options); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment