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 CHANGED
@@ -1,41 +1,48 @@
1
- # MBLER
2
-
3
- ### 介绍
4
-
5
- 一个基于Rooldown的Minecraft Addon的开发工具,功能包括
6
-
7
- - MCX DSL
8
- - Manfiest Generator
9
- - Bundle
10
- - Component build
11
-
12
- ### 安装
13
-
14
- 确保你已经安装以下工具:
15
-
16
- - Node.js 与 npm
17
- - Git
18
- - npm
19
- `npm install -g mbler`
20
- 安装成功后,你可以直接使用:
21
-
22
- ```bash
23
- # 获取版本
24
- mbler -v
25
- ```
26
-
27
- 初始化目录配置文件
28
-
29
- ```bash
30
- mbler init
31
- ```
32
-
33
- 详细请看 : [文档](https://mbler-docs.ruanhor.dpdns.org/)
34
-
35
- ### 发布平台
36
-
37
- [github](https://github.com/RuanhoR/mbler) | [gitee](https://gitee.com/n304sc-haoran/mbler.git) | [npm](https://npmjs.com/package/mbler)
38
-
39
- ## 文档
40
-
41
- [中文](https://zh-mbler-docs.ruanhor.dpdns.org/) | [English](./README_en.md) | [한국어](./README_ko.md) | [日本語](./README_ja.md)
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
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- const mbler = require("./../dist");
2
+ const mbler = require('./../dist')
3
3
 
4
4
  /**
5
5
  * @license MIT
6
6
  * @link https://github.com/RuanhoR/mbler
7
- */
8
- mbler.cli();
7
+ */
8
+ mbler.cli()
package/bin/mcx-tsc.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- require("mbler/build").McxTsc()
3
+ require('mbler/build').McxTsc()
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 };