create-unibest 2.5.1 → 3.0.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/package.json CHANGED
@@ -1,59 +1,41 @@
1
1
  {
2
2
  "name": "create-unibest",
3
3
  "type": "module",
4
- "version": "2.5.1",
5
- "description": "快速创建 unibest 项目",
6
- "author": "菲鸽 <1020103647@qq.com>",
7
- "license": "MIT",
8
- "homepage": "https://github.com/feige996/create-unibest#readme",
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/feige996/create-unibest.git"
12
- },
13
- "bugs": "https://github.com/feige996/create-unibest/issues",
14
- "keywords": [
15
- "uni",
16
- "uni-app",
17
- "unibest",
18
- "create-unibest",
19
- "cli",
20
- "vue",
21
- "miniapp"
22
- ],
23
- "sideEffects": false,
4
+ "version": "3.0.1",
5
+ "description": "快速创建unibest项目的脚手架工具",
6
+ "author": "",
7
+ "license": "ISC",
8
+ "keywords": [],
9
+ "main": "dist/index.js",
24
10
  "bin": {
25
- "create-unibest": "outfile.cjs"
11
+ "best": "bin/index.js",
12
+ "create-unibest": "bin/index.js"
26
13
  },
27
14
  "files": [
28
- "outfile.cjs"
15
+ "bin",
16
+ "dist"
29
17
  ],
30
- "devDependencies": {
31
- "@antfu/ni": "^0.21.12",
32
- "@antfu/utils": "^0.7.7",
33
- "@types/ejs": "^3.1.5",
34
- "@types/minimist": "^1.2.5",
35
- "@types/node": "^18.19.11",
36
- "@types/prompts": "^2.4.9",
37
- "bumpp": "^9.3.0",
38
- "ejs": "^3.1.9",
39
- "esbuild": "^0.18.20",
40
- "kolorist": "^1.8.0",
41
- "minimist": "^1.2.8",
42
- "pnpm": "^8.15.1",
43
- "prompts": "^2.4.2",
44
- "simple-git-hooks": "^2.9.0",
45
- "typescript": "^5.3.3"
18
+ "scripts": {
19
+ "dev": "NODE_ENV=development tsup --watch",
20
+ "build": "NODE_ENV=production tsup",
21
+ "prepare": "NODE_ENV=production npm run build",
22
+ "start": "NODE_ENV=development node bin/index.js"
46
23
  },
47
24
  "dependencies": {
48
- "axios": "^1.9.0",
49
- "dayjs": "^1.11.13",
50
- "js-base64": "^3.7.7"
25
+ "@clack/prompts": "^0.11.0",
26
+ "dayjs": "^1.11.18",
27
+ "ejs": "^3.1.10",
28
+ "fs-extra": "^11.3.0",
29
+ "kolorist": "^1.8.0",
30
+ "minimist": "^1.2.8",
31
+ "node-fetch": "^3.3.2"
51
32
  },
52
- "scripts": {
53
- "build": "node scripts/build.js",
54
- "dev": "node outfile.cjs",
55
- "release": "bumpp",
56
- "typecheck": "tsc --noEmit",
57
- "up": "cd ./template && pnpx taze@latest major -w -r && cd ./base && pnpx @dcloudio/uvm@latest --manager pnpm"
33
+ "devDependencies": {
34
+ "@types/ejs": "^3.1.5",
35
+ "@types/fs-extra": "^11.0.4",
36
+ "@types/minimist": "^1.2.5",
37
+ "@types/node": "^24.5.0",
38
+ "tsup": "^8.5.0",
39
+ "typescript": "^5.9.0"
58
40
  }
59
- }
41
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 菲鸽
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,21 +0,0 @@
1
- # 调试
2
-
3
- - pnpm build
4
- - pnpm dev
5
-
6
- ## link 调试
7
- - sudo npm link
8
- - create-unibest xx -t base
9
- - create-unibest xx2
10
-
11
- ## 发布
12
- 因为已经有 github action,所以不需要手动发布,只需要修改版本号即可,并打tag然后推送到github 即可。
13
-
14
- ```bash
15
- # 先更新版本号
16
- npm version patch # 或 minor/major
17
-
18
- # 创建并推送tag(格式必须为v开头)
19
- git tag v1.x.x
20
- git push origin v1.x.x
21
- ```