create-soybean 1.2.0 → 1.2.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/package.json +2 -2
- package/template-pnpm-monorepo/package.json +1 -1
- package/template-pnpm-monorepo/packages/demo-pkg/package.json +1 -1
- package/template-ts-lib-tsup/package.json +2 -2
- package/template-ts-lib-unbuild/package.json +2 -2
- package/template-vue/eslint.config.js +21 -18
- package/template-vue/package.json +8 -9
- package/template-vue/src/router/index.ts +1 -1
- package/template-vue/src/typings/components.d.ts +17 -0
- package/template-vue/src/views/home/index.vue +9 -0
- package/template-vue/tsconfig.json +3 -0
- package/template-vue/uno.config.ts +9 -6
- package/template-vue/vite.config.ts +3 -1
- package/template-vue/src/views/home.vue +0 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-soybean",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"description": "SoybeanJS's command line to create different project templates",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Soybean",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"template-*"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"consola": "3.4.
|
|
31
|
+
"consola": "3.4.2",
|
|
32
32
|
"kolorist": "1.8.0",
|
|
33
33
|
"minimist": "1.2.8",
|
|
34
34
|
"prompts": "2.4.2"
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"cli-progress": "3.12.0",
|
|
33
|
-
"consola": "3.4.
|
|
33
|
+
"consola": "3.4.2",
|
|
34
34
|
"dayjs": "1.11.13",
|
|
35
35
|
"execa": "9.5.2",
|
|
36
36
|
"kolorist": "1.8.0",
|
|
37
37
|
"ofetch": "1.4.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@soybeanjs/cli": "1.2.
|
|
40
|
+
"@soybeanjs/cli": "1.2.1",
|
|
41
41
|
"@soybeanjs/eslint-config": "1.6.0",
|
|
42
42
|
"@types/cli-progress": "3.11.6",
|
|
43
43
|
"@types/node": "22.13.10",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"cli-progress": "3.12.0",
|
|
32
|
-
"consola": "3.4.
|
|
32
|
+
"consola": "3.4.2",
|
|
33
33
|
"dayjs": "1.11.13",
|
|
34
34
|
"execa": "9.5.2",
|
|
35
35
|
"kolorist": "1.8.0",
|
|
36
36
|
"ofetch": "1.4.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@soybeanjs/cli": "1.2.
|
|
39
|
+
"@soybeanjs/cli": "1.2.1",
|
|
40
40
|
"@soybeanjs/eslint-config": "1.6.0",
|
|
41
41
|
"@types/cli-progress": "3.11.6",
|
|
42
42
|
"@types/node": "22.13.10",
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { defineConfig } from '@soybeanjs/eslint-config';
|
|
2
2
|
|
|
3
|
-
export default defineConfig(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
'
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
export default defineConfig(
|
|
4
|
+
{ vue: true, unocss: true },
|
|
5
|
+
{
|
|
6
|
+
rules: {
|
|
7
|
+
'vue/multi-word-component-names': [
|
|
8
|
+
'warn',
|
|
9
|
+
{
|
|
10
|
+
ignores: ['index', 'App']
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
'vue/component-name-in-template-casing': [
|
|
14
|
+
'warn',
|
|
15
|
+
'PascalCase',
|
|
16
|
+
{
|
|
17
|
+
registeredComponentsOnly: false,
|
|
18
|
+
ignores: ['/^icon-/']
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
'unocss/order-attributify': 'off'
|
|
22
|
+
}
|
|
20
23
|
}
|
|
21
|
-
|
|
24
|
+
);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"private": true,
|
|
6
6
|
"packageManager": "pnpm@10.6.3",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "
|
|
8
|
+
"build": "pnpm typecheck && pnpm build-only",
|
|
9
9
|
"build-only": "vite build",
|
|
10
10
|
"cleanup": "soy cleanup",
|
|
11
11
|
"commit": "soy git-commit",
|
|
@@ -19,28 +19,27 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@unocss/reset": "66.0.0",
|
|
21
21
|
"pinia": "3.0.1",
|
|
22
|
+
"soy-ui": "0.0.1-beta.9",
|
|
22
23
|
"vue": "3.5.13",
|
|
23
24
|
"vue-router": "4.5.0"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
|
-
"@
|
|
27
|
+
"@soybean-ui/unocss-preset": "0.0.1-beta.9",
|
|
28
|
+
"@soybeanjs/cli": "1.2.1",
|
|
27
29
|
"@soybeanjs/eslint-config": "1.6.0",
|
|
28
30
|
"@types/node": "22.13.10",
|
|
29
31
|
"@unocss/eslint-config": "66.0.0",
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
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",
|
|
32
|
+
"@vitejs/plugin-vue": "5.2.3",
|
|
33
|
+
"@vitejs/plugin-vue-jsx": "4.1.2",
|
|
36
34
|
"eslint": "9.22.0",
|
|
37
35
|
"eslint-plugin-vue": "10.0.0",
|
|
38
36
|
"klona": "2.0.6",
|
|
39
37
|
"lint-staged": "15.5.0",
|
|
40
38
|
"simple-git-hooks": "2.11.1",
|
|
41
39
|
"typescript": "5.8.2",
|
|
40
|
+
"unocss": "66.0.0",
|
|
42
41
|
"unplugin-vue-components": "28.4.1",
|
|
43
|
-
"vite": "6.2.
|
|
42
|
+
"vite": "6.2.2",
|
|
44
43
|
"vue-eslint-parser": "10.1.1",
|
|
45
44
|
"vue-tsc": "2.2.8"
|
|
46
45
|
},
|
|
@@ -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
|
+
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { defineConfig } from '
|
|
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
|
-
|
|
8
|
+
include: [/\.vue($|\?)/, /.*\/soy-ui.*\.js/]
|
|
11
9
|
}
|
|
12
10
|
},
|
|
13
11
|
transformers: [transformerDirectives(), transformerVariantGroup()],
|
|
14
|
-
presets: [
|
|
12
|
+
presets: [
|
|
13
|
+
presetWind3({ dark: 'class' }),
|
|
14
|
+
presetSoybeanUI({
|
|
15
|
+
color: 'default'
|
|
16
|
+
})
|
|
17
|
+
]
|
|
15
18
|
});
|
|
@@ -4,6 +4,7 @@ import vue from '@vitejs/plugin-vue';
|
|
|
4
4
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
5
5
|
import unocss from 'unocss/vite';
|
|
6
6
|
import Components from 'unplugin-vue-components/vite';
|
|
7
|
+
import SoybeanUIResolver from 'soy-ui/resolver';
|
|
7
8
|
|
|
8
9
|
export default defineConfig({
|
|
9
10
|
resolve: {
|
|
@@ -17,7 +18,8 @@ export default defineConfig({
|
|
|
17
18
|
unocss(),
|
|
18
19
|
Components({
|
|
19
20
|
dts: 'src/typings/components.d.ts',
|
|
20
|
-
types: [{ from: 'vue-router', names: ['RouterLink', 'RouterView'] }]
|
|
21
|
+
types: [{ from: 'vue-router', names: ['RouterLink', 'RouterView'] }],
|
|
22
|
+
resolvers: [SoybeanUIResolver()]
|
|
21
23
|
})
|
|
22
24
|
]
|
|
23
25
|
});
|