@gby/destroyable 1.0.0
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 +21 -0
- package/README.md +101 -0
- package/dist/Destroyable.d.ts +257 -0
- package/dist/Destroyable.d.ts.map +1 -0
- package/dist/DestroyableSub.d.ts +67 -0
- package/dist/DestroyableSub.d.ts.map +1 -0
- package/dist/createDestroyableSubClass.d.ts +82 -0
- package/dist/createDestroyableSubClass.d.ts.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +229 -0
- package/dist/index.umd.cjs +1 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/doc/api/destroyable.createdestroyablesubclass.md +76 -0
- package/doc/api/destroyable.destroyable._destroyers.md +13 -0
- package/doc/api/destroyable.destroyable._isdestroyed.md +11 -0
- package/doc/api/destroyable.destroyable.canceldispose.md +49 -0
- package/doc/api/destroyable.destroyable.canceldispose_1.md +49 -0
- package/doc/api/destroyable.destroyable.canceldispose_2.md +49 -0
- package/doc/api/destroyable.destroyable.canceldisposefun.md +52 -0
- package/doc/api/destroyable.destroyable.canceldisposeobj.md +52 -0
- package/doc/api/destroyable.destroyable.destroy.md +17 -0
- package/doc/api/destroyable.destroyable.destroyasync.md +21 -0
- package/doc/api/destroyable.destroyable.destroythis.md +21 -0
- package/doc/api/destroyable.destroyable.dispose.md +51 -0
- package/doc/api/destroyable.destroyable.dispose_1.md +65 -0
- package/doc/api/destroyable.destroyable.dispose_2.md +65 -0
- package/doc/api/destroyable.destroyable.disposefun.md +53 -0
- package/doc/api/destroyable.destroyable.disposeobj.md +68 -0
- package/doc/api/destroyable.destroyable.isdestroyed.md +13 -0
- package/doc/api/destroyable.destroyable.md +287 -0
- package/doc/api/destroyable.destroyablesub.md +15 -0
- package/doc/api/destroyable.destroyablesubclass.md +13 -0
- package/doc/api/destroyable.destroydestroyable.md +52 -0
- package/doc/api/destroyable.destroyobject.md +52 -0
- package/doc/api/destroyable.fundestroyer.md +13 -0
- package/doc/api/destroyable.md +225 -0
- package/doc/api/destroyable.nodedestroyable.md +33 -0
- package/doc/api/destroyable.nodedestroyableclass.md +15 -0
- package/doc/api/destroyable.throwondestroyed.md +17 -0
- package/doc/api/destroyable.webdestroyable.md +33 -0
- package/doc/api/destroyable.webdestroyableclass.md +15 -0
- package/doc/api/index.md +31 -0
- package/doc//346/225/231/347/250/213.md +7 -0
- package/package.json +72 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [destroyObject](./destroyable.destroyobject.md)
|
|
4
|
+
|
|
5
|
+
## destroyObject() function
|
|
6
|
+
|
|
7
|
+
销毁对象
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function destroyObject(object: any): boolean;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
object
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
any
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
</tbody></table>
|
|
48
|
+
**Returns:**
|
|
49
|
+
|
|
50
|
+
boolean
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [FunDestroyer](./destroyable.fundestroyer.md)
|
|
4
|
+
|
|
5
|
+
## FunDestroyer type
|
|
6
|
+
|
|
7
|
+
函数销毁者
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type FunDestroyer = () => void;
|
|
13
|
+
```
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gby/destroyable](./destroyable.md)
|
|
4
|
+
|
|
5
|
+
## destroyable package
|
|
6
|
+
|
|
7
|
+
可销毁的
|
|
8
|
+
|
|
9
|
+
## Remarks
|
|
10
|
+
|
|
11
|
+
@<!-- -->gby/destroyable 提供了用于构建可销毁对象的类的基类,用于使得地管理可销毁对象的生命周期
|
|
12
|
+
|
|
13
|
+
## Classes
|
|
14
|
+
|
|
15
|
+
<table><thead><tr><th>
|
|
16
|
+
|
|
17
|
+
Class
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
</th><th>
|
|
21
|
+
|
|
22
|
+
Description
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
</th></tr></thead>
|
|
26
|
+
<tbody><tr><td>
|
|
27
|
+
|
|
28
|
+
[Destroyable](./destroyable.destroyable.md)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
</td><td>
|
|
32
|
+
|
|
33
|
+
可销毁的对象
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
</td></tr>
|
|
37
|
+
</tbody></table>
|
|
38
|
+
|
|
39
|
+
## Functions
|
|
40
|
+
|
|
41
|
+
<table><thead><tr><th>
|
|
42
|
+
|
|
43
|
+
Function
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</th><th>
|
|
47
|
+
|
|
48
|
+
Description
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</th></tr></thead>
|
|
52
|
+
<tbody><tr><td>
|
|
53
|
+
|
|
54
|
+
[createDestroyableSubClass(ParentClass)](./destroyable.createdestroyablesubclass.md)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</td><td>
|
|
58
|
+
|
|
59
|
+
创建可销毁的子类
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</td></tr>
|
|
63
|
+
<tr><td>
|
|
64
|
+
|
|
65
|
+
[destroyDestroyable(object)](./destroyable.destroydestroyable.md)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
销毁 Destroyable 对象
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</td></tr>
|
|
74
|
+
<tr><td>
|
|
75
|
+
|
|
76
|
+
[destroyObject(object)](./destroyable.destroyobject.md)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
</td><td>
|
|
80
|
+
|
|
81
|
+
销毁对象
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td></tr>
|
|
85
|
+
<tr><td>
|
|
86
|
+
|
|
87
|
+
[throwOnDestroyed()](./destroyable.throwondestroyed.md)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
</td><td>
|
|
91
|
+
|
|
92
|
+
调用已销对象的时抛出错误
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
</td></tr>
|
|
96
|
+
</tbody></table>
|
|
97
|
+
|
|
98
|
+
## Variables
|
|
99
|
+
|
|
100
|
+
<table><thead><tr><th>
|
|
101
|
+
|
|
102
|
+
Variable
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
</th><th>
|
|
106
|
+
|
|
107
|
+
Description
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</th></tr></thead>
|
|
111
|
+
<tbody><tr><td>
|
|
112
|
+
|
|
113
|
+
[NodeDestroyable](./destroyable.nodedestroyable.md)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</td><td>
|
|
117
|
+
|
|
118
|
+
NodeDestroyable 类对象
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
</td></tr>
|
|
122
|
+
<tr><td>
|
|
123
|
+
|
|
124
|
+
[WebDestroyable](./destroyable.webdestroyable.md)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
</td><td>
|
|
128
|
+
|
|
129
|
+
WebDestroyable 类对象
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
</td></tr>
|
|
133
|
+
</tbody></table>
|
|
134
|
+
|
|
135
|
+
## Type Aliases
|
|
136
|
+
|
|
137
|
+
<table><thead><tr><th>
|
|
138
|
+
|
|
139
|
+
Type Alias
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
</th><th>
|
|
143
|
+
|
|
144
|
+
Description
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
</th></tr></thead>
|
|
148
|
+
<tbody><tr><td>
|
|
149
|
+
|
|
150
|
+
[DestroyableSub](./destroyable.destroyablesub.md)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
</td><td>
|
|
154
|
+
|
|
155
|
+
createDestroyableSubClass 创建的类的实例类型
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
</td></tr>
|
|
159
|
+
<tr><td>
|
|
160
|
+
|
|
161
|
+
[DestroyableSubClass](./destroyable.destroyablesubclass.md)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
</td><td>
|
|
165
|
+
|
|
166
|
+
createDestroyableSubClass 创建的类的类型
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
</td></tr>
|
|
170
|
+
<tr><td>
|
|
171
|
+
|
|
172
|
+
[FunDestroyer](./destroyable.fundestroyer.md)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
</td><td>
|
|
176
|
+
|
|
177
|
+
函数销毁者
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
</td></tr>
|
|
181
|
+
<tr><td>
|
|
182
|
+
|
|
183
|
+
[NodeDestroyable](./destroyable.nodedestroyable.md)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
</td><td>
|
|
187
|
+
|
|
188
|
+
NodeDestroyable 实例的类型
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
</td></tr>
|
|
192
|
+
<tr><td>
|
|
193
|
+
|
|
194
|
+
[NodeDestroyableClass](./destroyable.nodedestroyableclass.md)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
</td><td>
|
|
198
|
+
|
|
199
|
+
NodeDestroyable 类的类型
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
</td></tr>
|
|
203
|
+
<tr><td>
|
|
204
|
+
|
|
205
|
+
[WebDestroyable](./destroyable.webdestroyable.md)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
</td><td>
|
|
209
|
+
|
|
210
|
+
WebDestroyable 实例的类型
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
</td></tr>
|
|
214
|
+
<tr><td>
|
|
215
|
+
|
|
216
|
+
[WebDestroyableClass](./destroyable.webdestroyableclass.md)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
</td><td>
|
|
220
|
+
|
|
221
|
+
WebDestroyable 类的类型
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
</td></tr>
|
|
225
|
+
</tbody></table>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [NodeDestroyable](./destroyable.nodedestroyable.md)
|
|
4
|
+
|
|
5
|
+
## NodeDestroyable variable
|
|
6
|
+
|
|
7
|
+
NodeDestroyable 类对象
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
NodeDestroyable: {
|
|
13
|
+
new (...args: any): {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
readonly isDestroyed: boolean;
|
|
16
|
+
_isDestroyed: boolean;
|
|
17
|
+
_destroyers: import("./Destroyable").FunDestroyer[];
|
|
18
|
+
disposeFun<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
19
|
+
cancelDisposeFun<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
20
|
+
disposeObj<T extends /*elided*/ any>(obj: T, sync?: boolean): T;
|
|
21
|
+
cancelDisposeObj<T extends /*elided*/ any>(obj: T): T;
|
|
22
|
+
dispose<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
23
|
+
dispose<T extends /*elided*/ any>(obj: T, asyncDestroy?: boolean): T;
|
|
24
|
+
dispose<T extends import("./Destroyable").FunDestroyer | /*elided*/ any>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
25
|
+
cancelDispose<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
26
|
+
cancelDispose<T extends /*elided*/ any>(obj: T): T;
|
|
27
|
+
cancelDispose<T extends import("./Destroyable").FunDestroyer | /*elided*/ any>(objOrFun: T): T;
|
|
28
|
+
destroyThis(): void;
|
|
29
|
+
destroy(): true | undefined;
|
|
30
|
+
destroyAsync(): Promise<true | undefined>;
|
|
31
|
+
};
|
|
32
|
+
} & typeof EventEmitter
|
|
33
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [NodeDestroyableClass](./destroyable.nodedestroyableclass.md)
|
|
4
|
+
|
|
5
|
+
## NodeDestroyableClass type
|
|
6
|
+
|
|
7
|
+
NodeDestroyable 类的类型
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type NodeDestroyableClass = typeof NodeDestroyable;
|
|
13
|
+
```
|
|
14
|
+
**References:** [NodeDestroyable](./destroyable.nodedestroyable.md)
|
|
15
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [throwOnDestroyed](./destroyable.throwondestroyed.md)
|
|
4
|
+
|
|
5
|
+
## throwOnDestroyed() function
|
|
6
|
+
|
|
7
|
+
调用已销对象的时抛出错误
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function throwOnDestroyed(): void;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
void
|
|
17
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [WebDestroyable](./destroyable.webdestroyable.md)
|
|
4
|
+
|
|
5
|
+
## WebDestroyable variable
|
|
6
|
+
|
|
7
|
+
WebDestroyable 类对象
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
WebDestroyable: {
|
|
13
|
+
new (...args: any): {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
readonly isDestroyed: boolean;
|
|
16
|
+
_isDestroyed: boolean;
|
|
17
|
+
_destroyers: import("./Destroyable").FunDestroyer[];
|
|
18
|
+
disposeFun<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
19
|
+
cancelDisposeFun<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
20
|
+
disposeObj<T extends /*elided*/ any>(obj: T, sync?: boolean): T;
|
|
21
|
+
cancelDisposeObj<T extends /*elided*/ any>(obj: T): T;
|
|
22
|
+
dispose<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
23
|
+
dispose<T extends /*elided*/ any>(obj: T, asyncDestroy?: boolean): T;
|
|
24
|
+
dispose<T extends import("./Destroyable").FunDestroyer | /*elided*/ any>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
25
|
+
cancelDispose<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
26
|
+
cancelDispose<T extends /*elided*/ any>(obj: T): T;
|
|
27
|
+
cancelDispose<T extends import("./Destroyable").FunDestroyer | /*elided*/ any>(objOrFun: T): T;
|
|
28
|
+
destroyThis(): void;
|
|
29
|
+
destroy(): true | undefined;
|
|
30
|
+
destroyAsync(): Promise<true | undefined>;
|
|
31
|
+
};
|
|
32
|
+
} & typeof EventBus
|
|
33
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [WebDestroyableClass](./destroyable.webdestroyableclass.md)
|
|
4
|
+
|
|
5
|
+
## WebDestroyableClass type
|
|
6
|
+
|
|
7
|
+
WebDestroyable 类的类型
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type WebDestroyableClass = typeof WebDestroyable;
|
|
13
|
+
```
|
|
14
|
+
**References:** [WebDestroyable](./destroyable.webdestroyable.md)
|
|
15
|
+
|
package/doc/api/index.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md)
|
|
4
|
+
|
|
5
|
+
## API Reference
|
|
6
|
+
|
|
7
|
+
## Packages
|
|
8
|
+
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Package
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
</th><th>
|
|
15
|
+
|
|
16
|
+
Description
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
</th></tr></thead>
|
|
20
|
+
<tbody><tr><td>
|
|
21
|
+
|
|
22
|
+
[@gby/destroyable](./destroyable.md)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
</td><td>
|
|
26
|
+
|
|
27
|
+
可销毁的
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
</td></tr>
|
|
31
|
+
</tbody></table>
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gby/destroyable",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "@gby/destroyable 提供了用于构建可销毁对象的类的基类,用于使得地管理可销毁对象的生命周期",
|
|
5
|
+
"main": "./dist/index.umd.cjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
"require": "./dist/index.umd.cjs",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"homepage": "https://github.com/GuoBinyong/destroyable#readme",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/GuoBinyong/destroyable"
|
|
19
|
+
},
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/GuoBinyong/destroyable/issues",
|
|
22
|
+
"email": "guobinyong@qq.com"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"destroyable",
|
|
26
|
+
"destroy",
|
|
27
|
+
"销毁"
|
|
28
|
+
],
|
|
29
|
+
"author": {
|
|
30
|
+
"name": "郭斌勇",
|
|
31
|
+
"email": "guobinyong@qq.com"
|
|
32
|
+
},
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"files": [
|
|
35
|
+
"dist",
|
|
36
|
+
"types",
|
|
37
|
+
"docs/[^.]*",
|
|
38
|
+
"doc/[^.]*"
|
|
39
|
+
],
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@microsoft/api-documenter": "latest",
|
|
42
|
+
"@microsoft/api-extractor": "latest",
|
|
43
|
+
"@types/node": "^24.3.0",
|
|
44
|
+
"build-tls": "latest",
|
|
45
|
+
"dts-bundle-generator": "latest",
|
|
46
|
+
"package-tls": "latest",
|
|
47
|
+
"rollup-plugin-preserve-shebang": "latest",
|
|
48
|
+
"typescript": "latest",
|
|
49
|
+
"vite": "latest",
|
|
50
|
+
"vite-node": "latest"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@gby/event-bus": "^1.2.3"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"serve": "vite",
|
|
57
|
+
"dev": "vite-node -w src/index.ts",
|
|
58
|
+
"dev:bin": "vite-node src/bin.ts",
|
|
59
|
+
"build": "vite build",
|
|
60
|
+
"bunch": "vite build --mode bunch",
|
|
61
|
+
"debug": "debug=true vite build",
|
|
62
|
+
"debug:bunch": "debug=true vite build --mode bunch",
|
|
63
|
+
"exe": "bun build --compile --minify ./src/bin.ts --outfile ./exe/destroyable",
|
|
64
|
+
"exe:win": "bun build --compile --minify --target=bun-windows-x64 ./src/bin.ts --outfile ./exe/destroyable_win",
|
|
65
|
+
"exe:linux": "bun build --compile --minify --target=bun-linux-x64 ./src/bin.ts --outfile ./exe/destroyable_linux",
|
|
66
|
+
"exe:mac": "bun build --compile --minify --target=bun-darwin-arm64 ./src/bin.ts --outfile ./exe/destroyable_mac",
|
|
67
|
+
"preview": "vite preview",
|
|
68
|
+
"api": "api-extractor run -c api-extractor.jsonc -l -v",
|
|
69
|
+
"doc": "api-documenter markdown -i ./temp -o doc/api",
|
|
70
|
+
"apidoc": "npm run api ; npm run doc"
|
|
71
|
+
}
|
|
72
|
+
}
|