@xunlei-open/create-miniapp 0.1.1-beta.8 → 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/README.md CHANGED
@@ -29,6 +29,6 @@ npm run package
29
29
 
30
30
  开发时在迅雷客户端中加载本地应用的目录,保持 dev server 运行。打包结果位于 `output/`。
31
31
 
32
- 生成项目包含创建下载任务的页面示例。应用信息和权限在 `manifest.json` 中配置,开发与构建配置使用 `miniapp.config.ts` 或 `.js`。
32
+ 生成项目包含创建下载任务的页面示例。所有模板使用 `900 × 600` 的窗口内容尺寸;`entry.type` 省略,使用默认的 `miniapp` 入口。应用信息和权限在 `manifest.json` 中配置,开发与构建配置使用 `miniapp.config.ts` 或 `.js`。
33
33
 
34
34
  [项目入口](https://github.com/xunlei-open/miniapp-devkit#readme) · [官方文档](https://open.xunlei.com/doc/miniapp/introduction)
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import fs from "fs-extra";
9
9
  import validate from "validate-npm-package-name";
10
10
  import { checkbox, confirm, input, select } from "@inquirer/prompts";
11
11
  //#region package.json
12
- var version = "0.1.1-beta.8";
12
+ var version = "1.0.0";
13
13
  //#endregion
14
14
  //#region src/utils.ts
15
15
  function toPackageName(input) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xunlei-open/create-miniapp",
3
- "version": "0.1.1-beta.8",
3
+ "version": "1.0.0",
4
4
  "description": "Create a Xunlei Miniapp with Vanilla, Vue, or React",
5
5
  "type": "module",
6
6
  "bin": {
@@ -5,12 +5,11 @@
5
5
  "description": "一个迅雷微应用示例",
6
6
  "version": "1.0.0",
7
7
  "entry": {
8
- "type": "miniapp",
9
8
  "url": "index.html"
10
9
  },
11
10
  "window": {
12
11
  "width": 900,
13
- "height": 700
12
+ "height": 600
14
13
  },
15
14
  "permissions": ["tasks.create"]
16
15
  }
@@ -5,12 +5,11 @@
5
5
  "description": "一个迅雷微应用示例",
6
6
  "version": "1.0.0",
7
7
  "entry": {
8
- "type": "miniapp",
9
8
  "url": "index.html"
10
9
  },
11
10
  "window": {
12
11
  "width": 900,
13
- "height": 700
12
+ "height": 600
14
13
  },
15
14
  "permissions": ["tasks.create"]
16
15
  }
@@ -5,12 +5,11 @@
5
5
  "description": "一个迅雷微应用示例",
6
6
  "version": "1.0.0",
7
7
  "entry": {
8
- "type": "miniapp",
9
8
  "url": "index.html"
10
9
  },
11
10
  "window": {
12
11
  "width": 900,
13
- "height": 700
12
+ "height": 600
14
13
  },
15
14
  "permissions": ["tasks.create"]
16
15
  }
@@ -5,12 +5,11 @@
5
5
  "description": "一个迅雷微应用示例",
6
6
  "version": "1.0.0",
7
7
  "entry": {
8
- "type": "miniapp",
9
8
  "url": "index.html"
10
9
  },
11
10
  "window": {
12
11
  "width": 900,
13
- "height": 700
12
+ "height": 600
14
13
  },
15
14
  "permissions": ["tasks.create"]
16
15
  }
@@ -5,12 +5,11 @@
5
5
  "description": "一个迅雷微应用示例",
6
6
  "version": "1.0.0",
7
7
  "entry": {
8
- "type": "miniapp",
9
8
  "url": "index.html"
10
9
  },
11
10
  "window": {
12
11
  "width": 900,
13
- "height": 700
12
+ "height": 600
14
13
  },
15
14
  "permissions": ["tasks.create"]
16
15
  }
@@ -5,12 +5,11 @@
5
5
  "description": "一个迅雷微应用示例",
6
6
  "version": "1.0.0",
7
7
  "entry": {
8
- "type": "miniapp",
9
8
  "url": "index.html"
10
9
  },
11
10
  "window": {
12
11
  "width": 900,
13
- "height": 700
12
+ "height": 600
14
13
  },
15
14
  "permissions": ["tasks.create"]
16
15
  }