create-bubbles 0.0.11 → 0.0.12
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 +1 -1
- package/template-react-rsbuild/lefthook.yml +1 -1
- package/template-react-rsbuild/rsbuild.config.ts +34 -28
- package/template-vue-rsbuild/.prettierrc +1 -0
- package/template-vue-rsbuild/.vscode/settings.json +7 -0
- package/template-vue-rsbuild/biome.json +102 -113
- package/template-vue-rsbuild/lefthook.yml +11 -0
- package/template-vue-rsbuild/package.json +32 -31
- package/template-vue-rsbuild/pnpm-lock.yaml +3324 -0
- package/template-vue-rsbuild/rsbuild.config.ts +35 -28
- package/template-vue-rsbuild/src/App.vue +1 -27
- package/template-vue-rsbuild/src/index.ts +15 -15
- package/template-vue-rsbuild/src/router/modules/index.tsx +2 -2
- package/template-vue-rsbuild/src/types/auto-import.d.ts +91 -91
- package/template-vue-rsbuild/src/types/env.d.ts +17 -0
- package/template-vue-rsbuild/src/views/home/index.vue +5 -7
- package/template-vue-rsbuild-eslint/.env +3 -0
- package/template-vue-rsbuild-eslint/.env.development +0 -0
- package/template-vue-rsbuild-eslint/.env.production +0 -0
- package/template-vue-rsbuild-eslint/.prettierignore +4 -0
- package/template-vue-rsbuild-eslint/.prettierrc +17 -0
- package/{template-vue-rsbuild → template-vue-rsbuild-eslint}/.vscode/extensions.json +3 -3
- package/template-vue-rsbuild-eslint/README.md +29 -0
- package/template-vue-rsbuild-eslint/biome.json +110 -0
- package/template-vue-rsbuild-eslint/index.html +7 -0
- package/template-vue-rsbuild-eslint/package.json +31 -0
- package/template-vue-rsbuild-eslint/postcss.config.mjs +5 -0
- package/template-vue-rsbuild-eslint/public/.gitkeep +0 -0
- package/template-vue-rsbuild-eslint/rsbuild.config.ts +28 -0
- package/template-vue-rsbuild-eslint/src/App.vue +29 -0
- package/{template-vue-rsbuild → template-vue-rsbuild-eslint}/src/env.d.ts +5 -5
- package/template-vue-rsbuild-eslint/src/index.ts +15 -0
- package/template-vue-rsbuild-eslint/src/router/guard/index.tsx +6 -0
- package/template-vue-rsbuild-eslint/src/router/guard/permissionGuard.ts +8 -0
- package/template-vue-rsbuild-eslint/src/router/index.tsx +14 -0
- package/template-vue-rsbuild-eslint/src/router/modules/index.tsx +10 -0
- package/template-vue-rsbuild-eslint/src/store/index.ts +7 -0
- package/template-vue-rsbuild-eslint/src/store/modules/user.ts +16 -0
- package/template-vue-rsbuild-eslint/src/styles/index.css +16 -0
- package/template-vue-rsbuild-eslint/src/types/auto-import.d.ts +91 -0
- package/template-vue-rsbuild-eslint/src/utils/request/axios.ts +83 -0
- package/template-vue-rsbuild-eslint/src/utils/request/index.ts +77 -0
- package/template-vue-rsbuild-eslint/src/views/home/index.vue +13 -0
- package/template-vue-rsbuild-eslint/tsconfig.json +29 -0
- package/template-vue-rsbuild-eslint/uno.config.ts +9 -0
- package/template-react-rsbuild/postcss.config.mjs +0 -5
- package/template-vue-rsbuild/postcss.config.mjs +0 -5
- /package/{template-vue-rsbuild → template-vue-rsbuild-eslint}/src/index.css +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
pre-commit:
|
|
2
2
|
commands:
|
|
3
3
|
check:
|
|
4
|
-
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc
|
|
4
|
+
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
|
|
5
5
|
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
|
|
6
6
|
stage_fixed: true
|
|
7
7
|
|
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
import { defineConfig } from '@rsbuild/core'
|
|
2
|
-
import { pluginReact } from '@rsbuild/plugin-react'
|
|
3
|
-
import AutoImport from 'unplugin-auto-import/rspack'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { defineConfig } from '@rsbuild/core'
|
|
2
|
+
import { pluginReact } from '@rsbuild/plugin-react'
|
|
3
|
+
import AutoImport from 'unplugin-auto-import/rspack'
|
|
4
|
+
import UnoCSS from '@unocss/postcss'
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
html: {
|
|
8
|
+
template: './index.html',
|
|
9
|
+
},
|
|
10
|
+
resolve: {
|
|
11
|
+
alias: {
|
|
12
|
+
'@': './src',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
server: {
|
|
16
|
+
port: Number(process.env.PUBLIC_PORT),
|
|
17
|
+
},
|
|
18
|
+
plugins: [pluginReact()],
|
|
19
|
+
tools: {
|
|
20
|
+
rspack: {
|
|
21
|
+
plugins: [
|
|
22
|
+
AutoImport({
|
|
23
|
+
imports: ['react', 'react-router', 'react-router-dom'],
|
|
24
|
+
dts: './src/types/auto-import.d.ts',
|
|
25
|
+
}),
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
postcss: {
|
|
29
|
+
postcssOptions: {
|
|
30
|
+
plugins: [UnoCSS()],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
})
|
|
@@ -1,113 +1,102 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"ignoreUnknown": true,
|
|
4
|
-
"ignore": [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
},
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
"a11y": {
|
|
105
|
-
"useValidAnchor": "off",
|
|
106
|
-
"useAnchorContent": "off",
|
|
107
|
-
"useKeyWithClickEvents": "off"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"files": {
|
|
3
|
+
"ignoreUnknown": true,
|
|
4
|
+
"ignore": ["dist/*", "node_modules", "package.json"]
|
|
5
|
+
},
|
|
6
|
+
"formatter": {
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"indentStyle": "space",
|
|
9
|
+
"lineWidth": 100,
|
|
10
|
+
"indentWidth": 2
|
|
11
|
+
},
|
|
12
|
+
"javascript": {
|
|
13
|
+
"formatter": {
|
|
14
|
+
"quoteStyle": "single",
|
|
15
|
+
"semicolons": "asNeeded"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"organizeImports": {
|
|
19
|
+
"enabled": false
|
|
20
|
+
},
|
|
21
|
+
"linter": {
|
|
22
|
+
"rules": {
|
|
23
|
+
"style": {
|
|
24
|
+
"useImportType": "off",
|
|
25
|
+
"useNumberNamespace": "off",
|
|
26
|
+
"useNodejsImportProtocol": "off",
|
|
27
|
+
"noNonNullAssertion": "off",
|
|
28
|
+
"noUnusedTemplateLiteral": "off"
|
|
29
|
+
},
|
|
30
|
+
"complexity": {
|
|
31
|
+
"noUselessTypeConstraint": "off",
|
|
32
|
+
"noForEach": "off"
|
|
33
|
+
},
|
|
34
|
+
"correctness": {
|
|
35
|
+
"useExhaustiveDependencies": "off"
|
|
36
|
+
},
|
|
37
|
+
"suspicious": {
|
|
38
|
+
"noGlobalIsNan": "off",
|
|
39
|
+
"noGlobalIsFinite": "off",
|
|
40
|
+
"noExplicitAny": "off",
|
|
41
|
+
"noArrayIndexKey": "off",
|
|
42
|
+
"noConfusingVoidType": "off",
|
|
43
|
+
"noThenProperty": "off"
|
|
44
|
+
},
|
|
45
|
+
"performance": {
|
|
46
|
+
"noDelete": "off",
|
|
47
|
+
"noAccumulatingSpread": "off"
|
|
48
|
+
},
|
|
49
|
+
"a11y": {
|
|
50
|
+
"noAriaHiddenOnFocusable": "off",
|
|
51
|
+
"noLabelWithoutControl": "off",
|
|
52
|
+
"useFocusableInteractive": "off",
|
|
53
|
+
"useKeyWithClickEvents": "off",
|
|
54
|
+
"useSemanticElements": "off"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"css": {
|
|
59
|
+
"formatter": {
|
|
60
|
+
"quoteStyle": "single"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"overrides": [
|
|
64
|
+
{
|
|
65
|
+
"include": ["**/*.test.ts", "**/*.test.tsx", "tests/**/*", "scripts/**/*", ".dumi/**/*"],
|
|
66
|
+
"linter": {
|
|
67
|
+
"rules": {
|
|
68
|
+
"style": {
|
|
69
|
+
"noParameterAssign": "off"
|
|
70
|
+
},
|
|
71
|
+
"suspicious": {
|
|
72
|
+
"noThenProperty": "off",
|
|
73
|
+
"noImplicitAnyLet": "off"
|
|
74
|
+
},
|
|
75
|
+
"complexity": {
|
|
76
|
+
"noUselessFragments": "off"
|
|
77
|
+
},
|
|
78
|
+
"a11y": {
|
|
79
|
+
"useValidAnchor": "off",
|
|
80
|
+
"useAnchorContent": "off",
|
|
81
|
+
"useKeyWithClickEvents": "off"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"include": ["components/*/demo/*"],
|
|
88
|
+
"linter": {
|
|
89
|
+
"rules": {
|
|
90
|
+
"correctness": {
|
|
91
|
+
"noVoidTypeReturn": "off"
|
|
92
|
+
},
|
|
93
|
+
"a11y": {
|
|
94
|
+
"useValidAnchor": "off",
|
|
95
|
+
"useAnchorContent": "off",
|
|
96
|
+
"useKeyWithClickEvents": "off"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
pre-commit:
|
|
2
|
+
commands:
|
|
3
|
+
check:
|
|
4
|
+
glob: '*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,vue}'
|
|
5
|
+
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
|
|
6
|
+
stage_fixed: true
|
|
7
|
+
|
|
8
|
+
commit-msg:
|
|
9
|
+
commands:
|
|
10
|
+
'lint commit message':
|
|
11
|
+
run: npx commitlint --edit {1}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "template-
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rsbuild build",
|
|
8
|
-
"check": "biome check --write",
|
|
9
|
-
"dev": "rsbuild dev --open",
|
|
10
|
-
"format": "prettier --write .",
|
|
11
|
-
"preview": "rsbuild preview"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"ant-design-vue": "^4.2.6",
|
|
15
|
-
"pinia": "^3.0.1",
|
|
16
|
-
"vue": "^3.5.13",
|
|
17
|
-
"vue-router": "^4.5.0"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@biomejs/biome": "^1.9.4",
|
|
21
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
22
|
-
"@rsbuild/core": "^1.3.1",
|
|
23
|
-
"@rsbuild/plugin-
|
|
24
|
-
"@
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "template-project",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "rsbuild build",
|
|
8
|
+
"check": "biome check --write",
|
|
9
|
+
"dev": "rsbuild dev --open",
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"preview": "rsbuild preview"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"ant-design-vue": "^4.2.6",
|
|
15
|
+
"pinia": "^3.0.1",
|
|
16
|
+
"vue": "^3.5.13",
|
|
17
|
+
"vue-router": "^4.5.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@biomejs/biome": "^1.9.4",
|
|
21
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
22
|
+
"@rsbuild/core": "^1.3.1",
|
|
23
|
+
"@rsbuild/plugin-sass": "^1.3.1",
|
|
24
|
+
"@rsbuild/plugin-vue": "^1.0.7",
|
|
25
|
+
"@unocss/postcss": "^65.5.0",
|
|
26
|
+
"lefthook": "^1.11.6",
|
|
27
|
+
"prettier": "^3.5.3",
|
|
28
|
+
"typescript": "^5.8.2",
|
|
29
|
+
"unocss": "^65.5.0",
|
|
30
|
+
"unplugin-auto-import": "^19.1.2"
|
|
31
|
+
}
|
|
32
|
+
}
|