create-soybean 1.2.1 → 1.3.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.
Files changed (103) hide show
  1. package/README.md +5 -3
  2. package/dist/index.js +3 -3
  3. package/package.json +2 -2
  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 +14 -11
  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 +14 -11
  25. package/template-vue/er.config.ts +9 -0
  26. package/template-vue/package.json +24 -22
  27. package/template-vue/src/layouts/base/index.vue +11 -0
  28. package/template-vue/src/layouts/blank/index.vue +11 -0
  29. package/template-vue/src/router/index.ts +4 -7
  30. package/template-vue/src/views/views/(builtin)/403.vue +7 -0
  31. package/template-vue/src/views/views/(builtin)/404/index.vue +5 -0
  32. package/template-vue/src/views/views/(builtin)/404.vue +7 -0
  33. package/template-vue/src/views/views/(builtin)/login/index.vue +7 -0
  34. package/template-vue/src/views/views/(builtin)/wip.vue +7 -0
  35. package/template-vue/src/views/views/demo.tsx +7 -0
  36. package/template-vue/src/views/views/home/child.vue +7 -0
  37. package/template-vue/src/views/views/home/child2.vue +7 -0
  38. package/template-vue/src/views/views/list/[id].vue +11 -0
  39. package/template-vue/src/views/views/list/add.vue +7 -0
  40. package/template-vue/src/views/views/list/components/demo.vue +0 -0
  41. package/template-vue/src/views/views/list/components/search-list.vue +7 -0
  42. package/template-vue/src/views/views/list/detail2-[[id]]-[[userId]].vue +7 -0
  43. package/template-vue/src/views/views/list/detail_[id]_[userId].vue +7 -0
  44. package/template-vue/src/views/views/list/edit_[id].vue +7 -0
  45. package/template-vue/src/views/views/list/index.vue +7 -0
  46. package/template-vue/src/views/views/list/modules/list-table.vue +7 -0
  47. package/template-vue/vite.config.ts +11 -7
  48. package/template-vue-tsdown/.github/workflows/release.yml +46 -0
  49. package/template-vue-tsdown/.vscode/extensions.json +19 -0
  50. package/template-vue-tsdown/.vscode/launch.json +15 -0
  51. package/template-vue-tsdown/.vscode/settings.json +9 -0
  52. package/template-vue-tsdown/_editorconfig +11 -0
  53. package/template-vue-tsdown/_gitattributes +21 -0
  54. package/{template-react-native → template-vue-tsdown}/_gitignore +0 -4
  55. package/template-vue-tsdown/_prettierrc +0 -0
  56. package/template-vue-tsdown/eslint.config.js +5 -0
  57. package/template-vue-tsdown/package.json +65 -0
  58. package/template-vue-tsdown/playground/index.html +12 -0
  59. package/template-vue-tsdown/playground/src/App.vue +7 -0
  60. package/template-vue-tsdown/playground/src/index.ts +5 -0
  61. package/template-vue-tsdown/playground/src/style.css +53 -0
  62. package/template-vue-tsdown/src/demo-pkg.vue +45 -0
  63. package/template-vue-tsdown/src/index.ts +3 -0
  64. package/{template-ts-lib-tsup → template-vue-tsdown}/tsconfig.json +8 -2
  65. package/template-vue-tsdown/tsdown.config.ts +16 -0
  66. package/template-vue-tsdown/vite.config.ts +7 -0
  67. package/template-vue-tsdown/vitest.config.ts +9 -0
  68. package/template-react/_eslintrc +0 -3
  69. package/template-react/package.json +0 -6
  70. package/template-react-native/_eslintrc +0 -3
  71. package/template-react-native/package.json +0 -6
  72. package/template-solid/_eslintrc +0 -3
  73. package/template-solid/_gitignore +0 -34
  74. package/template-solid/package.json +0 -6
  75. package/template-ts-lib-unbuild/_npmrc +0 -2
  76. package/template-ts-lib-unbuild/tsconfig.json +0 -24
  77. /package/{template-ts-lib-tsup → template-tsdown}/.github/workflows/release.yml +0 -0
  78. /package/{template-ts-lib-tsup → template-tsdown}/.vscode/launch.json +0 -0
  79. /package/{template-ts-lib-tsup → template-tsdown}/.vscode/settings.json +0 -0
  80. /package/{template-ts-lib-tsup → template-tsdown}/_editorconfig +0 -0
  81. /package/{template-ts-lib-tsup → template-tsdown}/_gitattributes +0 -0
  82. /package/{template-ts-lib-tsup → template-tsdown}/_gitignore +0 -0
  83. /package/{template-react-native → template-tsdown}/_npmrc +0 -0
  84. /package/{template-ts-lib-tsup → template-tsdown}/_prettierrc +0 -0
  85. /package/{template-ts-lib-tsup → template-tsdown}/eslint.config.js +0 -0
  86. /package/{template-ts-lib-tsup → template-tsdown}/src/index.ts +0 -0
  87. /package/{template-ts-lib-unbuild → template-tsup}/.github/workflows/release.yml +0 -0
  88. /package/{template-ts-lib-unbuild → template-tsup}/.vscode/launch.json +0 -0
  89. /package/{template-ts-lib-unbuild → template-tsup}/.vscode/settings.json +0 -0
  90. /package/{template-ts-lib-unbuild → template-tsup}/_editorconfig +0 -0
  91. /package/{template-ts-lib-unbuild → template-tsup}/_gitattributes +0 -0
  92. /package/{template-ts-lib-unbuild → template-tsup}/_gitignore +0 -0
  93. /package/{template-react → template-tsup}/_npmrc +0 -0
  94. /package/{template-ts-lib-unbuild → template-tsup}/_prettierrc +0 -0
  95. /package/{template-ts-lib-unbuild → template-tsup}/eslint.config.js +0 -0
  96. /package/{template-react-native → template-tsup}/tsconfig.json +0 -0
  97. /package/{template-ts-lib-tsup → template-tsup}/tsup.config.ts +0 -0
  98. /package/{template-solid → template-unbuild}/_npmrc +0 -0
  99. /package/{template-ts-lib-unbuild → template-unbuild}/build.config.ts +0 -0
  100. /package/{template-ts-lib-unbuild → template-unbuild}/src/index.ts +0 -0
  101. /package/{template-react → template-unbuild}/tsconfig.json +0 -0
  102. /package/template-vue/src/views/{home → views/home}/index.vue +0 -0
  103. /package/{template-ts-lib-tsup → template-vue-tsdown}/_npmrc +0 -0
@@ -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/index.vue')
12
- }
13
- ]
10
+ routes: transformToVueRoutes(routes, layouts, views)
14
11
  });
15
12
 
16
13
  /**
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div>403</div>
5
+ </template>
6
+
7
+ <style scoped></style>
@@ -0,0 +1,5 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <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,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,10 +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';
7
8
  import SoybeanUIResolver from 'soy-ui/resolver';
9
+ import ElegantRouter from 'elegant-router/vite';
8
10
 
9
11
  export default defineConfig({
10
12
  resolve: {
@@ -13,13 +15,15 @@ export default defineConfig({
13
15
  }
14
16
  },
15
17
  plugins: [
16
- vue(),
17
- vueJsx(),
18
- unocss(),
18
+ Vue(),
19
+ VueJsx(),
20
+ VueDevtools(),
21
+ Unocss(),
19
22
  Components({
20
23
  dts: 'src/typings/components.d.ts',
21
24
  types: [{ from: 'vue-router', names: ['RouterLink', 'RouterView'] }],
22
25
  resolvers: [SoybeanUIResolver()]
23
- })
26
+ }),
27
+ ElegantRouter(),
24
28
  ]
25
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.2",
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');
@@ -0,0 +1,53 @@
1
+ :root {
2
+ font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
3
+ line-height: 1.5;
4
+ font-weight: 400;
5
+
6
+ color-scheme: light dark;
7
+ color: rgba(255, 255, 255, 0.87);
8
+ background-color: #242424;
9
+
10
+ font-synthesis: none;
11
+ text-rendering: optimizeLegibility;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+
16
+ a {
17
+ font-weight: 500;
18
+ color: #646cff;
19
+ text-decoration: inherit;
20
+ }
21
+ a:hover {
22
+ color: #535bf2;
23
+ }
24
+
25
+ body {
26
+ margin: 0;
27
+ display: flex;
28
+ place-items: center;
29
+ min-width: 320px;
30
+ min-height: 100vh;
31
+ }
32
+
33
+ h1 {
34
+ font-size: 3.2em;
35
+ line-height: 1.1;
36
+ }
37
+
38
+ #app {
39
+ max-width: 1280px;
40
+ margin: 0 auto;
41
+ padding: 2rem;
42
+ text-align: center;
43
+ }
44
+
45
+ @media (prefers-color-scheme: light) {
46
+ :root {
47
+ color: #213547;
48
+ background-color: #ffffff;
49
+ }
50
+ a:hover {
51
+ color: #747bff;
52
+ }
53
+ }
@@ -0,0 +1,45 @@
1
+ <script setup lang="ts">
2
+ import { ref } from 'vue';
3
+
4
+ interface Props {
5
+ count?: number;
6
+ }
7
+
8
+ const props = defineProps<Props>();
9
+
10
+ interface Emits {
11
+ (e: 'update:count', value: number): void;
12
+ }
13
+
14
+ const emit = defineEmits<Emits>();
15
+
16
+ type Slots = {
17
+ header?: () => any;
18
+ default?: () => any;
19
+ footer?: (props: { count: number }) => any;
20
+ };
21
+
22
+ defineSlots<Slots>();
23
+
24
+ const currentCount = ref(props.count || 0);
25
+
26
+ const handleClick = () => {
27
+ currentCount.value += 1;
28
+
29
+ emit('update:count', currentCount.value);
30
+ };
31
+ </script>
32
+
33
+ <template>
34
+ <div>
35
+ <slot name="header"></slot>
36
+ <div>
37
+ <div>{{ currentCount }}</div>
38
+ <button @click="handleClick">Click me</button>
39
+ </div>
40
+ <slot></slot>
41
+ <slot name="footer" :count="10"></slot>
42
+ </div>
43
+ </template>
44
+
45
+ <style scoped></style>
@@ -0,0 +1,3 @@
1
+ import DemoPkg from './demo-pkg.vue';
2
+
3
+ export { DemoPkg };
@@ -2,10 +2,11 @@
2
2
  "compilerOptions": {
3
3
  "target": "ESNext",
4
4
  "jsx": "preserve",
5
+ "jsxImportSource": "vue",
5
6
  "lib": ["DOM", "ESNext"],
6
7
  "baseUrl": ".",
7
8
  "module": "ESNext",
8
- "moduleResolution": "node",
9
+ "moduleResolution": "bundler",
9
10
  "paths": {
10
11
  "@/*": ["./src/*"]
11
12
  },
@@ -14,10 +15,15 @@
14
15
  "strict": true,
15
16
  "strictNullChecks": true,
16
17
  "noUnusedLocals": true,
18
+ "declaration": true,
19
+ "emitDeclarationOnly": true,
17
20
  "outDir": "./dist",
18
21
  "allowSyntheticDefaultImports": true,
19
22
  "esModuleInterop": true,
20
- "forceConsistentCasingInFileNames": true
23
+ "forceConsistentCasingInFileNames": true,
24
+ "isolatedModules": true,
25
+ "verbatimModuleSyntax": true,
26
+ "skipLibCheck": true
21
27
  },
22
28
  "include": ["src/**/*"],
23
29
  "exclude": ["node_modules", "dist"]
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from 'tsdown';
2
+ import unpluginVue from 'unplugin-vue/rolldown';
3
+ import unpluginVueJsx from 'unplugin-vue-jsx/rolldown';
4
+
5
+ export default defineConfig({
6
+ entry: ['src/index.ts'],
7
+ plugins: [unpluginVue({ isProduction: true }), unpluginVueJsx()],
8
+ clean: true,
9
+ dts: {
10
+ vue: true
11
+ },
12
+ platform: 'neutral',
13
+ shims: true,
14
+ sourcemap: false,
15
+ minify: false
16
+ });
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from 'vite';
2
+ import vue from 'unplugin-vue/vite';
3
+
4
+ export default defineConfig({
5
+ root: './playground',
6
+ plugins: [vue()]
7
+ });
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from 'vitest/config';
2
+ import vue from 'unplugin-vue/vite';
3
+
4
+ export default defineConfig({
5
+ plugins: [vue()],
6
+ test: {
7
+ environment: 'happy-dom'
8
+ }
9
+ });
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "soybeanjs/react"
3
- }
@@ -1,6 +0,0 @@
1
- {
2
- "name": "template-react",
3
- "type": "module",
4
- "version": "0.0.0",
5
- "scripts": {}
6
- }
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "soybeanjs/react-native"
3
- }
@@ -1,6 +0,0 @@
1
- {
2
- "name": "template-react-native",
3
- "type": "module",
4
- "version": "0.0.0",
5
- "scripts": {}
6
- }
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "soybeanjs/solid"
3
- }