How to use the jake.addListener 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
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

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 microsoft / azure-pipelines-tasks / Tasks / Jake / jakerunner.js View on Github external
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

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 microsoft / azure-pipelines-tasks / Tasks / Jake / jakerunner.js View on Github external
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

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);