node-pluginsmanager 2.4.4 → 2.5.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/LICENSE +1 -1
- package/lib/cjs/PluginsManager.d.ts +38 -38
- package/lib/cjs/PluginsManager.js +451 -442
- package/lib/cjs/checkers/checkAbsoluteDirectory.d.ts +1 -1
- package/lib/cjs/checkers/checkAbsoluteDirectory.js +19 -20
- package/lib/cjs/checkers/checkDirectory.d.ts +1 -1
- package/lib/cjs/checkers/checkDirectory.js +23 -24
- package/lib/cjs/checkers/checkFunction.d.ts +1 -1
- package/lib/cjs/checkers/checkFunction.js +15 -16
- package/lib/cjs/checkers/checkNonEmptyArray.d.ts +1 -1
- package/lib/cjs/checkers/checkNonEmptyArray.js +18 -19
- package/lib/cjs/checkers/checkNonEmptyString.d.ts +1 -1
- package/lib/cjs/checkers/checkNonEmptyString.js +18 -19
- package/lib/cjs/checkers/checkOrchestrator.d.ts +2 -1
- package/lib/cjs/checkers/checkOrchestrator.js +35 -36
- package/lib/cjs/cmd/cmd.d.ts +1 -1
- package/lib/cjs/cmd/cmd.js +38 -37
- package/lib/cjs/cmd/git/gitInstall.d.ts +1 -1
- package/lib/cjs/cmd/git/gitInstall.js +41 -42
- package/lib/cjs/cmd/git/gitUpdate.d.ts +1 -1
- package/lib/cjs/cmd/git/gitUpdate.js +17 -18
- package/lib/cjs/cmd/npm/npmInstall.d.ts +1 -1
- package/lib/cjs/cmd/npm/npmInstall.js +17 -14
- package/lib/cjs/cmd/npm/npmUpdate.d.ts +1 -1
- package/lib/cjs/cmd/npm/npmUpdate.js +17 -14
- package/lib/cjs/cmd/stdToString.d.ts +1 -1
- package/lib/cjs/cmd/stdToString.js +15 -16
- package/lib/cjs/createPluginByDirectory.d.ts +2 -2
- package/lib/cjs/createPluginByDirectory.js +60 -61
- package/lib/cjs/extractGithub.d.ts +7 -1
- package/lib/cjs/extractGithub.js +20 -20
- package/lib/cjs/initSortedPlugins.d.ts +2 -2
- package/lib/cjs/initSortedPlugins.js +60 -60
- package/lib/cjs/loadSortedPlugins.d.ts +2 -2
- package/lib/cjs/loadSortedPlugins.js +77 -78
- package/lib/cjs/main.cjs +8 -8
- package/lib/cjs/main.d.cts +2 -2
- package/lib/cjs/utils/isDirectory.d.ts +1 -0
- package/lib/cjs/utils/isDirectory.js +25 -0
- package/lib/cjs/utils/rmdirp.d.ts +1 -0
- package/lib/cjs/utils/rmdirp.js +19 -0
- package/package.json +46 -34
- package/lib/cjs/cmd/npm/npmCmd.d.ts +0 -1
- package/lib/cjs/cmd/npm/npmCmd.js +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function checkAbsoluteDirectory(dataName: string, directory: string): Promise<void>;
|
|
1
|
+
export default function checkAbsoluteDirectory(dataName: string, directory: string): Promise<void>;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
// deps
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = checkAbsoluteDirectory;
|
|
8
|
+
// natives
|
|
9
|
+
const node_path_1 = require("node:path");
|
|
10
|
+
// locals
|
|
11
|
+
const checkDirectory_1 = __importDefault(require("./checkDirectory"));
|
|
12
|
+
// module
|
|
13
|
+
function checkAbsoluteDirectory(dataName, directory) {
|
|
14
|
+
return (0, checkDirectory_1.default)(dataName, directory).then(() => {
|
|
15
|
+
return new Promise((resolve, reject) => {
|
|
16
|
+
return (0, node_path_1.isAbsolute)(directory) ? resolve() : reject(new Error("\"" + dataName + "\" (" + directory + ") is not an absolute path"));
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function checkDirectory(dataName: string, directory: string): Promise<void>;
|
|
1
|
+
export default function checkDirectory(dataName: string, directory: string): Promise<void>;
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
// deps
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = checkDirectory;
|
|
8
|
+
// natives
|
|
9
|
+
const node_fs_1 = require("node:fs");
|
|
10
|
+
// locals
|
|
11
|
+
const checkNonEmptyString_1 = __importDefault(require("./checkNonEmptyString"));
|
|
12
|
+
// module
|
|
13
|
+
function checkDirectory(dataName, directory) {
|
|
14
|
+
return (0, checkNonEmptyString_1.default)(dataName, directory).then(() => {
|
|
15
|
+
return new Promise((resolve) => {
|
|
16
|
+
(0, node_fs_1.lstat)(directory, (err, stats) => {
|
|
17
|
+
return resolve(Boolean(!err && stats.isDirectory()));
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
}).then((exists) => {
|
|
21
|
+
return exists ? Promise.resolve() : Promise.reject(new Error("\"" + dataName + "\" (" + directory + ") is not a valid directory"));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isFunction(dataName: string, data: any): Promise<void>;
|
|
1
|
+
export default function isFunction(dataName: string, data: any): Promise<void>;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
// module
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.default = isFunction;
|
|
5
|
+
function isFunction(dataName, data) {
|
|
6
|
+
if ("undefined" === typeof data) {
|
|
7
|
+
return Promise.reject(new ReferenceError("\"" + dataName + "\" parameter is missing"));
|
|
8
|
+
}
|
|
9
|
+
else if ("function" !== typeof data) {
|
|
10
|
+
return Promise.reject(new TypeError("\"" + dataName + "\" parameter is not a function"));
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
return Promise.resolve();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isNonEmptyArray(dataName: string, data: any): Promise<void>;
|
|
1
|
+
export default function isNonEmptyArray(dataName: string, data: any): Promise<void>;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
// module
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.default = isNonEmptyArray;
|
|
5
|
+
function isNonEmptyArray(dataName, data) {
|
|
6
|
+
if ("undefined" === typeof data) {
|
|
7
|
+
return Promise.reject(new ReferenceError("\"" + dataName + "\" parameter is missing"));
|
|
8
|
+
}
|
|
9
|
+
else if ("object" !== typeof data || !(data instanceof Array)) {
|
|
10
|
+
return Promise.reject(new TypeError("\"" + dataName + "\" parameter is not an Array"));
|
|
11
|
+
}
|
|
12
|
+
else if (!data.length) {
|
|
13
|
+
return Promise.reject(new RangeError("\"" + dataName + "\" parameter is empty"));
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return Promise.resolve();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isNonEmptyString(dataName: string, data: any): Promise<void>;
|
|
1
|
+
export default function isNonEmptyString(dataName: string, data: any): Promise<void>;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
// module
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.default = isNonEmptyString;
|
|
5
|
+
function isNonEmptyString(dataName, data) {
|
|
6
|
+
if ("undefined" === typeof data) {
|
|
7
|
+
return Promise.reject(new ReferenceError("\"" + dataName + "\" parameter is missing"));
|
|
8
|
+
}
|
|
9
|
+
else if ("string" !== typeof data) {
|
|
10
|
+
return Promise.reject(new TypeError("\"" + dataName + "\" parameter is not a string"));
|
|
11
|
+
}
|
|
12
|
+
else if ("" === data.trim()) {
|
|
13
|
+
return Promise.reject(new RangeError("\"" + dataName + "\" parameter is empty"));
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return Promise.resolve();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Orchestrator } from "node-pluginsmanager-plugin";
|
|
2
|
+
export default function checkOrchestrator(dataName: string, data: Orchestrator): Promise<void>;
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
// deps
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = checkOrchestrator;
|
|
8
|
+
// natives
|
|
9
|
+
const node_events_1 = __importDefault(require("node:events"));
|
|
10
|
+
// locals
|
|
11
|
+
const checkFunction_1 = __importDefault(require("./checkFunction"));
|
|
12
|
+
// module
|
|
13
|
+
function checkOrchestrator(dataName, data) {
|
|
14
|
+
if ("undefined" === typeof data) {
|
|
15
|
+
return Promise.reject(new ReferenceError("\"" + dataName + "\" parameter is missing"));
|
|
16
|
+
}
|
|
17
|
+
else if ("object" !== typeof data || !(data instanceof node_events_1.default)) {
|
|
18
|
+
return Promise.reject(new TypeError("\"" + dataName + "\" parameter is not an Event"));
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return (0, checkFunction_1.default)("isOrchestrator/load", data.load).then(() => {
|
|
22
|
+
return (0, checkFunction_1.default)("isOrchestrator/destroy", data.destroy);
|
|
23
|
+
}).then(() => {
|
|
24
|
+
return (0, checkFunction_1.default)("isOrchestrator/init", data.init);
|
|
25
|
+
}).then(() => {
|
|
26
|
+
return (0, checkFunction_1.default)("isOrchestrator/release", data.release);
|
|
27
|
+
}).then(() => {
|
|
28
|
+
return (0, checkFunction_1.default)("isOrchestrator/install", data.install);
|
|
29
|
+
}).then(() => {
|
|
30
|
+
return (0, checkFunction_1.default)("isOrchestrator/update", data.update);
|
|
31
|
+
}).then(() => {
|
|
32
|
+
return (0, checkFunction_1.default)("isOrchestrator/uninstall", data.uninstall);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
package/lib/cjs/cmd/cmd.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function cmd(directory: string, command: string, params:
|
|
1
|
+
export default function cmd(directory: string, command: string, params: string[]): Promise<void>;
|
package/lib/cjs/cmd/cmd.js
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
// deps
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = cmd;
|
|
8
|
+
// natives
|
|
9
|
+
const node_child_process_1 = require("node:child_process");
|
|
10
|
+
// locals
|
|
11
|
+
const checkDirectory_1 = __importDefault(require("../checkers/checkDirectory"));
|
|
12
|
+
const checkNonEmptyArray_1 = __importDefault(require("../checkers/checkNonEmptyArray"));
|
|
13
|
+
const checkNonEmptyString_1 = __importDefault(require("../checkers/checkNonEmptyString"));
|
|
14
|
+
const stdToString_1 = __importDefault(require("./stdToString"));
|
|
15
|
+
// module
|
|
16
|
+
function cmd(directory, command, params) {
|
|
17
|
+
return (0, checkDirectory_1.default)("cmd/directory", directory).then(() => {
|
|
18
|
+
return (0, checkNonEmptyString_1.default)("cmd/command", command);
|
|
19
|
+
}).then(() => {
|
|
20
|
+
return (0, checkNonEmptyArray_1.default)("cmd/params", params);
|
|
21
|
+
}).then(() => {
|
|
22
|
+
return new Promise((resolve, reject) => {
|
|
23
|
+
let result = "";
|
|
24
|
+
const mySpawn = (0, node_child_process_1.spawn)(command, params, {
|
|
25
|
+
"cwd": directory,
|
|
26
|
+
"windowsHide": true,
|
|
27
|
+
"shell": true
|
|
28
|
+
}).on("error", (err) => {
|
|
29
|
+
result += (0, stdToString_1.default)(err);
|
|
30
|
+
}).on("close", (code) => {
|
|
31
|
+
return code ? reject(new Error(result)) : resolve();
|
|
32
|
+
});
|
|
33
|
+
mySpawn.stderr.on("data", (msg) => {
|
|
34
|
+
result += (0, stdToString_1.default)(msg);
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function gitInstall(directory: string, user: string, repo: string): Promise<void>;
|
|
1
|
+
export default function gitInstall(directory: string, user: string, repo: string): Promise<void>;
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"--
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
// deps
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = gitInstall;
|
|
8
|
+
// natives
|
|
9
|
+
const node_path_1 = require("node:path");
|
|
10
|
+
// locals
|
|
11
|
+
const checkDirectory_1 = __importDefault(require("../../checkers/checkDirectory"));
|
|
12
|
+
const checkNonEmptyString_1 = __importDefault(require("../../checkers/checkNonEmptyString"));
|
|
13
|
+
const cmd_1 = __importDefault(require("../cmd"));
|
|
14
|
+
// module
|
|
15
|
+
function gitInstall(directory, user, repo) {
|
|
16
|
+
return (0, checkNonEmptyString_1.default)("cmd/git/install/directory", directory).then(() => {
|
|
17
|
+
return new Promise((resolve, reject) => {
|
|
18
|
+
(0, checkDirectory_1.default)("cmd/git/install/directory", directory).then(() => {
|
|
19
|
+
reject(new Error("\"" + directory + "\" aldready exists"));
|
|
20
|
+
}).catch(() => {
|
|
21
|
+
resolve();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
}).then(() => {
|
|
25
|
+
return (0, checkNonEmptyString_1.default)("cmd/git/install/user", user);
|
|
26
|
+
}).then(() => {
|
|
27
|
+
return (0, checkNonEmptyString_1.default)("cmd/git/install/repo", repo);
|
|
28
|
+
}).then(() => {
|
|
29
|
+
// git clone
|
|
30
|
+
return (0, cmd_1.default)((0, node_path_1.dirname)(directory), "git", [
|
|
31
|
+
"-c",
|
|
32
|
+
"core.quotepath=false",
|
|
33
|
+
"clone",
|
|
34
|
+
"--recursive",
|
|
35
|
+
"--depth",
|
|
36
|
+
"1",
|
|
37
|
+
"https://github.com/" + user + "/" + repo + "/",
|
|
38
|
+
directory
|
|
39
|
+
]);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function gitUpdate(directory: string): Promise<void>;
|
|
1
|
+
export default function gitUpdate(directory: string): Promise<void>;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
// deps
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = gitUpdate;
|
|
8
|
+
// locals
|
|
9
|
+
const checkDirectory_1 = __importDefault(require("../../checkers/checkDirectory"));
|
|
10
|
+
const cmd_1 = __importDefault(require("../cmd"));
|
|
11
|
+
// module
|
|
12
|
+
function gitUpdate(directory) {
|
|
13
|
+
return (0, checkDirectory_1.default)("cmd/git/update/directory", directory).then(() => {
|
|
14
|
+
// git update
|
|
15
|
+
return (0, cmd_1.default)(directory, "git", ["pull"]);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function npmInstall(directory: string): Promise<void>;
|
|
1
|
+
export default function npmInstall(directory: string): Promise<void>;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// deps
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = npmInstall;
|
|
8
|
+
// locals
|
|
9
|
+
const cmd_1 = __importDefault(require("../cmd"));
|
|
10
|
+
// module
|
|
11
|
+
function npmInstall(directory) {
|
|
12
|
+
return (0, cmd_1.default)(directory, "npm", [
|
|
13
|
+
"install",
|
|
14
|
+
"--omit=dev",
|
|
15
|
+
"--no-optional"
|
|
16
|
+
]);
|
|
17
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function npmUpdate(directory: string): Promise<void>;
|
|
1
|
+
export default function npmUpdate(directory: string): Promise<void>;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// deps
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = npmUpdate;
|
|
8
|
+
// locals
|
|
9
|
+
const cmd_1 = __importDefault(require("../cmd"));
|
|
10
|
+
// module
|
|
11
|
+
function npmUpdate(directory) {
|
|
12
|
+
return (0, cmd_1.default)(directory, "npm", [
|
|
13
|
+
"update",
|
|
14
|
+
"--omit=dev",
|
|
15
|
+
"--no-optional"
|
|
16
|
+
]);
|
|
17
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function stdToString(msg: any): string;
|
|
1
|
+
export default function stdToString(msg: any): string;
|