@pi-r/gulp 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/index.js +4 -8
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2024 An Pham
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
2
|
const path = require("path");
|
|
4
3
|
const fs = require("fs");
|
|
5
4
|
const child_process = require("child_process");
|
|
@@ -43,10 +42,11 @@ class Gulp extends Task {
|
|
|
43
42
|
return executeTasks.call(this, [data.file], true, data.host);
|
|
44
43
|
}
|
|
45
44
|
collate(assets, isPreceding = false) {
|
|
45
|
+
var _a, _b;
|
|
46
46
|
const settings = this.settings;
|
|
47
47
|
const taskMap = new Map();
|
|
48
48
|
const origMap = new Map();
|
|
49
|
-
const username = this.host
|
|
49
|
+
const username = ((_a = this.host) === null || _a === void 0 ? void 0 : _a.username) || '';
|
|
50
50
|
for (const item of assets) {
|
|
51
51
|
const localUri = item.localUri;
|
|
52
52
|
if (!localUri || !item.tasks || (0, types_1.ignoreFlag)(item.flags) || !this.canWrite(localUri, { ownPermissionOnly: true })) {
|
|
@@ -56,7 +56,7 @@ class Gulp extends Task {
|
|
|
56
56
|
const scheduled = new Set();
|
|
57
57
|
for (let { task, handler, preceding } of item.tasks) {
|
|
58
58
|
if (task && handler === "gulp" && !!preceding === isPreceding) {
|
|
59
|
-
let gulpfile = (0, types_1.isString)(task) ? username && (0, types_1.isObject)(settings.users) && settings.users[username]
|
|
59
|
+
let gulpfile = (0, types_1.isString)(task) ? username && (0, types_1.isObject)(settings.users) && ((_b = settings.users[username]) === null || _b === void 0 ? void 0 : _b[task]) || settings[task] : task, tasks, opts;
|
|
60
60
|
if ((0, types_1.isObject)(gulpfile)) {
|
|
61
61
|
({ path: gulpfile, tasks, opts } = gulpfile);
|
|
62
62
|
}
|
|
@@ -335,9 +335,5 @@ class Gulp extends Task {
|
|
|
335
335
|
.catch(err => writeError("Unable to copy file", err, tempDir));
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
exports.default = Gulp;
|
|
339
338
|
|
|
340
|
-
|
|
341
|
-
module.exports = exports.default;
|
|
342
|
-
module.exports.default = exports.default;
|
|
343
|
-
}
|
|
339
|
+
module.exports = Gulp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/gulp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Gulp task constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/task": "^0.7.
|
|
24
|
-
"@e-mc/types": "^0.7.
|
|
23
|
+
"@e-mc/task": "^0.7.5",
|
|
24
|
+
"@e-mc/types": "^0.7.5",
|
|
25
25
|
"gulp": "^4.0.2",
|
|
26
26
|
"gulp-cli": "^2.3.0",
|
|
27
27
|
"strip-ansi": "6.0.1",
|