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.
Files changed (48) hide show
  1. package/package.json +1 -1
  2. package/template-react-rsbuild/lefthook.yml +1 -1
  3. package/template-react-rsbuild/rsbuild.config.ts +34 -28
  4. package/template-vue-rsbuild/.prettierrc +1 -0
  5. package/template-vue-rsbuild/.vscode/settings.json +7 -0
  6. package/template-vue-rsbuild/biome.json +102 -113
  7. package/template-vue-rsbuild/lefthook.yml +11 -0
  8. package/template-vue-rsbuild/package.json +32 -31
  9. package/template-vue-rsbuild/pnpm-lock.yaml +3324 -0
  10. package/template-vue-rsbuild/rsbuild.config.ts +35 -28
  11. package/template-vue-rsbuild/src/App.vue +1 -27
  12. package/template-vue-rsbuild/src/index.ts +15 -15
  13. package/template-vue-rsbuild/src/router/modules/index.tsx +2 -2
  14. package/template-vue-rsbuild/src/types/auto-import.d.ts +91 -91
  15. package/template-vue-rsbuild/src/types/env.d.ts +17 -0
  16. package/template-vue-rsbuild/src/views/home/index.vue +5 -7
  17. package/template-vue-rsbuild-eslint/.env +3 -0
  18. package/template-vue-rsbuild-eslint/.env.development +0 -0
  19. package/template-vue-rsbuild-eslint/.env.production +0 -0
  20. package/template-vue-rsbuild-eslint/.prettierignore +4 -0
  21. package/template-vue-rsbuild-eslint/.prettierrc +17 -0
  22. package/{template-vue-rsbuild → template-vue-rsbuild-eslint}/.vscode/extensions.json +3 -3
  23. package/template-vue-rsbuild-eslint/README.md +29 -0
  24. package/template-vue-rsbuild-eslint/biome.json +110 -0
  25. package/template-vue-rsbuild-eslint/index.html +7 -0
  26. package/template-vue-rsbuild-eslint/package.json +31 -0
  27. package/template-vue-rsbuild-eslint/postcss.config.mjs +5 -0
  28. package/template-vue-rsbuild-eslint/public/.gitkeep +0 -0
  29. package/template-vue-rsbuild-eslint/rsbuild.config.ts +28 -0
  30. package/template-vue-rsbuild-eslint/src/App.vue +29 -0
  31. package/{template-vue-rsbuild → template-vue-rsbuild-eslint}/src/env.d.ts +5 -5
  32. package/template-vue-rsbuild-eslint/src/index.ts +15 -0
  33. package/template-vue-rsbuild-eslint/src/router/guard/index.tsx +6 -0
  34. package/template-vue-rsbuild-eslint/src/router/guard/permissionGuard.ts +8 -0
  35. package/template-vue-rsbuild-eslint/src/router/index.tsx +14 -0
  36. package/template-vue-rsbuild-eslint/src/router/modules/index.tsx +10 -0
  37. package/template-vue-rsbuild-eslint/src/store/index.ts +7 -0
  38. package/template-vue-rsbuild-eslint/src/store/modules/user.ts +16 -0
  39. package/template-vue-rsbuild-eslint/src/styles/index.css +16 -0
  40. package/template-vue-rsbuild-eslint/src/types/auto-import.d.ts +91 -0
  41. package/template-vue-rsbuild-eslint/src/utils/request/axios.ts +83 -0
  42. package/template-vue-rsbuild-eslint/src/utils/request/index.ts +77 -0
  43. package/template-vue-rsbuild-eslint/src/views/home/index.vue +13 -0
  44. package/template-vue-rsbuild-eslint/tsconfig.json +29 -0
  45. package/template-vue-rsbuild-eslint/uno.config.ts +9 -0
  46. package/template-react-rsbuild/postcss.config.mjs +0 -5
  47. package/template-vue-rsbuild/postcss.config.mjs +0 -5
  48. /package/{template-vue-rsbuild → template-vue-rsbuild-eslint}/src/index.css +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bubbles",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "author": "bubbles plant",
6
6
  "bin": {
@@ -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,vue}"
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
- export default defineConfig({
6
- html: {
7
- template: './index.html',
8
- },
9
- resolve: {
10
- alias: {
11
- '@': './src',
12
- },
13
- },
14
- server: {
15
- port: process.env.PUBLIC_PORT,
16
- },
17
- plugins: [pluginReact()],
18
- tools: {
19
- rspack: {
20
- plugins: [
21
- AutoImport({
22
- imports: ['react', 'react-router', 'react-router-dom'],
23
- dts: './src/types/auto-import.d.ts',
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
+ })
@@ -4,6 +4,7 @@
4
4
  "trailingComma": "all",
5
5
  "printWidth": 100,
6
6
  "proseWrap": "never",
7
+ "semi": false,
7
8
  "importOrder": ["^(vue|vue-router)$", "^([a-z]|@[a-z])", "", ".*"],
8
9
  "plugins": ["@ianvs/prettier-plugin-sort-imports"],
9
10
  "overrides": [
@@ -0,0 +1,7 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "editor.defaultFormatter": "biomejs.biome",
4
+ "[vue]": {
5
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
6
+ }
7
+ }
@@ -1,113 +1,102 @@
1
- {
2
- "files": {
3
- "ignoreUnknown": true,
4
- "ignore": [
5
- ".dumi/tmp*",
6
- ".dumi/scripts/clarity.js",
7
- "dist/*",
8
- "es/**/*",
9
- "lib/**/*",
10
- "_site/**/*",
11
- "node_modules",
12
- "server",
13
- "scripts/previewEditor/**/*",
14
- "package.json"
15
- ]
16
- },
17
- "formatter": {
18
- "enabled": true,
19
- "indentStyle": "space",
20
- "lineWidth": 100,
21
- "indentWidth": 2
22
- },
23
- "javascript": {
24
- "formatter": {
25
- "quoteStyle": "single",
26
- "semicolons": "asNeeded"
27
- }
28
- },
29
- "organizeImports": {
30
- "enabled": false
31
- },
32
- "linter": {
33
- "rules": {
34
- "style": {
35
- "useImportType": "off",
36
- "useNumberNamespace": "off",
37
- "useNodejsImportProtocol": "off",
38
- "noNonNullAssertion": "off",
39
- "noUnusedTemplateLiteral": "off"
40
- },
41
- "complexity": {
42
- "noUselessTypeConstraint": "off",
43
- "noForEach": "off"
44
- },
45
- "correctness": {
46
- "useExhaustiveDependencies": "off"
47
- },
48
- "suspicious": {
49
- "noGlobalIsNan": "off",
50
- "noGlobalIsFinite": "off",
51
- "noExplicitAny": "off",
52
- "noArrayIndexKey": "off",
53
- "noConfusingVoidType": "off",
54
- "noThenProperty": "off"
55
- },
56
- "performance": {
57
- "noDelete": "off",
58
- "noAccumulatingSpread": "off"
59
- },
60
- "a11y": {
61
- "noAriaHiddenOnFocusable": "off",
62
- "noLabelWithoutControl": "off",
63
- "useFocusableInteractive": "off",
64
- "useKeyWithClickEvents": "off",
65
- "useSemanticElements": "off"
66
- }
67
- }
68
- },
69
- "css": {
70
- "formatter": {
71
- "quoteStyle": "single"
72
- }
73
- },
74
- "overrides": [
75
- {
76
- "include": ["**/*.test.ts", "**/*.test.tsx", "tests/**/*", "scripts/**/*", ".dumi/**/*"],
77
- "linter": {
78
- "rules": {
79
- "style": {
80
- "noParameterAssign": "off"
81
- },
82
- "suspicious": {
83
- "noThenProperty": "off",
84
- "noImplicitAnyLet": "off"
85
- },
86
- "complexity": {
87
- "noUselessFragments": "off"
88
- },
89
- "a11y": {
90
- "useValidAnchor": "off",
91
- "useAnchorContent": "off",
92
- "useKeyWithClickEvents": "off"
93
- }
94
- }
95
- }
96
- },
97
- {
98
- "include": ["components/*/demo/*"],
99
- "linter": {
100
- "rules": {
101
- "correctness": {
102
- "noVoidTypeReturn": "off"
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-vue",
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-vue": "^1.0.7",
24
- "@unocss/postcss": "^65.5.0",
25
- "lefthook": "^1.11.6",
26
- "prettier": "^3.5.3",
27
- "typescript": "^5.8.2",
28
- "unocss": "^65.5.0",
29
- "unplugin-auto-import": "^19.1.2"
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
+ }