create-soybean 1.2.0 → 1.3.0-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 (107) hide show
  1. package/README.md +5 -3
  2. package/dist/index.js +4 -4
  3. package/package.json +3 -3
  4. package/template-pnpm-monorepo/.vscode/extensions.json +0 -3
  5. package/template-pnpm-monorepo/package.json +9 -9
  6. package/template-pnpm-monorepo/packages/demo-pkg/package.json +3 -3
  7. package/template-pnpm-monorepo/tsconfig.base.json +11 -5
  8. package/{template-ts-lib-unbuild → template-tsdown}/.vscode/extensions.json +0 -3
  9. package/template-tsdown/package.json +61 -0
  10. package/{template-solid → template-tsdown}/tsconfig.json +8 -2
  11. package/template-tsdown/tsdown.config.ts +17 -0
  12. package/{template-ts-lib-tsup → template-tsup}/.vscode/extensions.json +0 -3
  13. package/{template-ts-lib-tsup → template-tsup}/package.json +15 -12
  14. package/template-tsup/src/index.ts +3 -0
  15. package/template-unbuild/.github/workflows/release.yml +46 -0
  16. package/template-unbuild/.vscode/extensions.json +19 -0
  17. package/template-unbuild/.vscode/launch.json +15 -0
  18. package/template-unbuild/.vscode/settings.json +9 -0
  19. package/template-unbuild/_editorconfig +11 -0
  20. package/template-unbuild/_gitattributes +21 -0
  21. package/{template-react → template-unbuild}/_gitignore +0 -4
  22. package/template-unbuild/_prettierrc +0 -0
  23. package/template-unbuild/eslint.config.js +3 -0
  24. package/{template-ts-lib-unbuild → template-unbuild}/package.json +15 -12
  25. package/template-vue/er.config.ts +9 -0
  26. package/template-vue/eslint.config.js +21 -18
  27. package/template-vue/package.json +26 -25
  28. package/template-vue/src/layouts/base/index.vue +11 -0
  29. package/template-vue/src/layouts/blank/index.vue +11 -0
  30. package/template-vue/src/router/index.ts +4 -7
  31. package/template-vue/src/typings/components.d.ts +17 -0
  32. package/template-vue/src/views/views/(builtin)/403.vue +7 -0
  33. package/template-vue/src/views/{home.vue → views/(builtin)/404/index.vue} +2 -2
  34. package/template-vue/src/views/views/(builtin)/404.vue +7 -0
  35. package/template-vue/src/views/views/(builtin)/login/index.vue +7 -0
  36. package/template-vue/src/views/views/(builtin)/wip.vue +7 -0
  37. package/template-vue/src/views/views/demo.tsx +7 -0
  38. package/template-vue/src/views/views/home/child.vue +7 -0
  39. package/template-vue/src/views/views/home/child2.vue +7 -0
  40. package/template-vue/src/views/views/home/index.vue +9 -0
  41. package/template-vue/src/views/views/list/[id].vue +11 -0
  42. package/template-vue/src/views/views/list/add.vue +7 -0
  43. package/template-vue/src/views/views/list/components/demo.vue +0 -0
  44. package/template-vue/src/views/views/list/components/search-list.vue +7 -0
  45. package/template-vue/src/views/views/list/detail2-[[id]]-[[userId]].vue +7 -0
  46. package/template-vue/src/views/views/list/detail_[id]_[userId].vue +7 -0
  47. package/template-vue/src/views/views/list/edit_[id].vue +7 -0
  48. package/template-vue/src/views/views/list/index.vue +7 -0
  49. package/template-vue/src/views/views/list/modules/list-table.vue +7 -0
  50. package/template-vue/tsconfig.json +3 -0
  51. package/template-vue/uno.config.ts +9 -6
  52. package/template-vue/vite.config.ts +14 -8
  53. package/template-vue-tsdown/.github/workflows/release.yml +46 -0
  54. package/template-vue-tsdown/.vscode/extensions.json +19 -0
  55. package/template-vue-tsdown/.vscode/launch.json +15 -0
  56. package/template-vue-tsdown/.vscode/settings.json +9 -0
  57. package/template-vue-tsdown/_editorconfig +11 -0
  58. package/template-vue-tsdown/_gitattributes +21 -0
  59. package/{template-react-native → template-vue-tsdown}/_gitignore +0 -4
  60. package/template-vue-tsdown/_prettierrc +0 -0
  61. package/template-vue-tsdown/eslint.config.js +5 -0
  62. package/template-vue-tsdown/package.json +65 -0
  63. package/template-vue-tsdown/playground/index.html +12 -0
  64. package/template-vue-tsdown/playground/src/App.vue +7 -0
  65. package/template-vue-tsdown/playground/src/index.ts +5 -0
  66. package/template-vue-tsdown/playground/src/style.css +53 -0
  67. package/template-vue-tsdown/src/demo-pkg.vue +45 -0
  68. package/template-vue-tsdown/src/index.ts +3 -0
  69. package/{template-ts-lib-tsup → template-vue-tsdown}/tsconfig.json +8 -2
  70. package/template-vue-tsdown/tsdown.config.ts +16 -0
  71. package/template-vue-tsdown/vite.config.ts +7 -0
  72. package/template-vue-tsdown/vitest.config.ts +9 -0
  73. package/template-react/_eslintrc +0 -3
  74. package/template-react/package.json +0 -6
  75. package/template-react-native/_eslintrc +0 -3
  76. package/template-react-native/package.json +0 -6
  77. package/template-solid/_eslintrc +0 -3
  78. package/template-solid/_gitignore +0 -34
  79. package/template-solid/package.json +0 -6
  80. package/template-ts-lib-unbuild/_npmrc +0 -2
  81. package/template-ts-lib-unbuild/tsconfig.json +0 -24
  82. /package/{template-ts-lib-tsup → template-tsdown}/.github/workflows/release.yml +0 -0
  83. /package/{template-ts-lib-tsup → template-tsdown}/.vscode/launch.json +0 -0
  84. /package/{template-ts-lib-tsup → template-tsdown}/.vscode/settings.json +0 -0
  85. /package/{template-ts-lib-tsup → template-tsdown}/_editorconfig +0 -0
  86. /package/{template-ts-lib-tsup → template-tsdown}/_gitattributes +0 -0
  87. /package/{template-ts-lib-tsup → template-tsdown}/_gitignore +0 -0
  88. /package/{template-react-native → template-tsdown}/_npmrc +0 -0
  89. /package/{template-ts-lib-tsup → template-tsdown}/_prettierrc +0 -0
  90. /package/{template-ts-lib-tsup → template-tsdown}/eslint.config.js +0 -0
  91. /package/{template-ts-lib-tsup → template-tsdown}/src/index.ts +0 -0
  92. /package/{template-ts-lib-unbuild → template-tsup}/.github/workflows/release.yml +0 -0
  93. /package/{template-ts-lib-unbuild → template-tsup}/.vscode/launch.json +0 -0
  94. /package/{template-ts-lib-unbuild → template-tsup}/.vscode/settings.json +0 -0
  95. /package/{template-ts-lib-unbuild → template-tsup}/_editorconfig +0 -0
  96. /package/{template-ts-lib-unbuild → template-tsup}/_gitattributes +0 -0
  97. /package/{template-ts-lib-unbuild → template-tsup}/_gitignore +0 -0
  98. /package/{template-react → template-tsup}/_npmrc +0 -0
  99. /package/{template-ts-lib-unbuild → template-tsup}/_prettierrc +0 -0
  100. /package/{template-ts-lib-unbuild → template-tsup}/eslint.config.js +0 -0
  101. /package/{template-react-native → template-tsup}/tsconfig.json +0 -0
  102. /package/{template-ts-lib-tsup → template-tsup}/tsup.config.ts +0 -0
  103. /package/{template-solid → template-unbuild}/_npmrc +0 -0
  104. /package/{template-ts-lib-unbuild → template-unbuild}/build.config.ts +0 -0
  105. /package/{template-ts-lib-unbuild → template-unbuild}/src/index.ts +0 -0
  106. /package/{template-react → template-unbuild}/tsconfig.json +0 -0
  107. /package/{template-ts-lib-tsup → template-vue-tsdown}/_npmrc +0 -0
@@ -3,9 +3,9 @@
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
- "packageManager": "pnpm@10.6.3",
6
+ "packageManager": "pnpm@10.11.0",
7
7
  "scripts": {
8
- "build": "run-s typecheck build-only",
8
+ "build": "pnpm typecheck && pnpm build-only",
9
9
  "build-only": "vite build",
10
10
  "cleanup": "soy cleanup",
11
11
  "commit": "soy git-commit",
@@ -17,32 +17,33 @@
17
17
  "update-pkg": "soy ncu"
18
18
  },
19
19
  "dependencies": {
20
- "@unocss/reset": "66.0.0",
21
- "pinia": "3.0.1",
20
+ "@unocss/reset": "66.1.1",
21
+ "klona": "2.0.6",
22
+ "pinia": "3.0.2",
23
+ "soy-ui": "0.0.2-beta.4",
22
24
  "vue": "3.5.13",
23
- "vue-router": "4.5.0"
25
+ "vue-router": "4.5.1"
24
26
  },
25
27
  "devDependencies": {
26
- "@soybeanjs/cli": "1.2.0",
27
- "@soybeanjs/eslint-config": "1.6.0",
28
- "@types/node": "22.13.10",
29
- "@unocss/eslint-config": "66.0.0",
30
- "@unocss/preset-uno": "66.0.0",
31
- "@unocss/transformer-directives": "66.0.0",
32
- "@unocss/transformer-variant-group": "66.0.0",
33
- "@unocss/vite": "66.0.0",
34
- "@vitejs/plugin-vue": "5.2.1",
35
- "@vitejs/plugin-vue-jsx": "4.1.1",
36
- "eslint": "9.22.0",
37
- "eslint-plugin-vue": "10.0.0",
38
- "klona": "2.0.6",
39
- "lint-staged": "15.5.0",
40
- "simple-git-hooks": "2.11.1",
41
- "typescript": "5.8.2",
42
- "unplugin-vue-components": "28.4.1",
43
- "vite": "6.2.1",
44
- "vue-eslint-parser": "10.1.1",
45
- "vue-tsc": "2.2.8"
28
+ "@soybean-ui/unocss-preset": "0.0.2-beta.4",
29
+ "@soybeanjs/cli": "1.3.0-beta.1",
30
+ "@soybeanjs/eslint-config": "1.6.1",
31
+ "@types/node": "22.15.18",
32
+ "@unocss/eslint-config": "66.1.1",
33
+ "@vitejs/plugin-vue": "5.2.4",
34
+ "@vitejs/plugin-vue-jsx": "4.1.2",
35
+ "elegant-router": "1.0.0",
36
+ "eslint": "9.26.0",
37
+ "eslint-plugin-vue": "10.1.0",
38
+ "lint-staged": "16.0.0",
39
+ "simple-git-hooks": "2.13.0",
40
+ "typescript": "5.8.3",
41
+ "unocss": "66.1.1",
42
+ "unplugin-vue-components": "28.5.0",
43
+ "vite": "6.3.5",
44
+ "vite-plugin-vue-devtools": "7.7.6",
45
+ "vue-eslint-parser": "10.1.3",
46
+ "vue-tsc": "2.2.10"
46
47
  },
47
48
  "simple-git-hooks": {
48
49
  "commit-msg": "pnpm soy git-commit-verify",
@@ -0,0 +1,11 @@
1
+ <script setup lang="ts">
2
+ import { RouterView } from 'vue-router';
3
+ </script>
4
+
5
+ <template>
6
+ <SCard title="BaseLayout" split class="h-full">
7
+ <RouterView />
8
+ </SCard>
9
+ </template>
10
+
11
+ <style scoped></style>
@@ -0,0 +1,11 @@
1
+ <script setup lang="ts">
2
+ import { RouterView } from 'vue-router';
3
+ </script>
4
+
5
+ <template>
6
+ <SCard title="BlankLayout" split class="h-full">
7
+ <RouterView />
8
+ </SCard>
9
+ </template>
10
+
11
+ <style scoped></style>
@@ -1,16 +1,13 @@
1
1
  import type { App } from 'vue';
2
2
  import { createRouter, createWebHistory } from 'vue-router';
3
3
  import type { Router } from 'vue-router';
4
+ import { routes } from './_generated/routes';
5
+ import { transformToVueRoutes } from './_generated/transformer';
6
+ import { layouts, views } from './_generated/imports';
4
7
 
5
8
  export const router = createRouter({
6
9
  history: createWebHistory(),
7
- routes: [
8
- {
9
- name: 'home',
10
- path: '/',
11
- component: () => import('../views/home.vue')
12
- }
13
- ]
10
+ routes: transformToVueRoutes(routes, layouts, views)
14
11
  });
15
12
 
16
13
  /**
@@ -0,0 +1,17 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ // Generated by unplugin-vue-components
4
+ // Read more: https://github.com/vuejs/core/pull/3399
5
+ // biome-ignore lint: disable
6
+ export {}
7
+
8
+ /* prettier-ignore */
9
+ declare module 'vue' {
10
+ export interface GlobalComponents {
11
+ HelloWorld: typeof import('./../components/HelloWorld.vue')['default']
12
+ RouterLink: typeof import('vue-router')['RouterLink']
13
+ RouterView: typeof import('vue-router')['RouterView']
14
+ SButton: typeof import('soy-ui')['SButton']
15
+ SCard: typeof import('soy-ui')['SCard']
16
+ }
17
+ }
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>403</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts"></script>
2
2
 
3
3
  <template>
4
- <div>Home</div>
5
- </template>
4
+ <div>404</div>
5
+ </template>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>404</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>login</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>the page is working in progress</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ import { defineComponent } from 'vue';
2
+
3
+ export default defineComponent({
4
+ setup() {
5
+ return () => <div>Demo</div>;
6
+ }
7
+ });
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>child</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>child2</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,9 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div class="p-6">
5
+ <SCard title="button">
6
+ <SButton>Home</SButton>
7
+ </SCard>
8
+ </div>
9
+ </template>
@@ -0,0 +1,11 @@
1
+ <script setup lang="ts">
2
+ import { useRoute } from 'vue-router';
3
+
4
+ const route = useRoute('ListId');
5
+ </script>
6
+
7
+ <template>
8
+ <div>list-id: {{ route.params.id }}</div>
9
+ </template>
10
+
11
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>add</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>search-list</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>detail-id-userId</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>detail-id-userId</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>edit-id</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>list</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>list-table</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -1,4 +1,7 @@
1
1
  {
2
+ "compilerOptions": {
3
+ "types": ["soy-ui"]
4
+ },
2
5
  "extends": "./tsconfig.base.json",
3
6
  "include": ["./**/*.ts", "./**/*.tsx", "./**/*.vue"]
4
7
  }
@@ -1,15 +1,18 @@
1
- import { defineConfig } from '@unocss/vite';
2
- import transformerDirectives from '@unocss/transformer-directives';
3
- import transformerVariantGroup from '@unocss/transformer-variant-group';
4
- import presetWind3 from '@unocss/preset-wind3';
1
+ import { defineConfig, presetWind3, transformerDirectives, transformerVariantGroup } from 'unocss';
5
2
  import type { Theme } from '@unocss/preset-uno';
3
+ import { presetSoybeanUI } from '@soybean-ui/unocss-preset';
6
4
 
7
5
  export default defineConfig<Theme>({
8
6
  content: {
9
7
  pipeline: {
10
- exclude: ['node_modules', 'dist']
8
+ include: [/\.vue($|\?)/, /.*\/soy-ui.*\.js/]
11
9
  }
12
10
  },
13
11
  transformers: [transformerDirectives(), transformerVariantGroup()],
14
- presets: [presetWind3({ dark: 'class' })]
12
+ presets: [
13
+ presetWind3({ dark: 'class' }),
14
+ presetSoybeanUI({
15
+ color: 'default'
16
+ })
17
+ ]
15
18
  });
@@ -1,9 +1,12 @@
1
1
  import { URL, fileURLToPath } from 'node:url';
2
2
  import { defineConfig } from 'vite';
3
- import vue from '@vitejs/plugin-vue';
4
- import vueJsx from '@vitejs/plugin-vue-jsx';
5
- import unocss from 'unocss/vite';
3
+ import Vue from '@vitejs/plugin-vue';
4
+ import VueJsx from '@vitejs/plugin-vue-jsx';
5
+ import VueDevtools from 'vite-plugin-vue-devtools';
6
+ import Unocss from 'unocss/vite';
6
7
  import Components from 'unplugin-vue-components/vite';
8
+ import SoybeanUIResolver from 'soy-ui/resolver';
9
+ import ElegantRouter from 'elegant-router/vite';
7
10
 
8
11
  export default defineConfig({
9
12
  resolve: {
@@ -12,12 +15,15 @@ export default defineConfig({
12
15
  }
13
16
  },
14
17
  plugins: [
15
- vue(),
16
- vueJsx(),
17
- unocss(),
18
+ Vue(),
19
+ VueJsx(),
20
+ VueDevtools(),
21
+ Unocss(),
18
22
  Components({
19
23
  dts: 'src/typings/components.d.ts',
20
- types: [{ from: 'vue-router', names: ['RouterLink', 'RouterView'] }]
21
- })
24
+ types: [{ from: 'vue-router', names: ['RouterLink', 'RouterView'] }],
25
+ resolvers: [SoybeanUIResolver()]
26
+ }),
27
+ ElegantRouter(),
22
28
  ]
23
29
  });
@@ -0,0 +1,46 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ release:
10
+ permissions:
11
+ id-token: write
12
+ contents: write
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+ with:
17
+ fetch-depth: 0
18
+
19
+ - name: Install pnpm
20
+ uses: pnpm/action-setup@v2
21
+
22
+ - name: Set node
23
+ uses: actions/setup-node@v3
24
+ with:
25
+ node-version: lts/*
26
+ cache: pnpm
27
+ registry-url: "https://registry.npmjs.org"
28
+
29
+ - run: npx githublogen
30
+ env:
31
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32
+
33
+ - name: Install Dependencies
34
+ run: pnpm install --no-frozen-lockfile
35
+
36
+ - name: PNPM build
37
+ run: pnpm run build
38
+
39
+ - name: Publish to NPM
40
+ run: pnpm -r publish --access public --no-git-checks
41
+ env:
42
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
43
+ NPM_CONFIG_PROVENANCE: true
44
+
45
+ - name: Sync Npmmirror
46
+ run: npx syncmirror
@@ -0,0 +1,19 @@
1
+ {
2
+ "recommendations": [
3
+ "afzalsayed96.icones",
4
+ "antfu.iconify",
5
+ "antfu.unocss",
6
+ "dbaeumer.vscode-eslint",
7
+ "editorconfig.editorconfig",
8
+ "esbenp.prettier-vscode",
9
+ "lokalise.i18n-ally",
10
+ "mhutchie.git-graph",
11
+ "mikestead.dotenv",
12
+ "naumovs.color-highlight",
13
+ "pkief.material-icon-theme",
14
+ "sdras.vue-vscode-snippets",
15
+ "vue.volar",
16
+ "whtouche.vscode-js-console-utils",
17
+ "zhuangtongfa.material-theme"
18
+ ]
19
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "configurations": [
4
+ {
5
+ "name": "TS Debugger tsx",
6
+ "type": "node",
7
+ "request": "launch",
8
+ "program": "${file}",
9
+ "runtimeExecutable": "tsx",
10
+ "console": "integratedTerminal",
11
+ "internalConsoleOptions": "neverOpen",
12
+ "skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"]
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "editor.codeActionsOnSave": {
3
+ "source.fixAll.eslint": "explicit",
4
+ "source.organizeImports": "never"
5
+ },
6
+ "editor.formatOnSave": false,
7
+ "eslint.validate": ["json", "jsonc"],
8
+ "prettier.enable": false
9
+ }
@@ -0,0 +1,11 @@
1
+ # Editor configuration, see http://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ charset = utf-8
7
+ indent_style = space
8
+ indent_size = 2
9
+ end_of_line = lf
10
+ trim_trailing_whitespace = true
11
+ insert_final_newline = true
@@ -0,0 +1,21 @@
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
+ "*.styl" eol=lf
17
+ "*.svelte" eol=lf
18
+ "*.md" eol=lf
19
+ "*.yml" eol=lf
20
+ "*.astro" eol=lf
21
+ "*.mdx" eol=lf
@@ -28,7 +28,3 @@ coverage
28
28
  *.njsproj
29
29
  *.sln
30
30
  *.sw?
31
-
32
- package-lock.json
33
- yarn.lock
34
- pnpm-lock.yaml
File without changes
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from '@soybeanjs/eslint-config';
2
+
3
+ export default defineConfig({
4
+ vue: true
5
+ });
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "template-vue-tsdown",
3
+ "type": "module",
4
+ "version": "0.0.0",
5
+ "private": true,
6
+ "packageManager": "pnpm@10.11.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "sideEffects": false,
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js",
15
+ "require": "./dist/index.js"
16
+ }
17
+ },
18
+ "main": "./dist/index.js",
19
+ "module": "./dist/index.js",
20
+ "types": "./dist/index.d.ts",
21
+ "files": ["dist"],
22
+ "scripts": {
23
+ "build": "tsdown",
24
+ "cleanup": "soy cleanup",
25
+ "commit": "soy git-commit",
26
+ "dev": "tsdown --watch",
27
+ "lint": "eslint . --fix",
28
+ "play": "vite",
29
+ "prepare": "simple-git-hooks",
30
+ "publish-pkg": "pnpm publish --access public",
31
+ "release": "soy release",
32
+ "test": "vitest",
33
+ "typecheck": "tsc --noEmit --skipLibCheck",
34
+ "update-pkg": "soy ncu"
35
+ },
36
+ "dependencies": {},
37
+ "devDependencies": {
38
+ "@soybeanjs/cli": "1.3.0-beta.1",
39
+ "@soybeanjs/eslint-config": "1.6.1",
40
+ "@types/node": "22.15.18",
41
+ "@vue/test-utils": "2.4.6",
42
+ "eslint": "9.26.0",
43
+ "eslint-plugin-vue": "10.1.0",
44
+ "happy-dom": "17.4.7",
45
+ "lint-staged": "16.0.0",
46
+ "simple-git-hooks": "2.13.0",
47
+ "tsdown": "0.11.9",
48
+ "tsx": "4.19.4",
49
+ "typescript": "5.8.3",
50
+ "unplugin-vue": "6.2.0",
51
+ "unplugin-vue-jsx": "0.6.1",
52
+ "vite": "6.3.5",
53
+ "vitest": "3.1.3",
54
+ "vue": "3.5.13",
55
+ "vue-eslint-parser": "10.1.3",
56
+ "vue-tsc": "2.2.10"
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
+ "*": "eslint --fix"
64
+ }
65
+ }
@@ -0,0 +1,12 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Template Vue TSDown</title>
7
+ </head>
8
+ <body>
9
+ <div id="app"></div>
10
+ <script type="module" src="/src/index.ts"></script>
11
+ </body>
12
+ </html>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts">
2
+ import { DemoPkg } from '../../src';
3
+ </script>
4
+
5
+ <template>
6
+ <DemoPkg :count="0" />
7
+ </template>
@@ -0,0 +1,5 @@
1
+ import { createApp } from 'vue';
2
+ import App from './App.vue';
3
+ import './style.css';
4
+
5
+ createApp(App).mount('#app');