mbler 0.2.4-rc.7 → 0.2.7-rc.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/README.md +48 -41
- package/bin/mbler.js +3 -3
- package/bin/mcx-tsc.js +1 -1
- package/dist/build.d.ts +13 -1
- package/dist/build.esm.mjs +342 -335
- package/dist/build.esm.mjs.map +1 -1
- package/dist/build.js +345 -337
- package/dist/build.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.esm.mjs +510 -693
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.js +496 -679
- package/dist/index.js.map +1 -1
- package/dist/template/mcx/behavior/scripts/event/test.ts +1 -1
- package/dist/template/mcx/behavior/scripts/index.ts +5 -5
- package/dist/template/ts/behavior/scripts/index.ts +1 -1
- package/package.json +19 -11
package/README.md
CHANGED
|
@@ -1,41 +1,48 @@
|
|
|
1
|
-
# MBLER
|
|
2
|
-
|
|
3
|
-
###
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- MCX DSL
|
|
8
|
-
-
|
|
9
|
-
- Bundle
|
|
10
|
-
- Component build
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
# MBLER
|
|
2
|
+
|
|
3
|
+
### Introduction
|
|
4
|
+
|
|
5
|
+
A development tool for Minecraft Addon based on Rolldown, featuring:
|
|
6
|
+
|
|
7
|
+
- MCX DSL
|
|
8
|
+
- Manifest Generator
|
|
9
|
+
- Bundle
|
|
10
|
+
- Component build
|
|
11
|
+
|
|
12
|
+
## About repo
|
|
13
|
+
|
|
14
|
+
[MCX CORE](https://github.com/RuanhoR/mcx-core) | [MCX Language Server](https://github.com/RuanhoR/mcx-language-server) | [MCX Template](https://github.com/RuanhoR/mcx-template) | [MNX Market](https://github.com/RuanhoR/mnx)
|
|
15
|
+
|
|
16
|
+
### Installation
|
|
17
|
+
|
|
18
|
+
Ensure you have the following tools installed:
|
|
19
|
+
|
|
20
|
+
- Node.js and npm
|
|
21
|
+
- Git
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install -g mbler
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
After installation, you can use it directly:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Get version
|
|
31
|
+
mbler -v
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Initialize directory configuration file:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
mbler init
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
For details, see: [Documentation](https://mbler-docs.ruanhor.dpdns.org/)
|
|
41
|
+
|
|
42
|
+
### Release Platforms
|
|
43
|
+
|
|
44
|
+
[github](https://github.com/RuanhoR/mbler) | [gitee](https://gitee.com/n304sc-haoran/mbler.git) | [npm](https://npmjs.com/package/mbler)
|
|
45
|
+
|
|
46
|
+
## Documentation
|
|
47
|
+
|
|
48
|
+
[中文](https://zh-mbler-docs.ruanhor.dpdns.org/) | [English](https://mbler-docs.ruanhor.dpdns.org/) | [한국어](./README_ko.md) | [日本語](./README_ja.md)
|
package/bin/mbler.js
CHANGED
package/bin/mcx-tsc.js
CHANGED
package/dist/build.d.ts
CHANGED
|
@@ -16,7 +16,9 @@ interface MblerConfigOutdir {
|
|
|
16
16
|
}
|
|
17
17
|
interface MblerBuildConfig {
|
|
18
18
|
rollupPlugins: Plugin[];
|
|
19
|
+
rollupExternal: string[];
|
|
19
20
|
cache: 'none' | 'memory' | 'file' | 'filesystem' | 'auto';
|
|
21
|
+
cachePath: string;
|
|
20
22
|
bundle: boolean;
|
|
21
23
|
onEnd: (ctx: MblerConfigData) => void | Promise<void>;
|
|
22
24
|
onStart: (ctx: MblerConfigData) => void | Promise<void>;
|
|
@@ -37,6 +39,16 @@ interface CliParam {
|
|
|
37
39
|
opts: Record<string, string>;
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Compare two dotted version strings ("major.minor.patch").
|
|
44
|
+
* Returns negative if a < b, positive if a > b, zero if equal.
|
|
45
|
+
*/
|
|
46
|
+
declare const Sapi: () => {
|
|
47
|
+
refresh: () => Promise<void>;
|
|
48
|
+
generateVersion: (module: "@minecraft/server-ui" | "@minecraft/server", mcVersion: string, isBeta: boolean, withFull: boolean) => Promise<string>;
|
|
49
|
+
};
|
|
50
|
+
declare const _default: ReturnType<typeof Sapi>;
|
|
51
|
+
|
|
40
52
|
/**
|
|
41
53
|
* 运行 MCX TypeScript 编译器
|
|
42
54
|
* 为 .mcx 文件提供 TypeScript 类型检查支持
|
|
@@ -153,4 +165,4 @@ declare class Build {
|
|
|
153
165
|
declare function build(cliParam: CliParam, work: string): Promise<number>;
|
|
154
166
|
declare function watch(cliParam: CliParam, work: string): Promise<number>;
|
|
155
167
|
|
|
156
|
-
export { Build, runTSC as McxTsc, build, watch };
|
|
168
|
+
export { Build, runTSC as McxTsc, _default as Sapi, build, watch };
|