How to use the jake.run function in jake

To help you get started, we’ve selected a few jake examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / azure-pipelines-tasks / Tasks / Jake / jakerunner.js View on Github external
var jake = require('jake');
var args = process.argv.slice(2);

jake.addListener('complete', function () {
	console.log('Complete.');
});

jake.addListener('start', function () {
	console.log('start.');
});

jake.addListener('error', function (msg, code) {
    console.error('Fatal error: ', msg, code);
});

jake.run.apply(jake, args);
github xenolf / meteor-deploy / lib / meteor-deploy.js View on Github external
MeteorDeploy.prototype.runJakeTask = function(task) {
        jake.run.apply(jake, ['--jakefile', this.jakeFilePath, '--jakelibdir', this.jakeLibPath, task]);
    };