@pi-r/gulp 0.3.3 → 0.3.5
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/index.js +3 -2
- 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/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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/gulp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
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.6.
|
|
24
|
-
"@e-mc/types": "^0.6.
|
|
23
|
+
"@e-mc/task": "^0.6.7",
|
|
24
|
+
"@e-mc/types": "^0.6.7",
|
|
25
25
|
"gulp": "^4.0.2",
|
|
26
26
|
"gulp-cli": "^2.3.0",
|
|
27
27
|
"strip-ansi": "6.0.1",
|