@xiaoguomeiyitian/core 1.1.8 → 1.1.9
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/dist/cli.js +0 -15
- package/dist/index.js +2 -2
- package/dist/lib_linux_20.jsc +0 -0
- package/dist/lib_linux_22.jsc +0 -0
- package/dist/lib_win32_20.jsc +0 -0
- package/dist/lib_win32_22.jsc +0 -0
- package/package.json +1 -1
- package/types/lib.d.ts +0 -4
package/dist/cli.js
CHANGED
@@ -1,25 +1,10 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
"use strict";
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
5
|
-
};
|
6
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
7
|
-
const path_1 = __importDefault(require("path"));
|
8
4
|
const index_1 = require("./index");
|
9
5
|
// 获取当前工作目录
|
10
6
|
const cwd = process.cwd();
|
11
7
|
const cmd = process.argv[2];
|
12
|
-
//拷贝文件或目录
|
13
|
-
if (cmd == "copy") {
|
14
|
-
const sourceDir = path_1.default.resolve(cwd, process.argv[3]); // 源目录
|
15
|
-
const destDir = path_1.default.resolve(cwd, process.argv[4]); // 目标目录
|
16
|
-
(0, index_1.copyDir)(sourceDir, destDir);
|
17
|
-
}
|
18
|
-
//删除文件或目录
|
19
|
-
if (cmd == "del") {
|
20
|
-
const targetDir = path_1.default.resolve(cwd, process.argv[3]); // 目标目录
|
21
|
-
(0, index_1.delFiles)(targetDir, process.argv.splice(4, process.argv.length));
|
22
|
-
}
|
23
8
|
//调试
|
24
9
|
if (cmd == "dbg") {
|
25
10
|
process.argv = [process.argv[0], process.argv[1], process.argv[2], "-autoDeBug", "1", "-serverType", process.argv[3], "-rpcPort", process.argv[4]];
|
package/dist/index.js
CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.GenServiceFunc = exports.GenEntityDefs = exports.
|
6
|
+
exports.GenServiceFunc = exports.GenEntityDefs = exports.Entity = exports.Global = void 0;
|
7
7
|
require("bytenode");
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
9
9
|
const path_1 = __importDefault(require("path"));
|
@@ -15,4 +15,4 @@ if (fs_1.default.existsSync(path_1.default.resolve(process.cwd(), './core'))) {
|
|
15
15
|
else {
|
16
16
|
lib = require("./lib_" + process.platform + '_' + process.versions.node.split('.')[0] + '.jsc');
|
17
17
|
}
|
18
|
-
exports.Global = lib.Global, exports.Entity = lib.Entity, exports.
|
18
|
+
exports.Global = lib.Global, exports.Entity = lib.Entity, exports.GenEntityDefs = lib.GenEntityDefs, exports.GenServiceFunc = lib.GenServiceFunc;
|
package/dist/lib_linux_20.jsc
CHANGED
Binary file
|
package/dist/lib_linux_22.jsc
CHANGED
Binary file
|
package/dist/lib_win32_20.jsc
CHANGED
Binary file
|
package/dist/lib_win32_22.jsc
CHANGED
Binary file
|
package/package.json
CHANGED
package/types/lib.d.ts
CHANGED
@@ -92,7 +92,3 @@ export declare class GenEntityDefs {
|
|
92
92
|
export declare class GenServiceFunc {
|
93
93
|
gen(fReadPath: string, fWritePath: string, types: string[]): void;
|
94
94
|
}
|
95
|
-
/** 拷贝文件或目录 */
|
96
|
-
export declare function copyDir(sourceDir: string, destDir: string): Promise<void>;
|
97
|
-
/** 删除文件或者目录 */
|
98
|
-
export declare function delFiles(dir: string, exts?: string[]): Promise<void>;
|