@doubao-apps/kit 0.0.18-canary-d3f0f27b-20260319141130

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/LICENCE ADDED
@@ -0,0 +1,10 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the " Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
+
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # @doubao-apps/kit
2
+
3
+ `@doubao-apps/kit` 是面向 npm 公开发布的 Doubao Apps 构建工具包。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add -D @doubao-apps/kit typescript
9
+ ```
10
+
11
+ ## 快速开始
12
+
13
+ ### 配置脚本
14
+
15
+ ```json
16
+ {
17
+ "scripts": {
18
+ "dev": "doubao dev",
19
+ "build": "doubao build",
20
+ "analyze": "doubao analyze"
21
+ }
22
+ }
23
+ ```
package/bin/index.js ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { prepareCli } from '../dist/cli/index.js';
4
+
5
+ async function main() {
6
+ prepareCli();
7
+
8
+ try {
9
+ const { runCli } = await import('../dist/cli/index.js');
10
+ runCli();
11
+ } catch (err) {
12
+ const { logger } = await import('@rsbuild/core');
13
+ logger.error(err);
14
+ }
15
+ }
16
+
17
+ main();