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
@@ -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
- }
@@ -1,34 +0,0 @@
1
- # Logs
2
- logs
3
- *.log
4
- npm-debug.log*
5
- yarn-debug.log*
6
- yarn-error.log*
7
- pnpm-debug.log*
8
- lerna-debug.log*
9
-
10
- node_modules
11
- .DS_Store
12
- dist
13
- dist-ssr
14
- coverage
15
- *.local
16
-
17
- /cypress/videos/
18
- /cypress/screenshots/
19
-
20
- # Editor directories and files
21
- .vscode/*
22
- !.vscode/extensions.json
23
- !.vscode/settings.json
24
- !.vscode/launch.json
25
- .idea
26
- *.suo
27
- *.ntvs*
28
- *.njsproj
29
- *.sln
30
- *.sw?
31
-
32
- package-lock.json
33
- yarn.lock
34
- pnpm-lock.yaml
@@ -1,6 +0,0 @@
1
- {
2
- "name": "template-solid",
3
- "type": "module",
4
- "version": "0.0.0",
5
- "scripts": {}
6
- }
@@ -1,2 +0,0 @@
1
- registry=https://registry.npmmirror.com/
2
- shamefully-hoist=true
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ESNext",
4
- "jsx": "preserve",
5
- "lib": ["DOM", "ESNext"],
6
- "baseUrl": ".",
7
- "module": "ESNext",
8
- "moduleResolution": "node",
9
- "paths": {
10
- "@/*": ["./src/*"]
11
- },
12
- "resolveJsonModule": true,
13
- "types": ["node"],
14
- "strict": true,
15
- "strictNullChecks": true,
16
- "noUnusedLocals": true,
17
- "outDir": "./dist",
18
- "allowSyntheticDefaultImports": true,
19
- "esModuleInterop": true,
20
- "forceConsistentCasingInFileNames": true
21
- },
22
- "include": ["src/**/*"],
23
- "exclude": ["node_modules", "dist"]
24
- }
File without changes
File without changes