@pi-r/gulp 0.6.5 → 0.6.7
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/index.js +3 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -42,10 +42,11 @@ class Gulp extends Task {
|
|
|
42
42
|
return executeTasks.call(this, [data.file], true, data.host);
|
|
43
43
|
}
|
|
44
44
|
collate(assets, isPreceding = false) {
|
|
45
|
+
var _a, _b;
|
|
45
46
|
const settings = this.settings;
|
|
46
47
|
const taskMap = new Map();
|
|
47
48
|
const origMap = new Map();
|
|
48
|
-
const username = this.host
|
|
49
|
+
const username = ((_a = this.host) === null || _a === void 0 ? void 0 : _a.username) || '';
|
|
49
50
|
for (const item of assets) {
|
|
50
51
|
const localUri = item.localUri;
|
|
51
52
|
if (!localUri || !item.tasks || (0, types_1.ignoreFlag)(item.flags) || !this.canWrite(localUri, { ownPermissionOnly: true })) {
|
|
@@ -55,7 +56,7 @@ class Gulp extends Task {
|
|
|
55
56
|
const scheduled = new Set();
|
|
56
57
|
for (let { task, handler, preceding } of item.tasks) {
|
|
57
58
|
if (task && handler === "gulp" && !!preceding === isPreceding) {
|
|
58
|
-
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;
|
|
59
60
|
if ((0, types_1.isObject)(gulpfile)) {
|
|
60
61
|
({ path: gulpfile, tasks, opts } = gulpfile);
|
|
61
62
|
}
|
|
@@ -344,5 +345,4 @@ class Gulp extends Task {
|
|
|
344
345
|
.catch(err => writeError("Unable to copy file", err, tempDir));
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
|
-
|
|
348
348
|
module.exports = Gulp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/gulp",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
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.8.
|
|
24
|
-
"@e-mc/types": "^0.8.
|
|
23
|
+
"@e-mc/task": "^0.8.8",
|
|
24
|
+
"@e-mc/types": "^0.8.8",
|
|
25
25
|
"gulp": "^4.0.2",
|
|
26
26
|
"gulp-cli": "^2.3.0",
|
|
27
27
|
"strip-ansi": "6.0.1",
|