@pi-r/gulp 0.12.0 → 0.12.1
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 +6 -3
- package/package.json +3 -6
package/index.js
CHANGED
|
@@ -59,8 +59,11 @@ class Gulp extends Task {
|
|
|
59
59
|
if (isObject(gulpfile)) {
|
|
60
60
|
({ path: gulpfile, tasks, opts } = gulpfile);
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
63
|
-
if (!
|
|
62
|
+
if (gulpfile && Task.isPath(gulpfile = path.resolve(gulpfile), true) && (isString(task) || this.canRead(gulpfile, { ownPermissionOnly: true }))) {
|
|
63
|
+
if (!isString(task)) {
|
|
64
|
+
task = JSON.stringify(task);
|
|
65
|
+
}
|
|
66
|
+
if (!scheduled.has(task)) {
|
|
64
67
|
try {
|
|
65
68
|
const buffer = item.sourceUTF8 || item.buffer;
|
|
66
69
|
if (buffer) {
|
|
@@ -203,6 +206,7 @@ class Gulp extends Task {
|
|
|
203
206
|
callback();
|
|
204
207
|
}
|
|
205
208
|
};
|
|
209
|
+
const broadcastId = this.broadcastId;
|
|
206
210
|
const exec = this.settings.exec;
|
|
207
211
|
let { path: gulpfile, tasks, opts, items } = data, uid, gid;
|
|
208
212
|
if (!Array.isArray(tasks)) {
|
|
@@ -247,7 +251,6 @@ class Gulp extends Task {
|
|
|
247
251
|
}
|
|
248
252
|
}
|
|
249
253
|
const startTime = process.hrtime();
|
|
250
|
-
const broadcastId = this.broadcastId;
|
|
251
254
|
this.formatMessage(4, "gulp", ['Executing task...', task], gulpfile);
|
|
252
255
|
Promise.all(items.map(async (src) => fs.promises.copyFile(src, path.join(tempDir, path.basename(src)))))
|
|
253
256
|
.then(() => {
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/gulp",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Gulp task constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
8
|
-
},
|
|
9
6
|
"repository": {
|
|
10
7
|
"type": "git",
|
|
11
8
|
"url": "git+https://github.com/anpham6/pi-r.git",
|
|
@@ -19,8 +16,8 @@
|
|
|
19
16
|
"license": "MIT",
|
|
20
17
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
21
18
|
"dependencies": {
|
|
22
|
-
"@e-mc/task": "^0.14.
|
|
23
|
-
"@e-mc/types": "^0.14.
|
|
19
|
+
"@e-mc/task": "^0.14.1",
|
|
20
|
+
"@e-mc/types": "^0.14.1",
|
|
24
21
|
"gulp": "^5.0.1",
|
|
25
22
|
"gulp-cli": "^3.1.0",
|
|
26
23
|
"which": "^4.0.0"
|