@pi-r/gulp 0.7.3 → 0.7.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/README.md +6 -6
- package/index.js +4 -1
- package/package.json +30 -30
- package/types/index.d.ts +18 -18
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
### @pi-r/gulp
|
|
2
|
-
|
|
3
|
-
https://e-mc.readthedocs.io/en/latest/task
|
|
4
|
-
|
|
5
|
-
### LICENSE
|
|
6
|
-
|
|
1
|
+
### @pi-r/gulp
|
|
2
|
+
|
|
3
|
+
https://e-mc.readthedocs.io/en/latest/task
|
|
4
|
+
|
|
5
|
+
### LICENSE
|
|
6
|
+
|
|
7
7
|
MIT
|
package/index.js
CHANGED
|
@@ -31,10 +31,13 @@ async function executeTasks(assets, preceding, host) {
|
|
|
31
31
|
}
|
|
32
32
|
const normalizePath = (value) => process.platform === 'win32' ? '"' + value.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"' : Task.sanitizeArgs(value);
|
|
33
33
|
class Gulp extends Task {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments);
|
|
36
|
+
this._moduleName = "gulp";
|
|
37
|
+
}
|
|
34
38
|
static async finalize(instance, assets) {
|
|
35
39
|
return executeTasks.call(instance, assets, false, this);
|
|
36
40
|
}
|
|
37
|
-
_moduleName = "gulp";
|
|
38
41
|
async using(data) {
|
|
39
42
|
return executeTasks.call(this, [data.file], true, data.host);
|
|
40
43
|
}
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pi-r/gulp",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"description": "Gulp task constructor for E-mc.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/anpham6/pi-r.git",
|
|
12
|
-
"directory": "src/module/gulp"
|
|
13
|
-
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"squared",
|
|
16
|
-
"e-mc",
|
|
17
|
-
"squared-functions"
|
|
18
|
-
],
|
|
19
|
-
"author": "An Pham <anpham6@gmail.com>",
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@e-mc/task": "^0.9.
|
|
24
|
-
"@e-mc/types": "^0.9.
|
|
25
|
-
"gulp": "^5.0.0",
|
|
26
|
-
"gulp-cli": "^3.0.0",
|
|
27
|
-
"strip-ansi": "6.0.1",
|
|
28
|
-
"which": "^2.0.2"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@pi-r/gulp",
|
|
3
|
+
"version": "0.7.4",
|
|
4
|
+
"description": "Gulp task constructor for E-mc.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/anpham6/pi-r.git",
|
|
12
|
+
"directory": "src/module/gulp"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"squared",
|
|
16
|
+
"e-mc",
|
|
17
|
+
"squared-functions"
|
|
18
|
+
],
|
|
19
|
+
"author": "An Pham <anpham6@gmail.com>",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@e-mc/task": "^0.9.12",
|
|
24
|
+
"@e-mc/types": "^0.9.12",
|
|
25
|
+
"gulp": "^5.0.0",
|
|
26
|
+
"gulp-cli": "^3.0.0",
|
|
27
|
+
"strip-ansi": "6.0.1",
|
|
28
|
+
"which": "^2.0.2"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { ExecAction } from '@e-mc/types/lib/settings';
|
|
2
|
-
|
|
3
|
-
export interface GulpCommand {
|
|
4
|
-
path?: string;
|
|
5
|
-
tasks?: ArrayOf<string>;
|
|
6
|
-
opts?: ArrayOf<string>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface GulpData extends GulpCommand {
|
|
10
|
-
items: string[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface GulpSettings extends PlainObject {
|
|
14
|
-
exec?: ExecAction;
|
|
15
|
-
users?: GulpUsers;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type GulpTask = string | GulpCommand;
|
|
1
|
+
import type { ExecAction } from '@e-mc/types/lib/settings';
|
|
2
|
+
|
|
3
|
+
export interface GulpCommand {
|
|
4
|
+
path?: string;
|
|
5
|
+
tasks?: ArrayOf<string>;
|
|
6
|
+
opts?: ArrayOf<string>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface GulpData extends GulpCommand {
|
|
10
|
+
items: string[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface GulpSettings extends PlainObject {
|
|
14
|
+
exec?: ExecAction;
|
|
15
|
+
users?: GulpUsers;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type GulpTask = string | GulpCommand;
|
|
19
19
|
export type GulpUsers = GulpTask | AnyObject;
|