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.
- package/README.md +5 -3
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/template-pnpm-monorepo/.vscode/extensions.json +0 -3
- package/template-pnpm-monorepo/package.json +9 -9
- package/template-pnpm-monorepo/packages/demo-pkg/package.json +3 -3
- package/template-pnpm-monorepo/tsconfig.base.json +11 -5
- package/{template-ts-lib-unbuild → template-tsdown}/.vscode/extensions.json +0 -3
- package/template-tsdown/package.json +61 -0
- package/{template-solid → template-tsdown}/tsconfig.json +8 -2
- package/template-tsdown/tsdown.config.ts +17 -0
- package/{template-ts-lib-tsup → template-tsup}/.vscode/extensions.json +0 -3
- package/{template-ts-lib-tsup → template-tsup}/package.json +15 -12
- package/template-tsup/src/index.ts +3 -0
- package/template-unbuild/.github/workflows/release.yml +46 -0
- package/template-unbuild/.vscode/extensions.json +19 -0
- package/template-unbuild/.vscode/launch.json +15 -0
- package/template-unbuild/.vscode/settings.json +9 -0
- package/template-unbuild/_editorconfig +11 -0
- package/template-unbuild/_gitattributes +21 -0
- package/{template-react → template-unbuild}/_gitignore +0 -4
- package/template-unbuild/_prettierrc +0 -0
- package/template-unbuild/eslint.config.js +3 -0
- package/{template-ts-lib-unbuild → template-unbuild}/package.json +15 -12
- package/template-vue/er.config.ts +9 -0
- package/template-vue/eslint.config.js +21 -18
- package/template-vue/package.json +26 -25
- package/template-vue/src/layouts/base/index.vue +11 -0
- package/template-vue/src/layouts/blank/index.vue +11 -0
- package/template-vue/src/router/index.ts +4 -7
- package/template-vue/src/typings/components.d.ts +17 -0
- package/template-vue/src/views/views/(builtin)/403.vue +7 -0
- package/template-vue/src/views/{home.vue → views/(builtin)/404/index.vue} +2 -2
- package/template-vue/src/views/views/(builtin)/404.vue +7 -0
- package/template-vue/src/views/views/(builtin)/login/index.vue +7 -0
- package/template-vue/src/views/views/(builtin)/wip.vue +7 -0
- package/template-vue/src/views/views/demo.tsx +7 -0
- package/template-vue/src/views/views/home/child.vue +7 -0
- package/template-vue/src/views/views/home/child2.vue +7 -0
- package/template-vue/src/views/views/home/index.vue +9 -0
- package/template-vue/src/views/views/list/[id].vue +11 -0
- package/template-vue/src/views/views/list/add.vue +7 -0
- package/template-vue/src/views/views/list/components/demo.vue +0 -0
- package/template-vue/src/views/views/list/components/search-list.vue +7 -0
- package/template-vue/src/views/views/list/detail2-[[id]]-[[userId]].vue +7 -0
- package/template-vue/src/views/views/list/detail_[id]_[userId].vue +7 -0
- package/template-vue/src/views/views/list/edit_[id].vue +7 -0
- package/template-vue/src/views/views/list/index.vue +7 -0
- package/template-vue/src/views/views/list/modules/list-table.vue +7 -0
- package/template-vue/tsconfig.json +3 -0
- package/template-vue/uno.config.ts +9 -6
- package/template-vue/vite.config.ts +14 -8
- package/template-vue-tsdown/.github/workflows/release.yml +46 -0
- package/template-vue-tsdown/.vscode/extensions.json +19 -0
- package/template-vue-tsdown/.vscode/launch.json +15 -0
- package/template-vue-tsdown/.vscode/settings.json +9 -0
- package/template-vue-tsdown/_editorconfig +11 -0
- package/template-vue-tsdown/_gitattributes +21 -0
- package/{template-react-native → template-vue-tsdown}/_gitignore +0 -4
- package/template-vue-tsdown/_prettierrc +0 -0
- package/template-vue-tsdown/eslint.config.js +5 -0
- package/template-vue-tsdown/package.json +65 -0
- package/template-vue-tsdown/playground/index.html +12 -0
- package/template-vue-tsdown/playground/src/App.vue +7 -0
- package/template-vue-tsdown/playground/src/index.ts +5 -0
- package/template-vue-tsdown/playground/src/style.css +53 -0
- package/template-vue-tsdown/src/demo-pkg.vue +45 -0
- package/template-vue-tsdown/src/index.ts +3 -0
- package/{template-ts-lib-tsup → template-vue-tsdown}/tsconfig.json +8 -2
- package/template-vue-tsdown/tsdown.config.ts +16 -0
- package/template-vue-tsdown/vite.config.ts +7 -0
- package/template-vue-tsdown/vitest.config.ts +9 -0
- package/template-react/_eslintrc +0 -3
- package/template-react/package.json +0 -6
- package/template-react-native/_eslintrc +0 -3
- package/template-react-native/package.json +0 -6
- package/template-solid/_eslintrc +0 -3
- package/template-solid/_gitignore +0 -34
- package/template-solid/package.json +0 -6
- package/template-ts-lib-unbuild/_npmrc +0 -2
- package/template-ts-lib-unbuild/tsconfig.json +0 -24
- /package/{template-ts-lib-tsup → template-tsdown}/.github/workflows/release.yml +0 -0
- /package/{template-ts-lib-tsup → template-tsdown}/.vscode/launch.json +0 -0
- /package/{template-ts-lib-tsup → template-tsdown}/.vscode/settings.json +0 -0
- /package/{template-ts-lib-tsup → template-tsdown}/_editorconfig +0 -0
- /package/{template-ts-lib-tsup → template-tsdown}/_gitattributes +0 -0
- /package/{template-ts-lib-tsup → template-tsdown}/_gitignore +0 -0
- /package/{template-react-native → template-tsdown}/_npmrc +0 -0
- /package/{template-ts-lib-tsup → template-tsdown}/_prettierrc +0 -0
- /package/{template-ts-lib-tsup → template-tsdown}/eslint.config.js +0 -0
- /package/{template-ts-lib-tsup → template-tsdown}/src/index.ts +0 -0
- /package/{template-ts-lib-unbuild → template-tsup}/.github/workflows/release.yml +0 -0
- /package/{template-ts-lib-unbuild → template-tsup}/.vscode/launch.json +0 -0
- /package/{template-ts-lib-unbuild → template-tsup}/.vscode/settings.json +0 -0
- /package/{template-ts-lib-unbuild → template-tsup}/_editorconfig +0 -0
- /package/{template-ts-lib-unbuild → template-tsup}/_gitattributes +0 -0
- /package/{template-ts-lib-unbuild → template-tsup}/_gitignore +0 -0
- /package/{template-react → template-tsup}/_npmrc +0 -0
- /package/{template-ts-lib-unbuild → template-tsup}/_prettierrc +0 -0
- /package/{template-ts-lib-unbuild → template-tsup}/eslint.config.js +0 -0
- /package/{template-react-native → template-tsup}/tsconfig.json +0 -0
- /package/{template-ts-lib-tsup → template-tsup}/tsup.config.ts +0 -0
- /package/{template-solid → template-unbuild}/_npmrc +0 -0
- /package/{template-ts-lib-unbuild → template-unbuild}/build.config.ts +0 -0
- /package/{template-ts-lib-unbuild → template-unbuild}/src/index.ts +0 -0
- /package/{template-react → template-unbuild}/tsconfig.json +0 -0
- /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>
|
|
@@ -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": "
|
|
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
|
+
});
|
package/template-react/_eslintrc
DELETED
package/template-solid/_eslintrc
DELETED
|
@@ -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,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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|