vona-module-a-printtip 5.0.21 → 5.0.23
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/.metadata/index.d.ts +17 -0
- package/dist/bean/hmr.metaPrintTip.d.ts +6 -0
- package/dist/index.js +17 -6
- package/package.json +1 -1
|
@@ -16,6 +16,23 @@ declare module 'vona-module-a-printtip' {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
/** startup: end */
|
|
19
|
+
/** hmr: begin */
|
|
20
|
+
export * from '../bean/hmr.metaPrintTip.ts';
|
|
21
|
+
import 'vona';
|
|
22
|
+
declare module 'vona' {
|
|
23
|
+
interface IHmrRecord {
|
|
24
|
+
'a-printtip:metaPrintTip': never;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
declare module 'vona-module-a-printtip' {
|
|
28
|
+
interface HmrMetaPrintTip {
|
|
29
|
+
}
|
|
30
|
+
interface HmrMetaPrintTip {
|
|
31
|
+
get $beanFullName(): 'a-printtip.hmr.metaPrintTip';
|
|
32
|
+
get $onionName(): 'a-printtip:metaPrintTip';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/** hmr: end */
|
|
19
36
|
/** config: begin */
|
|
20
37
|
export * from '../config/config.ts';
|
|
21
38
|
import type { config } from '../config/config.ts';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IDecoratorBeanOptionsBase } from 'vona';
|
|
2
|
+
import type { IHmrReload } from 'vona-module-a-hmr';
|
|
3
|
+
import { BeanBase } from 'vona';
|
|
4
|
+
export declare class HmrMetaPrintTip extends BeanBase implements IHmrReload {
|
|
5
|
+
reload(_beanOptions: IDecoratorBeanOptionsBase): Promise<void>;
|
|
6
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { BeanInfo, BeanBase, BeanScopeBase } from 'vona';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import { Startup } from 'vona-module-a-startup';
|
|
4
|
+
import { Hmr } from 'vona-module-a-hmr';
|
|
4
5
|
import { Scope } from 'vona-module-a-bean';
|
|
5
6
|
|
|
6
|
-
var _dec$
|
|
7
|
+
var _dec$2, _dec2$2, _class$2;
|
|
7
8
|
const __tipBegin = '=================== tip: begin ===================';
|
|
8
9
|
const __tipEnd = '=================== tip: end =====================';
|
|
9
|
-
let StartupPrintTip = (_dec$
|
|
10
|
+
let StartupPrintTip = (_dec$2 = Startup({
|
|
10
11
|
instance: true,
|
|
11
12
|
debounce: true,
|
|
12
13
|
after: true,
|
|
13
14
|
meta: {
|
|
14
15
|
mode: 'dev'
|
|
15
|
-
}
|
|
16
|
-
|
|
16
|
+
},
|
|
17
|
+
dependencies: 'a-runtime:runtime'
|
|
18
|
+
}), _dec2$2 = BeanInfo({
|
|
17
19
|
module: "a-printtip"
|
|
18
|
-
}), _dec$
|
|
20
|
+
}), _dec$2(_class$2 = _dec2$2(_class$2 = class StartupPrintTip extends BeanBase {
|
|
19
21
|
async execute() {
|
|
20
22
|
if (this.app.meta.env.LOGGER_DUMMY === 'true') return;
|
|
21
23
|
setTimeout(async () => {
|
|
@@ -42,6 +44,15 @@ let StartupPrintTip = (_dec$1 = Startup({
|
|
|
42
44
|
const text = `\n${chalk.yellow(__tipBegin)}\n${message}\n${chalk.yellow(__tipEnd)}`;
|
|
43
45
|
this.$logger.silly(text);
|
|
44
46
|
}
|
|
47
|
+
}) || _class$2) || _class$2);
|
|
48
|
+
|
|
49
|
+
var _dec$1, _dec2$1, _class$1;
|
|
50
|
+
let HmrMetaPrintTip = (_dec$1 = Hmr(), _dec2$1 = BeanInfo({
|
|
51
|
+
module: "a-printtip"
|
|
52
|
+
}), _dec$1(_class$1 = _dec2$1(_class$1 = class HmrMetaPrintTip extends BeanBase {
|
|
53
|
+
async reload(_beanOptions) {
|
|
54
|
+
await this.bean.instance.reloadWorker('');
|
|
55
|
+
}
|
|
45
56
|
}) || _class$1) || _class$1);
|
|
46
57
|
|
|
47
58
|
function config(_app) {
|
|
@@ -57,4 +68,4 @@ let ScopeModuleAPrinttip = (_dec = Scope(), _dec2 = BeanInfo({
|
|
|
57
68
|
|
|
58
69
|
/** scope: end */
|
|
59
70
|
|
|
60
|
-
export { ScopeModuleAPrinttip, StartupPrintTip, config };
|
|
71
|
+
export { HmrMetaPrintTip, ScopeModuleAPrinttip, StartupPrintTip, config };
|