create-soybean 1.6.1 → 1.7.0-beta.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 SoybeanJS
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.
@@ -0,0 +1,53 @@
1
+ # create-soybean
2
+
3
+ [简体中文](./README.md) | English
4
+
5
+ The official scaffolding tool by [SoybeanJS](https://github.com/soybeanjs) for quickly creating different project templates.
6
+
7
+ ## Usage
8
+
9
+ **npm**
10
+
11
+ ```bash
12
+ npm create soybean@latest
13
+ ```
14
+
15
+ **pnpm**
16
+
17
+ ```bash
18
+ pnpm create soybean@latest
19
+ ```
20
+
21
+ **yarn**
22
+
23
+ ```bash
24
+ yarn create soybean@latest
25
+ ```
26
+
27
+ **bun**
28
+
29
+ ```bash
30
+ bun create soybean@latest
31
+ ```
32
+
33
+ You can also specify the project name and template directly:
34
+
35
+ ```bash
36
+ # Specify project directory
37
+ npm create soybean@latest my-project
38
+
39
+ # Specify template
40
+ npm create soybean@latest my-project -- --template vue
41
+ ```
42
+
43
+ ## Available Templates
44
+
45
+ | Template | Description |
46
+ | ------------ | ---------------------------------------------- |
47
+ | `tsdown` | TypeScript library (built with tsdown) |
48
+ | `vue` | Vue 3 project |
49
+ | `vue-tsdown` | Vue 3 + TypeScript library (built with tsdown) |
50
+
51
+ ## License
52
+
53
+ [MIT](./LICENSE)
package/README.md CHANGED
@@ -1,10 +1,53 @@
1
1
  # create-soybean
2
2
 
3
- SoybeanJS's command line to create different project templates
3
+ 简体中文 | [English](./README.en_US.md)
4
4
 
5
- ## currently support
5
+ [SoybeanJS](https://github.com/soybeanjs) 官方脚手架工具,用于快速创建不同类型的项目模板。
6
6
 
7
- - template-pnpm-monorepo: create a monorepo project with pnpm
8
- - template-tsdown: create a ts library project quickly with tsdown
9
- - template-vue: create a vue project quickly
10
- - template-vue-tsdown: create a vue library project quickly with tsdown
7
+ ## 使用方式
8
+
9
+ **npm**
10
+
11
+ ```bash
12
+ npm create soybean@latest
13
+ ```
14
+
15
+ **pnpm**
16
+
17
+ ```bash
18
+ pnpm create soybean@latest
19
+ ```
20
+
21
+ **yarn**
22
+
23
+ ```bash
24
+ yarn create soybean@latest
25
+ ```
26
+
27
+ **bun**
28
+
29
+ ```bash
30
+ bun create soybean@latest
31
+ ```
32
+
33
+ 也可以直接指定项目名称和模板:
34
+
35
+ ```bash
36
+ # 指定项目目录
37
+ npm create soybean@latest my-project
38
+
39
+ # 指定模板
40
+ npm create soybean@latest my-project -- --template vue
41
+ ```
42
+
43
+ ## 可用模板
44
+
45
+ | 模板 | 描述 |
46
+ | ------------ | --------------------------------------- |
47
+ | `tsdown` | TypeScript 库(由 tsdown 构建) |
48
+ | `vue` | Vue 3 项目 |
49
+ | `vue-tsdown` | Vue 3 + TypeScript 库(由 tsdown 构建) |
50
+
51
+ ## License
52
+
53
+ [MIT](./LICENSE)
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.js CHANGED
@@ -147,5 +147,4 @@ async function setupCli() {
147
147
  }
148
148
  setupCli();
149
149
 
150
- //#endregion
151
- export { };
150
+ //#endregion
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "create-soybean",
3
- "version": "1.6.1",
4
- "description": "SoybeanJS's command line to create different project templates",
5
- "homepage": "https://github.com/soybeanjs/cli/tree/main/packages/create-soybean",
3
+ "version": "1.7.0-beta.2",
4
+ "description": "The official scaffolding tool by SoybeanJS for quickly creating different project templates.",
5
+ "homepage": "https://github.com/soybeanjs/create-soybean",
6
6
  "bugs": {
7
- "url": "https://github.com/soybeanjs/cli/issues"
7
+ "url": "https://github.com/soybeanjs/create-soybean/issues"
8
8
  },
9
9
  "license": "MIT",
10
10
  "author": {
@@ -13,7 +13,7 @@
13
13
  "url": "https://github.com/soybeanjs"
14
14
  },
15
15
  "repository": {
16
- "url": "https://github.com/soybeanjs/cli.git"
16
+ "url": "https://github.com/soybeanjs/create-soybean.git"
17
17
  },
18
18
  "bin": {
19
19
  "create-soybean": "dist/index.js"
@@ -23,25 +23,56 @@
23
23
  "template-*"
24
24
  ],
25
25
  "type": "module",
26
+ "main": "./dist/index.js",
27
+ "module": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.js",
33
+ "require": "./dist/index.js"
34
+ }
35
+ },
26
36
  "publishConfig": {
27
37
  "registry": "https://registry.npmjs.org/"
28
38
  },
29
39
  "dependencies": {
30
- "consola": "3.4.2",
31
- "kolorist": "1.8.0",
32
- "minimist": "1.2.8",
33
- "prompts": "2.4.2"
40
+ "consola": "^3.4.2",
41
+ "kolorist": "^1.8.0",
42
+ "minimist": "^1.2.8",
43
+ "prompts": "^2.4.2"
34
44
  },
35
45
  "devDependencies": {
36
- "@types/minimist": "1.2.5",
37
- "@types/prompts": "2.4.9",
38
- "tsdown": "0.21.0",
39
- "typescript": "5.9.3"
46
+ "@soybeanjs/cli": "^1.7.0",
47
+ "@types/minimist": "^1.2.5",
48
+ "@types/node": "^25.5.0",
49
+ "@types/prompts": "^2.4.9",
50
+ "lint-staged": "^16.4.0",
51
+ "oxfmt": "^0.41.0",
52
+ "oxlint": "^1.56.0",
53
+ "simple-git-hooks": "^2.13.1",
54
+ "tsdown": "^0.21.4",
55
+ "tsx": "^4.21.0",
56
+ "typescript": "^5.9.3"
57
+ },
58
+ "simple-git-hooks": {
59
+ "commit-msg": "pnpm soy git-commit-verify",
60
+ "pre-commit": "pnpm typecheck && pnpm lint-staged"
61
+ },
62
+ "lint-staged": {
63
+ "*": "oxlint --fix && oxfmt"
40
64
  },
41
65
  "scripts": {
42
- "build": "pnpm typecheck && pnpm build-only",
43
- "build-only": "tsdown",
44
- "publish-pkg": "pnpm publish --access public --no-git-checks",
45
- "typecheck": "tsc --noEmit --skipLibCheck"
66
+ "build": "tsdown",
67
+ "cleanup": "soy cleanup",
68
+ "commit": "soy git-commit",
69
+ "lint": "oxlint --fix && oxfmt",
70
+ "fmt": "oxfmt",
71
+ "publish-pkg": "pnpm publish --access public",
72
+ "release": "soy release -e 'pnpm release-execute'",
73
+ "release-execute": "tsx ./scripts/release.ts && pnpm soy changelog",
74
+ "typecheck": "tsc --noEmit --skipLibCheck",
75
+ "upkg": "soy ncu",
76
+ "rei": "pnpm cleanup && pnpm i"
46
77
  }
47
78
  }
@@ -12,15 +12,15 @@ jobs:
12
12
  contents: write
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v6
16
16
  with:
17
17
  fetch-depth: 0
18
18
 
19
19
  - name: Install pnpm
20
- uses: pnpm/action-setup@v2
20
+ uses: pnpm/action-setup@v5
21
21
 
22
22
  - name: Set node
23
- uses: actions/setup-node@v3
23
+ uses: actions/setup-node@v6
24
24
  with:
25
25
  node-version: lts/*
26
26
  cache: pnpm
@@ -41,6 +41,3 @@ jobs:
41
41
  env:
42
42
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
43
43
  NPM_CONFIG_PROVENANCE: true
44
-
45
- - name: Sync Npmmirror
46
- run: npx syncmirror
@@ -4,6 +4,7 @@
4
4
  "mhutchie.git-graph",
5
5
  "mikestead.dotenv",
6
6
  "naumovs.color-highlight",
7
+ "oxc.oxc-vscode",
7
8
  "pkief.material-icon-theme",
8
9
  "sdras.vue-vscode-snippets",
9
10
  "vue.volar",
@@ -1,20 +1,2 @@
1
- "*.js" eol=lf
2
- "*.ts" eol=lf
3
- "*.jsx" eol=lf
4
- "*.tsx" eol=lf
5
- "*.cjs" eol=lf
6
- "*.cts" eol=lf
7
- "*.mjs" eol=lf
8
- "*.mts" eol=lf
9
- "*.html" eol=lf
10
- "*.css" eol=lf
11
- "*.vue" eol=lf
12
- "*.json" eol=lf
13
- "*.less" eol=lf
14
- "*.scss" eol=lf
15
- "*.sass" eol=lf
16
- "*.svelte" eol=lf
17
- "*.md" eol=lf
18
- "*.yml" eol=lf
19
- "*.astro" eol=lf
20
- "*.mdx" eol=lf
1
+ * text=auto
2
+ *.* text eol=lf
@@ -13,6 +13,7 @@ dist
13
13
  dist-ssr
14
14
  coverage
15
15
  *.local
16
+ stats.html
16
17
 
17
18
  /cypress/videos/
18
19
  /cypress/screenshots/
@@ -23,25 +23,25 @@
23
23
  "build": "tsdown",
24
24
  "cleanup": "soy cleanup",
25
25
  "commit": "soy git-commit",
26
- "lint": "oxlint --fix && oxfmt",
26
+ "lint": "oxlint --fix",
27
27
  "fmt": "oxfmt",
28
28
  "prepare": "simple-git-hooks",
29
29
  "publish-pkg": "pnpm publish --access public",
30
30
  "release": "soy release",
31
31
  "typecheck": "tsc --noEmit --skipLibCheck",
32
- "upkg": "soy update-pkg"
32
+ "upkg": "soy ncu"
33
33
  },
34
34
  "dependencies": {},
35
35
  "devDependencies": {
36
- "@soybeanjs/cli": "1.6.1",
37
- "@types/node": "25.3.3",
38
- "lint-staged": "16.3.2",
39
- "oxfmt": "^0.36.0",
40
- "oxlint": "^1.51.0",
41
- "simple-git-hooks": "2.13.1",
42
- "tsdown": "0.21.0",
43
- "tsx": "4.21.0",
44
- "typescript": "5.9.3"
36
+ "@soybeanjs/cli": "^1.7.0",
37
+ "@types/node": "^25.5.0",
38
+ "lint-staged": "^16.4.0",
39
+ "oxfmt": "^0.41.0",
40
+ "oxlint": "^1.56.0",
41
+ "simple-git-hooks": "^2.13.1",
42
+ "tsdown": "^0.21.4",
43
+ "tsx": "^4.21.0",
44
+ "typescript": "^5.9.3"
45
45
  },
46
46
  "simple-git-hooks": {
47
47
  "commit-msg": "pnpm soy git-commit-verify",
@@ -50,5 +50,5 @@
50
50
  "lint-staged": {
51
51
  "*": "oxlint --fix && oxfmt"
52
52
  },
53
- "packageManager": "pnpm@10.30.3"
53
+ "packageManager": "pnpm@10.32.1"
54
54
  }
@@ -7,6 +7,7 @@
7
7
  "mhutchie.git-graph",
8
8
  "mikestead.dotenv",
9
9
  "naumovs.color-highlight",
10
+ "oxc.oxc-vscode",
10
11
  "pkief.material-icon-theme",
11
12
  "sdras.vue-vscode-snippets",
12
13
  "vue.volar",
@@ -1,21 +1,2 @@
1
- "*.js" eol=lf
2
- "*.ts" eol=lf
3
- "*.jsx" eol=lf
4
- "*.tsx" eol=lf
5
- "*.cjs" eol=lf
6
- "*.cts" eol=lf
7
- "*.mjs" eol=lf
8
- "*.mts" eol=lf
9
- "*.html" eol=lf
10
- "*.css" eol=lf
11
- "*.vue" eol=lf
12
- "*.json" eol=lf
13
- "*.less" eol=lf
14
- "*.scss" eol=lf
15
- "*.sass" eol=lf
16
- "*.svelte" eol=lf
17
- "*.md" eol=lf
18
- "*.yml" eol=lf
19
- "*.yaml" eol=lf
20
- "*.astro" eol=lf
21
- "*.mdx" eol=lf
1
+ * text=auto
2
+ *.* text eol=lf
@@ -1,3 +1 @@
1
1
  shamefully-hoist=true
2
- ignore-workspace-root-check=true
3
- link-workspace-packages=true
@@ -16,29 +16,29 @@
16
16
  "upkg": "soy ncu"
17
17
  },
18
18
  "dependencies": {
19
- "@soybeanjs/ui": "0.9.3",
20
- "@unocss/reset": "66.6.5",
21
- "klona": "2.0.6",
22
- "pinia": "3.0.4",
23
- "vue": "3.5.29",
24
- "vue-router": "5.0.3"
19
+ "@soybeanjs/ui": "^0.12.4",
20
+ "@unocss/reset": "^66.6.7",
21
+ "klona": "^2.0.6",
22
+ "pinia": "^3.0.4",
23
+ "vue": "^3.5.30",
24
+ "vue-router": "^5.0.4"
25
25
  },
26
26
  "devDependencies": {
27
- "@soybeanjs/cli": "1.6.1",
28
- "@soybeanjs/unocss-preset": "0.2.0",
29
- "@types/node": "25.3.3",
30
- "@vitejs/plugin-vue": "6.0.4",
31
- "@vitejs/plugin-vue-jsx": "5.1.4",
32
- "elegant-router": "1.3.0",
33
- "lint-staged": "16.3.2",
34
- "oxfmt": "^0.36.0",
35
- "oxlint": "^1.51.0",
36
- "simple-git-hooks": "2.13.1",
37
- "typescript": "5.9.3",
38
- "unocss": "66.6.5",
39
- "unplugin-vue-components": "31.0.0",
40
- "vite": "7.3.1",
41
- "vue-tsc": "3.2.5"
27
+ "@soybeanjs/cli": "^1.7.0",
28
+ "@soybeanjs/unocss-preset": "^0.2.0",
29
+ "@types/node": "^25.5.0",
30
+ "@vitejs/plugin-vue": "^6.0.5",
31
+ "@vitejs/plugin-vue-jsx": "^5.1.5",
32
+ "elegant-router": "^1.3.0",
33
+ "lint-staged": "^16.4.0",
34
+ "oxfmt": "^0.41.0",
35
+ "oxlint": "^1.56.0",
36
+ "simple-git-hooks": "^2.13.1",
37
+ "typescript": "^5.9.3",
38
+ "unocss": "^66.6.7",
39
+ "unplugin-vue-components": "^31.0.0",
40
+ "vite": "^8.0.1",
41
+ "vue-tsc": "^3.2.6"
42
42
  },
43
43
  "simple-git-hooks": {
44
44
  "commit-msg": "pnpm soy git-commit-verify",
@@ -47,5 +47,5 @@
47
47
  "lint-staged": {
48
48
  "*": "oxlint --fix && oxfmt"
49
49
  },
50
- "packageManager": "pnpm@10.30.3"
50
+ "packageManager": "pnpm@10.32.1"
51
51
  }
@@ -7,7 +7,6 @@
7
7
  "module": "ESNext",
8
8
  "moduleResolution": "Bundler",
9
9
  "resolveJsonModule": true,
10
- "types": ["node", "vite/client"],
11
10
  "strict": true,
12
11
  "strictNullChecks": true,
13
12
  "noImplicitThis": true,
@@ -12,15 +12,15 @@ jobs:
12
12
  contents: write
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v6
16
16
  with:
17
17
  fetch-depth: 0
18
18
 
19
19
  - name: Install pnpm
20
- uses: pnpm/action-setup@v2
20
+ uses: pnpm/action-setup@v5
21
21
 
22
22
  - name: Set node
23
- uses: actions/setup-node@v3
23
+ uses: actions/setup-node@v6
24
24
  with:
25
25
  node-version: lts/*
26
26
  cache: pnpm
@@ -41,6 +41,3 @@ jobs:
41
41
  env:
42
42
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
43
43
  NPM_CONFIG_PROVENANCE: true
44
-
45
- - name: Sync Npmmirror
46
- run: npx syncmirror
@@ -4,10 +4,10 @@
4
4
  "antfu.iconify",
5
5
  "antfu.unocss",
6
6
  "editorconfig.editorconfig",
7
- "lokalise.i18n-ally",
8
7
  "mhutchie.git-graph",
9
8
  "mikestead.dotenv",
10
9
  "naumovs.color-highlight",
10
+ "oxc.oxc-vscode",
11
11
  "pkief.material-icon-theme",
12
12
  "sdras.vue-vscode-snippets",
13
13
  "vue.volar",
@@ -1,20 +1,2 @@
1
- "*.js" eol=lf
2
- "*.ts" eol=lf
3
- "*.jsx" eol=lf
4
- "*.tsx" eol=lf
5
- "*.cjs" eol=lf
6
- "*.cts" eol=lf
7
- "*.mjs" eol=lf
8
- "*.mts" eol=lf
9
- "*.html" eol=lf
10
- "*.css" eol=lf
11
- "*.vue" eol=lf
12
- "*.json" eol=lf
13
- "*.less" eol=lf
14
- "*.scss" eol=lf
15
- "*.sass" eol=lf
16
- "*.svelte" eol=lf
17
- "*.md" eol=lf
18
- "*.yml" eol=lf
19
- "*.astro" eol=lf
20
- "*.mdx" eol=lf
1
+ * text=auto
2
+ *.* text eol=lf
@@ -32,26 +32,26 @@
32
32
  "release": "soy release",
33
33
  "test": "vitest",
34
34
  "typecheck": "tsc --noEmit --skipLibCheck",
35
- "upkg": "soy update-pkg"
35
+ "upkg": "soy ncu"
36
36
  },
37
37
  "dependencies": {},
38
38
  "devDependencies": {
39
- "@soybeanjs/cli": "1.6.1",
40
- "@types/node": "25.3.3",
41
- "@vue/test-utils": "2.4.6",
42
- "happy-dom": "20.8.3",
43
- "lint-staged": "16.3.2",
44
- "oxfmt": "^0.36.0",
45
- "oxlint": "^1.51.0",
46
- "simple-git-hooks": "2.13.1",
47
- "tsdown": "0.21.0",
48
- "tsx": "4.21.0",
49
- "typescript": "5.9.3",
50
- "unplugin-vue": "7.1.1",
51
- "unplugin-vue-jsx": "0.8.1",
52
- "vite": "7.3.1",
53
- "vue": "3.5.29",
54
- "vue-tsc": "3.2.5"
39
+ "@soybeanjs/cli": "^1.7.0",
40
+ "@types/node": "^25.5.0",
41
+ "@vue/test-utils": "^2.4.6",
42
+ "happy-dom": "^20.8.4",
43
+ "lint-staged": "^16.4.0",
44
+ "oxfmt": "^0.41.0",
45
+ "oxlint": "^1.56.0",
46
+ "simple-git-hooks": "^2.13.1",
47
+ "tsdown": "^0.21.4",
48
+ "tsx": "^4.21.0",
49
+ "typescript": "^5.9.3",
50
+ "unplugin-vue": "^7.1.1",
51
+ "unplugin-vue-jsx": "^0.8.1",
52
+ "vite": "^8.0.1",
53
+ "vue": "^3.5.30",
54
+ "vue-tsc": "^3.2.6"
55
55
  },
56
56
  "simple-git-hooks": {
57
57
  "commit-msg": "pnpm soy git-commit-verify",
@@ -60,5 +60,5 @@
60
60
  "lint-staged": {
61
61
  "*": "oxlint --fix && oxfmt"
62
62
  },
63
- "packageManager": "pnpm@10.30.3"
63
+ "packageManager": "pnpm@10.32.1"
64
64
  }