create-soybean 1.4.0 → 1.4.2-beta.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.
Files changed (31) hide show
  1. package/dist/{index.js → index.mjs} +7 -16
  2. package/package.json +3 -3
  3. package/template-pnpm-monorepo/package.json +7 -7
  4. package/template-pnpm-monorepo/packages/demo-pkg/package.json +3 -3
  5. package/template-tsdown/package.json +12 -12
  6. package/template-vue/.vscode/settings.json +14 -5
  7. package/template-vue/package.json +23 -23
  8. package/template-vue/src/layouts/base/index.vue +0 -2
  9. package/template-vue/src/layouts/blank/index.vue +0 -2
  10. package/template-vue/src/plugins/assets.ts +1 -0
  11. package/template-vue/src/typings/components.d.ts +2 -2
  12. package/template-vue/src/views/(builtin)/403.vue +0 -2
  13. package/template-vue/src/views/(builtin)/404.vue +0 -2
  14. package/template-vue/src/views/(builtin)/login/index.vue +0 -2
  15. package/template-vue/src/views/(builtin)/wip.vue +0 -2
  16. package/template-vue/src/views/home/child.vue +0 -2
  17. package/template-vue/src/views/home/child2.vue +0 -2
  18. package/template-vue/src/views/list/[id].vue +0 -2
  19. package/template-vue/src/views/list/add.vue +0 -2
  20. package/template-vue/src/views/list/components/search-list.vue +0 -2
  21. package/template-vue/src/views/list/detail2-[[id]]-[[userId]].vue +0 -2
  22. package/template-vue/src/views/list/detail_[id]_[userId].vue +0 -2
  23. package/template-vue/src/views/list/edit_[id].vue +0 -2
  24. package/template-vue/src/views/list/index.vue +0 -2
  25. package/template-vue/src/views/list/modules/list-table.vue +0 -2
  26. package/template-vue/tsconfig.base.json +0 -1
  27. package/template-vue/tsconfig.json +1 -1
  28. package/template-vue/uno.config.ts +5 -11
  29. package/template-vue/vite.config.ts +2 -4
  30. package/template-vue-tsdown/package.json +17 -17
  31. package/template-vue-tsdown/src/demo-pkg.vue +0 -2
@@ -23,29 +23,20 @@ function toValidPackageName(projectName) {
23
23
  return projectName.trim().toLowerCase().replace(/\s+/g, "-").replace(/^[._]/, "").replace(/[^a-z\d\-~]+/g, "-");
24
24
  }
25
25
  function emptyDir(dir) {
26
- const isExist = existsSync(dir);
27
- if (!isExist) return;
26
+ if (!existsSync(dir)) return;
28
27
  const files = readdirSync(dir);
29
- for (const file of files) if (file !== ".git") {
30
- const filePath = path.resolve(dir, file);
31
- rmSync(filePath, {
32
- recursive: true,
33
- force: true
34
- });
35
- }
28
+ for (const file of files) if (file !== ".git") rmSync(path.resolve(dir, file), {
29
+ recursive: true,
30
+ force: true
31
+ });
36
32
  }
37
33
  function copyDir(srcDir, destDir) {
38
34
  mkdirSync(destDir, { recursive: true });
39
35
  const files = readdirSync(srcDir);
40
- for (const file of files) {
41
- const srcFile = path.resolve(srcDir, file);
42
- const destFile = path.resolve(destDir, file);
43
- copy(srcFile, destFile);
44
- }
36
+ for (const file of files) copy(path.resolve(srcDir, file), path.resolve(destDir, file));
45
37
  }
46
38
  function copy(src, dest) {
47
- const stat = statSync(src);
48
- if (stat.isDirectory()) copyDir(src, dest);
39
+ if (statSync(src).isDirectory()) copyDir(src, dest);
49
40
  else copyFileSync(src, dest);
50
41
  }
51
42
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-soybean",
3
3
  "type": "module",
4
- "version": "1.4.0",
4
+ "version": "1.4.2-beta.1",
5
5
  "description": "SoybeanJS's command line to create different project templates",
6
6
  "author": {
7
7
  "name": "Soybean",
@@ -35,8 +35,8 @@
35
35
  "devDependencies": {
36
36
  "@types/minimist": "1.2.5",
37
37
  "@types/prompts": "2.4.9",
38
- "tsdown": "0.14.2",
39
- "typescript": "5.9.2"
38
+ "tsdown": "0.18.2",
39
+ "typescript": "5.9.3"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "pnpm typecheck && pnpm build-only",
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.26.2",
7
7
  "scripts": {
8
8
  "cleanup": "soy cleanup",
9
9
  "commit": "soy git-commit",
@@ -15,13 +15,13 @@
15
15
  },
16
16
  "dependencies": {},
17
17
  "devDependencies": {
18
- "@soybeanjs/cli": "1.4.0",
19
- "@soybeanjs/eslint-config": "1.7.1",
20
- "eslint": "9.34.0",
21
- "lint-staged": "16.1.5",
18
+ "@soybeanjs/cli": "1.4.2-beta.1",
19
+ "@soybeanjs/eslint-config": "1.7.5",
20
+ "eslint": "9.39.2",
21
+ "lint-staged": "16.2.7",
22
22
  "simple-git-hooks": "2.13.1",
23
- "tsx": "4.20.5",
24
- "typescript": "5.9.2"
23
+ "tsx": "4.21.0",
24
+ "typescript": "5.9.3"
25
25
  },
26
26
  "simple-git-hooks": {
27
27
  "commit-msg": "pnpm soy git-commit-verify",
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "demo-pkg",
3
3
  "type": "module",
4
- "version": "1.4.0",
4
+ "version": "1.4.2-beta.1",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.26.2",
7
7
  "scripts": {
8
8
  "typecheck": "tsc --noEmit --skipLibCheck"
9
9
  },
10
10
  "dependencies": {},
11
11
  "devDependencies": {
12
- "typescript": "5.9.2"
12
+ "typescript": "5.9.3"
13
13
  }
14
14
  }
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.26.2",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/"
9
9
  },
@@ -34,22 +34,22 @@
34
34
  "dependencies": {
35
35
  "cli-progress": "3.12.0",
36
36
  "consola": "3.4.2",
37
- "dayjs": "1.11.15",
38
- "execa": "9.6.0",
37
+ "dayjs": "1.11.19",
38
+ "execa": "9.6.1",
39
39
  "kolorist": "1.8.0",
40
- "ofetch": "1.4.1"
40
+ "ofetch": "1.5.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@soybeanjs/cli": "1.4.0",
44
- "@soybeanjs/eslint-config": "1.7.1",
43
+ "@soybeanjs/cli": "1.4.2-beta.1",
44
+ "@soybeanjs/eslint-config": "1.7.5",
45
45
  "@types/cli-progress": "3.11.6",
46
- "@types/node": "24.3.0",
47
- "eslint": "9.34.0",
48
- "lint-staged": "16.1.5",
46
+ "@types/node": "25.0.3",
47
+ "eslint": "9.39.2",
48
+ "lint-staged": "16.2.7",
49
49
  "simple-git-hooks": "2.13.1",
50
- "tsdown": "0.14.2",
51
- "tsx": "4.20.5",
52
- "typescript": "5.9.2"
50
+ "tsdown": "0.18.2",
51
+ "tsx": "4.21.0",
52
+ "typescript": "5.9.3"
53
53
  },
54
54
  "simple-git-hooks": {
55
55
  "commit-msg": "pnpm soy git-commit-verify",
@@ -4,9 +4,18 @@
4
4
  "source.organizeImports": "never"
5
5
  },
6
6
  "editor.formatOnSave": false,
7
- "eslint.validate": ["html", "css", "scss", "json", "jsonc"],
8
- "prettier.enable": false,
9
- "typescript.tsdk": "node_modules/typescript/lib",
10
- "unocss.root": ["./"],
11
- "vue.server.hybridMode": true
7
+ "eslint.validate": [
8
+ "html",
9
+ "css",
10
+ "scss",
11
+ "json",
12
+ "jsonc",
13
+ "javascript",
14
+ "javascriptreact",
15
+ "typescript",
16
+ "typescriptreact",
17
+ "vue",
18
+ "markdown"
19
+ ],
20
+ "prettier.enable": false
12
21
  }
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.26.2",
7
7
  "scripts": {
8
8
  "build": "pnpm typecheck && pnpm build-only",
9
9
  "build-only": "vite build",
@@ -17,33 +17,33 @@
17
17
  "update-pkg": "soy ncu"
18
18
  },
19
19
  "dependencies": {
20
- "@unocss/reset": "66.4.2",
20
+ "@soybeanjs/ui": "0.0.7",
21
+ "@unocss/reset": "66.5.10",
21
22
  "klona": "2.0.6",
22
- "pinia": "3.0.3",
23
- "soy-ui": "0.0.2-beta.5",
24
- "vue": "3.5.20",
25
- "vue-router": "4.5.1"
23
+ "pinia": "3.0.4",
24
+ "vue": "3.5.26",
25
+ "vue-router": "4.6.4"
26
26
  },
27
27
  "devDependencies": {
28
- "@soybean-ui/unocss-preset": "0.0.2-beta.5",
29
- "@soybeanjs/cli": "1.4.0",
30
- "@soybeanjs/eslint-config": "1.7.1",
31
- "@types/node": "24.3.0",
32
- "@unocss/eslint-config": "66.4.2",
33
- "@vitejs/plugin-vue": "6.0.1",
34
- "@vitejs/plugin-vue-jsx": "5.1.1",
35
- "elegant-router": "1.0.3",
36
- "eslint": "9.34.0",
37
- "eslint-plugin-vue": "10.4.0",
38
- "lint-staged": "16.1.5",
28
+ "@soybeanjs/cli": "1.4.2-beta.1",
29
+ "@soybeanjs/eslint-config": "1.7.5",
30
+ "@soybeanjs/unocss-preset": "0.1.7",
31
+ "@types/node": "25.0.3",
32
+ "@unocss/eslint-config": "66.5.10",
33
+ "@vitejs/plugin-vue": "6.0.3",
34
+ "@vitejs/plugin-vue-jsx": "5.1.2",
35
+ "elegant-router": "1.1.0",
36
+ "eslint": "9.39.2",
37
+ "eslint-plugin-vue": "10.6.2",
38
+ "lint-staged": "16.2.7",
39
39
  "simple-git-hooks": "2.13.1",
40
- "typescript": "5.9.2",
41
- "unocss": "66.4.2",
42
- "unplugin-vue-components": "29.0.0",
43
- "vite": "7.1.3",
44
- "vite-plugin-vue-devtools": "8.0.1",
40
+ "typescript": "5.9.3",
41
+ "unocss": "66.5.10",
42
+ "unplugin-vue-components": "30.0.0",
43
+ "vite": "7.3.0",
44
+ "vite-plugin-vue-devtools": "8.0.5",
45
45
  "vue-eslint-parser": "10.2.0",
46
- "vue-tsc": "3.0.6"
46
+ "vue-tsc": "3.2.1"
47
47
  },
48
48
  "simple-git-hooks": {
49
49
  "commit-msg": "pnpm soy git-commit-verify",
@@ -7,5 +7,3 @@ import { RouterView } from 'vue-router';
7
7
  <RouterView />
8
8
  </SCard>
9
9
  </template>
10
-
11
- <style scoped></style>
@@ -7,5 +7,3 @@ import { RouterView } from 'vue-router';
7
7
  <RouterView />
8
8
  </SCard>
9
9
  </template>
10
-
11
- <style scoped></style>
@@ -1,3 +1,4 @@
1
1
  import '@unocss/reset/tailwind.css';
2
+ import '@soybeanjs/ui/styles.css';
2
3
  import 'uno.css';
3
4
  import '../styles/app.css';
@@ -11,7 +11,7 @@ declare module 'vue' {
11
11
  HelloWorld: typeof import('./../components/HelloWorld.vue')['default']
12
12
  RouterLink: typeof import('vue-router')['RouterLink']
13
13
  RouterView: typeof import('vue-router')['RouterView']
14
- SButton: typeof import('soy-ui')['SButton']
15
- SCard: typeof import('soy-ui')['SCard']
14
+ SButton: typeof import('@soybeanjs/ui')['SButton']
15
+ SCard: typeof import('@soybeanjs/ui')['SCard']
16
16
  }
17
17
  }
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>403</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>404</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>login</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>the page is working in progress</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>child</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>child2</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -7,5 +7,3 @@ const route = useRoute('ListId');
7
7
  <template>
8
8
  <div>list-id: {{ route.params.id }}</div>
9
9
  </template>
10
-
11
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>add</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>search-list</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>detail-id-userId</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>detail-id-userId</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>edit-id</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>list</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -3,5 +3,3 @@
3
3
  <template>
4
4
  <div>list-table</div>
5
5
  </template>
6
-
7
- <style scoped></style>
@@ -4,7 +4,6 @@
4
4
  "jsx": "preserve",
5
5
  "jsxImportSource": "vue",
6
6
  "lib": ["DOM", "ESNext"],
7
- "baseUrl": ".",
8
7
  "module": "ESNext",
9
8
  "moduleResolution": "bundler",
10
9
  "paths": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "types": ["soy-ui"]
3
+ "types": ["node", "vite/client","@soybeanjs/ui"]
4
4
  },
5
5
  "extends": "./tsconfig.base.json",
6
6
  "include": ["./**/*.ts", "./**/*.tsx", "./**/*.vue"]
@@ -1,18 +1,12 @@
1
- import { defineConfig, presetWind3, transformerDirectives, transformerVariantGroup } from 'unocss';
2
- import type { Theme } from '@unocss/preset-uno';
3
- import { presetSoybeanUI } from '@soybean-ui/unocss-preset';
1
+ import { defineConfig, presetTypography, presetWind3, transformerDirectives, transformerVariantGroup } from 'unocss';
2
+ import { presetSoybeanJS } from '@soybeanjs/unocss-preset';
4
3
 
5
- export default defineConfig<Theme>({
4
+ export default defineConfig({
6
5
  content: {
7
6
  pipeline: {
8
- include: [/\.vue($|\?)/, /.*\/soy-ui.*\.js/]
7
+ include: [/\.vue($|\?)/]
9
8
  }
10
9
  },
11
10
  transformers: [transformerDirectives(), transformerVariantGroup()],
12
- presets: [
13
- presetWind3({ dark: 'class' }),
14
- presetSoybeanUI({
15
- color: 'default'
16
- })
17
- ]
11
+ presets: [presetWind3({ dark: 'class' }), presetTypography(), presetSoybeanJS()]
18
12
  });
@@ -2,10 +2,9 @@ import { URL, fileURLToPath } from 'node:url';
2
2
  import { defineConfig } from 'vite';
3
3
  import Vue from '@vitejs/plugin-vue';
4
4
  import VueJsx from '@vitejs/plugin-vue-jsx';
5
- import VueDevtools from 'vite-plugin-vue-devtools';
5
+ import UiResolver from '@soybeanjs/ui/resolver';
6
6
  import Unocss from 'unocss/vite';
7
7
  import Components from 'unplugin-vue-components/vite';
8
- import SoybeanUIResolver from 'soy-ui/resolver';
9
8
  import ElegantRouter from 'elegant-router/vite';
10
9
 
11
10
  export default defineConfig({
@@ -17,12 +16,11 @@ export default defineConfig({
17
16
  plugins: [
18
17
  Vue(),
19
18
  VueJsx(),
20
- VueDevtools(),
21
19
  Unocss(),
22
20
  Components({
23
21
  dts: 'src/typings/components.d.ts',
24
22
  types: [{ from: 'vue-router', names: ['RouterLink', 'RouterView'] }],
25
- resolvers: [SoybeanUIResolver()]
23
+ resolvers: [UiResolver()]
26
24
  }),
27
25
  ElegantRouter(),
28
26
  ]
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.15.0",
6
+ "packageManager": "pnpm@10.26.2",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/"
9
9
  },
@@ -35,25 +35,25 @@
35
35
  },
36
36
  "dependencies": {},
37
37
  "devDependencies": {
38
- "@soybeanjs/cli": "1.4.0",
39
- "@soybeanjs/eslint-config": "1.7.1",
40
- "@types/node": "24.3.0",
38
+ "@soybeanjs/cli": "1.4.2-beta.1",
39
+ "@soybeanjs/eslint-config": "1.7.5",
40
+ "@types/node": "25.0.3",
41
41
  "@vue/test-utils": "2.4.6",
42
- "eslint": "9.34.0",
43
- "eslint-plugin-vue": "10.4.0",
44
- "happy-dom": "18.0.1",
45
- "lint-staged": "16.1.5",
42
+ "eslint": "9.39.2",
43
+ "eslint-plugin-vue": "10.6.2",
44
+ "happy-dom": "20.0.11",
45
+ "lint-staged": "16.2.7",
46
46
  "simple-git-hooks": "2.13.1",
47
- "tsdown": "0.14.2",
48
- "tsx": "4.20.5",
49
- "typescript": "5.9.2",
50
- "unplugin-vue": "7.0.1",
51
- "unplugin-vue-jsx": "0.6.1",
52
- "vite": "7.1.3",
53
- "vitest": "3.2.4",
54
- "vue": "3.5.20",
47
+ "tsdown": "0.18.2",
48
+ "tsx": "4.21.0",
49
+ "typescript": "5.9.3",
50
+ "unplugin-vue": "7.1.0",
51
+ "unplugin-vue-jsx": "0.8.1",
52
+ "vite": "7.3.0",
53
+ "vitest": "4.0.16",
54
+ "vue": "3.5.26",
55
55
  "vue-eslint-parser": "10.2.0",
56
- "vue-tsc": "3.0.6"
56
+ "vue-tsc": "3.2.1"
57
57
  },
58
58
  "simple-git-hooks": {
59
59
  "commit-msg": "pnpm soy git-commit-verify",
@@ -41,5 +41,3 @@ const handleClick = () => {
41
41
  <slot name="footer" :count="10"></slot>
42
42
  </div>
43
43
  </template>
44
-
45
- <style scoped></style>