update to state of the art

This commit is contained in:
s2
2020-10-10 15:18:01 +02:00
parent cf251a170f
commit 4cdcfd167c
1526 changed files with 48132 additions and 7268 deletions

38
node_modules/jake/lib/jake.js generated vendored
View File

@@ -245,29 +245,11 @@ if (!global.jake) {
};
this.createPlaceholderFileTask = function (name, namespace) {
let nsPath = '';
let filePath = name.split(':').pop(); // Strip any namespace
let parts;
let fileTaskName;
let parsed = name.split(':');
let filePath = parsed.pop(); // Strip any namespace
let task;
if (namespace) {
if (typeof namespace == 'string') {
nsPath = namespace;
}
else {
nsPath = namespace.path;
if (!namespace.isRootNamespace()) {
nsPath += ':' + namespace.name;
}
}
}
parts = nsPath.length ? nsPath.split(':') : [];
parts.push(filePath);
fileTaskName = parts.join(':');
task = jake.Task[fileTaskName];
task = namespace.resolveTask(name);
// If there's not already an existing dummy FileTask for it,
// create one
@@ -275,11 +257,21 @@ if (!global.jake) {
// Create a dummy FileTask only if file actually exists
if (fs.existsSync(filePath)) {
task = new jake.FileTask(filePath);
task.fullName = fileTaskName;
task.dummy = true;
let ns;
if (parsed.length) {
ns = namespace.resolveNamespace(parsed.join(':'));
}
else {
ns = namespace;
}
if (!namespace) {
throw new Error('Invalid namespace, cannot add FileTask');
}
ns.addTask(task);
// Put this dummy Task in the global Tasks list so
// modTime will be eval'd correctly
jake.Task[fileTaskName] = task;
jake.Task[`${ns.path}:${filePath}`] = task;
}
}