@ibiz-template/runtime 0.0.1-alpha.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/out/command/app/app-func/app-func.d.ts +14 -0
- package/out/command/app/app-func/app-func.d.ts.map +1 -0
- package/out/command/app/app-func/app-func.js +18 -0
- package/out/command/index.d.ts +9 -0
- package/out/command/index.d.ts.map +1 -0
- package/out/command/index.js +11 -0
- package/out/constant/command/app/app.d.ts +7 -0
- package/out/constant/command/app/app.d.ts.map +1 -0
- package/out/constant/command/app/app.js +7 -0
- package/out/constant/command/command.d.ts +20 -0
- package/out/constant/command/command.d.ts.map +1 -0
- package/out/constant/command/command.js +18 -0
- package/out/constant/index.d.ts +2 -0
- package/out/constant/index.d.ts.map +1 -0
- package/out/constant/index.js +1 -0
- package/out/index.d.ts +3 -0
- package/out/index.d.ts.map +1 -0
- package/out/index.js +2 -0
- package/out/install.d.ts +9 -0
- package/out/install.d.ts.map +1 -0
- package/out/install.js +15 -0
- package/out/types.d.ts +14 -0
- package/out/types.d.ts.map +1 -0
- package/out/types.js +1 -0
- package/package.json +29 -0
- package/src/command/app/app-func/app-func.ts +21 -0
- package/src/command/index.ts +12 -0
- package/src/constant/command/app/app.ts +7 -0
- package/src/constant/command/command.ts +19 -0
- package/src/constant/index.ts +1 -0
- package/src/index.ts +3 -0
- package/src/install.ts +16 -0
- package/src/types.ts +14 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPSAppFunc } from '@ibiz-template/model';
|
|
2
|
+
/**
|
|
3
|
+
* 执行应用功能
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2022-07-25 11:07:07
|
|
7
|
+
* @export
|
|
8
|
+
* @class AppFuncCommand
|
|
9
|
+
*/
|
|
10
|
+
export declare class AppFuncCommand {
|
|
11
|
+
constructor();
|
|
12
|
+
exec(appFunc: IPSAppFunc): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=app-func.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-func.d.ts","sourceRoot":"","sources":["../../../../src/command/app/app-func/app-func.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;;;;;;GAOG;AACH,qBAAa,cAAc;;IAKnB,IAAI,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { commands } from '@ibiz-template/command';
|
|
2
|
+
import { CommandConst } from '../../../constant';
|
|
3
|
+
/**
|
|
4
|
+
* 执行应用功能
|
|
5
|
+
*
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2022-07-25 11:07:07
|
|
8
|
+
* @export
|
|
9
|
+
* @class AppFuncCommand
|
|
10
|
+
*/
|
|
11
|
+
export class AppFuncCommand {
|
|
12
|
+
constructor() {
|
|
13
|
+
commands.register(CommandConst.app.APP_FUNC_EXEC, this.exec.bind(this));
|
|
14
|
+
}
|
|
15
|
+
async exec(appFunc) {
|
|
16
|
+
console.log(appFunc);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAErC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../src/constant/command/app/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,eAAe;;CAG3B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 全局已支持指令集合
|
|
3
|
+
*
|
|
4
|
+
* @author chitanda
|
|
5
|
+
* @date 2022-07-25 10:07:29
|
|
6
|
+
* @export
|
|
7
|
+
* @class CommandConst
|
|
8
|
+
*/
|
|
9
|
+
export declare class CommandConst {
|
|
10
|
+
/**
|
|
11
|
+
* 应用级指令
|
|
12
|
+
*
|
|
13
|
+
* @author chitanda
|
|
14
|
+
* @date 2022-07-25 10:07:16
|
|
15
|
+
*/
|
|
16
|
+
static readonly app: {
|
|
17
|
+
APP_FUNC_EXEC: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/constant/command/command.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,qBAAa,YAAY;IACvB;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,GAAG;;MAAmB;CACvC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AppCommandConst } from './app/app';
|
|
2
|
+
/**
|
|
3
|
+
* 全局已支持指令集合
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2022-07-25 10:07:29
|
|
7
|
+
* @export
|
|
8
|
+
* @class CommandConst
|
|
9
|
+
*/
|
|
10
|
+
export class CommandConst {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 应用级指令
|
|
14
|
+
*
|
|
15
|
+
* @author chitanda
|
|
16
|
+
* @date 2022-07-25 10:07:16
|
|
17
|
+
*/
|
|
18
|
+
CommandConst.app = AppCommandConst;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constant/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CommandConst } from './command/command';
|
package/out/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AAEjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
package/out/index.js
ADDED
package/out/install.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAI9B"}
|
package/out/install.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { install as useCore } from '@ibiz-template/core';
|
|
2
|
+
import { install as useService } from '@ibiz-template/service';
|
|
3
|
+
import { install as useController } from '@ibiz-template/controller';
|
|
4
|
+
/**
|
|
5
|
+
* 安装运行时
|
|
6
|
+
*
|
|
7
|
+
* @author chitanda
|
|
8
|
+
* @date 2022-07-25 11:07:26
|
|
9
|
+
* @export
|
|
10
|
+
*/
|
|
11
|
+
export function install() {
|
|
12
|
+
useCore();
|
|
13
|
+
useService();
|
|
14
|
+
useController();
|
|
15
|
+
}
|
package/out/types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CommandController } from '@ibiz-template/command';
|
|
2
|
+
declare module '@ibiz-template/core' {
|
|
3
|
+
interface IBizSys {
|
|
4
|
+
/**
|
|
5
|
+
* 认证服务
|
|
6
|
+
*
|
|
7
|
+
* @author chitanda
|
|
8
|
+
* @date 2022-07-20 10:07:33
|
|
9
|
+
* @type {AuthService}
|
|
10
|
+
*/
|
|
11
|
+
commands: CommandController;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf;;;;;;WAMG;QACH,QAAQ,EAAE,iBAAiB,CAAC;KAC7B;CACF"}
|
package/out/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ibiz-template/runtime",
|
|
3
|
+
"version": "0.0.1-alpha.1",
|
|
4
|
+
"description": "控制器包",
|
|
5
|
+
"main": "out/index.js",
|
|
6
|
+
"types": "out/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"out",
|
|
9
|
+
"src"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "tsc --watch",
|
|
13
|
+
"build": "npm run lint && npm run clean && tsc --build",
|
|
14
|
+
"lint": "eslint src/**/*.ts",
|
|
15
|
+
"lint:fix": "eslint --fix src/**/*.ts",
|
|
16
|
+
"clean": "rimraf out",
|
|
17
|
+
"publish:next": "npm run build && npm publish --access public --tag next",
|
|
18
|
+
"publish:npm": "npm run build && npm publish --access public"
|
|
19
|
+
},
|
|
20
|
+
"author": "chitanda",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@ibiz-template/core": "0.0.1-alpha.1",
|
|
24
|
+
"@ibiz-template/model": "0.0.1-alpha.1",
|
|
25
|
+
"@ibiz-template/command": "0.0.1-alpha.1",
|
|
26
|
+
"@ibiz-template/service": "0.0.1-alpha.1",
|
|
27
|
+
"@ibiz-template/controller": "0.0.1-alpha.1"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { commands } from '@ibiz-template/command';
|
|
2
|
+
import { IPSAppFunc } from '@ibiz-template/model';
|
|
3
|
+
import { CommandConst } from '../../../constant';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 执行应用功能
|
|
7
|
+
*
|
|
8
|
+
* @author chitanda
|
|
9
|
+
* @date 2022-07-25 11:07:07
|
|
10
|
+
* @export
|
|
11
|
+
* @class AppFuncCommand
|
|
12
|
+
*/
|
|
13
|
+
export class AppFuncCommand {
|
|
14
|
+
constructor() {
|
|
15
|
+
commands.register(CommandConst.app.APP_FUNC_EXEC, this.exec.bind(this));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async exec(appFunc: IPSAppFunc): Promise<void> {
|
|
19
|
+
console.log(appFunc);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AppCommandConst } from './app/app';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 全局已支持指令集合
|
|
5
|
+
*
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2022-07-25 10:07:29
|
|
8
|
+
* @export
|
|
9
|
+
* @class CommandConst
|
|
10
|
+
*/
|
|
11
|
+
export class CommandConst {
|
|
12
|
+
/**
|
|
13
|
+
* 应用级指令
|
|
14
|
+
*
|
|
15
|
+
* @author chitanda
|
|
16
|
+
* @date 2022-07-25 10:07:16
|
|
17
|
+
*/
|
|
18
|
+
static readonly app = AppCommandConst;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CommandConst } from './command/command';
|
package/src/index.ts
ADDED
package/src/install.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { install as useCore } from '@ibiz-template/core';
|
|
2
|
+
import { install as useService } from '@ibiz-template/service';
|
|
3
|
+
import { install as useController } from '@ibiz-template/controller';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 安装运行时
|
|
7
|
+
*
|
|
8
|
+
* @author chitanda
|
|
9
|
+
* @date 2022-07-25 11:07:26
|
|
10
|
+
* @export
|
|
11
|
+
*/
|
|
12
|
+
export function install(): void {
|
|
13
|
+
useCore();
|
|
14
|
+
useService();
|
|
15
|
+
useController();
|
|
16
|
+
}
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CommandController } from '@ibiz-template/command';
|
|
2
|
+
|
|
3
|
+
declare module '@ibiz-template/core' {
|
|
4
|
+
interface IBizSys {
|
|
5
|
+
/**
|
|
6
|
+
* 认证服务
|
|
7
|
+
*
|
|
8
|
+
* @author chitanda
|
|
9
|
+
* @date 2022-07-20 10:07:33
|
|
10
|
+
* @type {AuthService}
|
|
11
|
+
*/
|
|
12
|
+
commands: CommandController;
|
|
13
|
+
}
|
|
14
|
+
}
|