Addnew sheets (armor, weapons, malefica) and v13 support
This commit is contained in:
39
node_modules/gulp-cli/lib/versioned/^4.0.0/log/events.js
generated
vendored
Normal file
39
node_modules/gulp-cli/lib/versioned/^4.0.0/log/events.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
'use strict';
|
||||
|
||||
var log = require('gulplog');
|
||||
var messages = require('@gulpjs/messages');
|
||||
|
||||
var formatError = require('../format-error');
|
||||
|
||||
// Wire up logging events
|
||||
function logEvents(gulpInst) {
|
||||
|
||||
var loggedErrors = [];
|
||||
|
||||
gulpInst.on('start', function(evt) {
|
||||
/* istanbul ignore next */
|
||||
// TODO: batch these
|
||||
// so when 5 tasks start at once it only logs one time with all 5
|
||||
var level = evt.branch ? 'debug' : 'info';
|
||||
log[level]({ tag: messages.TASK_START, task: evt.name });
|
||||
});
|
||||
|
||||
gulpInst.on('stop', function(evt) {
|
||||
/* istanbul ignore next */
|
||||
var level = evt.branch ? 'debug' : 'info';
|
||||
log[level]({ tag: messages.TASK_STOP, task: evt.name, duration: evt.duration });
|
||||
});
|
||||
|
||||
gulpInst.on('error', function(evt) {
|
||||
var level = evt.branch ? 'debug' : 'error';
|
||||
log[level]({ tag: messages.TASK_FAILURE, task: evt.name, duration: evt.duration });
|
||||
|
||||
// If we haven't logged this before, log it and add to list
|
||||
if (loggedErrors.indexOf(evt.error) === -1) {
|
||||
log.error({ tag: messages.TASK_ERROR, message: formatError(evt) });
|
||||
loggedErrors.push(evt.error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = logEvents;
|
||||
43
node_modules/gulp-cli/lib/versioned/^4.0.0/log/get-task.js
generated
vendored
Normal file
43
node_modules/gulp-cli/lib/versioned/^4.0.0/log/get-task.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
'use strict';
|
||||
|
||||
var isObject = require('../../../shared/is-object');
|
||||
|
||||
function getTask(gulpInst) {
|
||||
return function(name) {
|
||||
var task = gulpInst.task(name);
|
||||
return {
|
||||
description: getDescription(task),
|
||||
flags: getFlags(task),
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
function getDescription(task) {
|
||||
if (typeof task.description === 'string') {
|
||||
return task.description;
|
||||
}
|
||||
/* istanbul ignore else */
|
||||
if (typeof task.unwrap === 'function') {
|
||||
var origFn = task.unwrap();
|
||||
if (typeof origFn.description === 'string') {
|
||||
return origFn.description;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function getFlags(task) {
|
||||
if (isObject(task.flags)) {
|
||||
return task.flags;
|
||||
}
|
||||
/* istanbul ignore else */
|
||||
if (typeof task.unwrap === 'function') {
|
||||
var origFn = task.unwrap();
|
||||
if (isObject(origFn.flags)) {
|
||||
return origFn.flags;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
module.exports = getTask;
|
||||
46
node_modules/gulp-cli/lib/versioned/^4.0.0/log/sync-task.js
generated
vendored
Normal file
46
node_modules/gulp-cli/lib/versioned/^4.0.0/log/sync-task.js
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
'use strict';
|
||||
|
||||
var log = require('gulplog');
|
||||
var messages = require('@gulpjs/messages');
|
||||
|
||||
var tasks = {};
|
||||
|
||||
function warn() {
|
||||
var taskKeys = Object.keys(tasks);
|
||||
|
||||
if (!taskKeys.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
var taskNames = taskKeys.map(function(key) {
|
||||
return tasks[key];
|
||||
}).join(', ');
|
||||
|
||||
process.exitCode = 1;
|
||||
|
||||
log.warn({ tag: messages.TASK_SYNC, tasks: taskNames });
|
||||
}
|
||||
|
||||
function start(e) {
|
||||
tasks[e.uid] = e.name;
|
||||
}
|
||||
|
||||
function clear(e) {
|
||||
delete tasks[e.uid];
|
||||
}
|
||||
|
||||
function clearAll() {
|
||||
tasks = {};
|
||||
}
|
||||
|
||||
function logSyncTask(gulpInst, opts) {
|
||||
|
||||
process.once('exit', warn);
|
||||
gulpInst.on('start', start);
|
||||
gulpInst.on('stop', clear);
|
||||
// When not running in --continue mode, we need to clear everything on error to avoid
|
||||
// false positives.
|
||||
gulpInst.on('error', opts.continue ? clear : clearAll);
|
||||
}
|
||||
|
||||
module.exports = logSyncTask;
|
||||
7
node_modules/gulp-cli/lib/versioned/^4.0.0/log/tasks-simple.js
generated
vendored
Normal file
7
node_modules/gulp-cli/lib/versioned/^4.0.0/log/tasks-simple.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
function logTasksSimple(nodes) {
|
||||
console.log(nodes.join('\n').trim());
|
||||
}
|
||||
|
||||
module.exports = logTasksSimple;
|
||||
Reference in New Issue
Block a user