create-bubbles 0.0.12 → 0.0.16

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 (58) hide show
  1. package/index.js +3 -3
  2. package/package.json +41 -38
  3. package/template-react-rsbuild/.env +2 -2
  4. package/template-react-rsbuild/.gitignore +7 -0
  5. package/template-react-rsbuild/.npmrc +1 -0
  6. package/template-react-rsbuild/.prettierignore +33 -33
  7. package/template-react-rsbuild/.prettierrc +17 -17
  8. package/template-react-rsbuild/.vscode/settings.json +21 -0
  9. package/template-react-rsbuild/README.md +29 -29
  10. package/template-react-rsbuild/biome.json +102 -102
  11. package/template-react-rsbuild/commitlint.config.js +1 -1
  12. package/template-react-rsbuild/index.html +6 -6
  13. package/template-react-rsbuild/lefthook.yml +14 -14
  14. package/template-react-rsbuild/package.json +40 -39
  15. package/template-react-rsbuild/src/App.tsx +9 -9
  16. package/template-react-rsbuild/src/components/Loading/PageLoading.tsx +11 -11
  17. package/template-react-rsbuild/src/env.d.ts +1 -1
  18. package/template-react-rsbuild/src/index.tsx +20 -20
  19. package/template-react-rsbuild/src/pages/home/index.tsx +5 -26
  20. package/template-react-rsbuild/src/router/index.tsx +27 -27
  21. package/template-react-rsbuild/src/store/modules/user.ts +11 -11
  22. package/template-react-rsbuild/src/styles/index.css +16 -16
  23. package/template-react-rsbuild/src/types/auto-import.d.ts +47 -47
  24. package/template-react-rsbuild/src/utils/request/axios.ts +82 -82
  25. package/template-react-rsbuild/src/utils/request/index.ts +77 -77
  26. package/template-react-rsbuild/tsconfig.json +29 -29
  27. package/template-react-rsbuild/uno.config.ts +8 -8
  28. package/template-vue-rsbuild/.env +2 -2
  29. package/template-vue-rsbuild/.gitignore +10 -0
  30. package/template-vue-rsbuild/.npmrc +1 -0
  31. package/template-vue-rsbuild/.prettierignore +4 -4
  32. package/template-vue-rsbuild/.prettierrc +18 -18
  33. package/template-vue-rsbuild/README.md +29 -29
  34. package/template-vue-rsbuild/index.html +6 -6
  35. package/template-vue-rsbuild/lefthook.yml +11 -11
  36. package/template-vue-rsbuild/src/App.vue +3 -3
  37. package/template-vue-rsbuild/src/store/index.ts +7 -7
  38. package/template-vue-rsbuild/src/store/modules/user.ts +16 -16
  39. package/template-vue-rsbuild/src/styles/index.css +16 -16
  40. package/template-vue-rsbuild/src/utils/request/axios.ts +83 -83
  41. package/template-vue-rsbuild/src/utils/request/index.ts +77 -77
  42. package/template-vue-rsbuild/src/views/home/index.vue +8 -8
  43. package/template-vue-rsbuild/tsconfig.json +29 -29
  44. package/template-vue-rsbuild/uno.config.ts +9 -9
  45. package/template-vue-rsbuild-eslint/.env +2 -2
  46. package/template-vue-rsbuild-eslint/.gitignore +13 -0
  47. package/template-vue-rsbuild-eslint/.prettierignore +4 -4
  48. package/template-vue-rsbuild-eslint/.prettierrc +17 -17
  49. package/template-vue-rsbuild-eslint/README.md +29 -29
  50. package/template-vue-rsbuild-eslint/index.html +6 -6
  51. package/template-vue-rsbuild-eslint/package.json +31 -31
  52. package/template-vue-rsbuild-eslint/src/App.vue +29 -29
  53. package/template-vue-rsbuild-eslint/src/index.css +6 -6
  54. package/template-vue-rsbuild-eslint/src/styles/index.css +16 -16
  55. package/template-vue-rsbuild-eslint/src/views/home/index.vue +12 -12
  56. package/template-react-rsbuild/index.en-US.md +0 -0
  57. package/template-react-rsbuild/index.zh-CN.md +0 -0
  58. package/template-vue-rsbuild/pnpm-lock.yaml +0 -3324
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env node
2
-
3
- import './dist/index.mjs';
1
+ #!/usr/bin/env node
2
+
3
+ import './dist/index.mjs';
package/package.json CHANGED
@@ -1,38 +1,41 @@
1
- {
2
- "name": "create-bubbles",
3
- "version": "0.0.12",
4
- "type": "module",
5
- "author": "bubbles plant",
6
- "bin": {
7
- "create-vite": "index.js"
8
- },
9
- "files": [
10
- "index.js",
11
- "template-*/**",
12
- "dist"
13
- ],
14
- "scripts": {
15
- "dev": "unbuild --stub",
16
- "build": "unbuild",
17
- "typecheck": "tsc --noEmit",
18
- "prepublishOnly": "npm run build"
19
- },
20
- "engines": {
21
- "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
22
- },
23
- "repository": {
24
- "type": "git",
25
- "url": "git+https://github.com/vitejs/vite.git",
26
- "directory": "packages/create-vite"
27
- },
28
- "devDependencies": {
29
- "@types/cross-spawn": "^6.0.6",
30
- "@types/minimist": "^1.2.5",
31
- "@types/prompts": "^2.4.9",
32
- "cross-spawn": "^7.0.6",
33
- "minimist": "^1.2.8",
34
- "picocolors": "^1.1.1",
35
- "prompts": "^2.4.2",
36
- "unbuild": "^3.3.1"
37
- }
38
- }
1
+ {
2
+ "name": "create-bubbles",
3
+ "version": "0.0.16",
4
+ "type": "module",
5
+ "author": "bubbles plant",
6
+ "bin": {
7
+ "create-vite": "index.js"
8
+ },
9
+ "files": [
10
+ "index.js",
11
+ "template-*/**",
12
+ "dist"
13
+ ],
14
+ "engines": {
15
+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/vitejs/vite.git",
20
+ "directory": "packages/create-vite"
21
+ },
22
+ "devDependencies": {
23
+ "@types/cross-spawn": "^6.0.6",
24
+ "@types/minimist": "^1.2.5",
25
+ "@types/prompts": "^2.4.9",
26
+ "cross-spawn": "^7.0.6",
27
+ "minimist": "^1.2.8",
28
+ "picocolors": "^1.1.1",
29
+ "prompts": "^2.4.2",
30
+ "unbuild": "^3.3.1"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "registry": "https://registry.npmjs.org/"
35
+ },
36
+ "scripts": {
37
+ "dev": "unbuild --stub",
38
+ "build": "unbuild",
39
+ "typecheck": "tsc --noEmit"
40
+ }
41
+ }
@@ -1,3 +1,3 @@
1
- # port
2
- PUBLIC_PORT = 9200
1
+ # port
2
+ PUBLIC_PORT = 9200
3
3
  PUBLIC_PATH = '/'
@@ -0,0 +1,7 @@
1
+ node_modules
2
+ dist
3
+ pnpm-lock.yaml
4
+
5
+ *.zip
6
+ *.rar
7
+ *.local
@@ -0,0 +1 @@
1
+ registry=https://registry.npmmirror.com/
@@ -1,34 +1,34 @@
1
- **/*.png
2
- **/*.svg
3
- CODEOWNERS
4
- .dockerignore
5
- Dockerfile.ui-test
6
- .dumi/tmp
7
- .dumi/tmp-production
8
- !dumi
9
- # AUTHORS.txt
10
- lib/
11
- es/
12
- dist/
13
- # _site/
14
- # server
15
- # coverage/
16
- # CNAME
17
- LICENSE
18
- yarn.lock
19
- # netlify.toml
20
- yarn-error.log
21
- *.sh
22
- *.snap
23
- components/*/*.js
24
- components/*/*.jsx
25
- .gitignore
26
- .npmignore
27
- .prettierignore
28
- .DS_Store
29
- .editorconfig
30
- .eslintignore
31
- .history
32
- **/*.yml
33
- *.html
1
+ **/*.png
2
+ **/*.svg
3
+ CODEOWNERS
4
+ .dockerignore
5
+ Dockerfile.ui-test
6
+ .dumi/tmp
7
+ .dumi/tmp-production
8
+ !dumi
9
+ # AUTHORS.txt
10
+ lib/
11
+ es/
12
+ dist/
13
+ # _site/
14
+ # server
15
+ # coverage/
16
+ # CNAME
17
+ LICENSE
18
+ yarn.lock
19
+ # netlify.toml
20
+ yarn-error.log
21
+ *.sh
22
+ *.snap
23
+ components/*/*.js
24
+ components/*/*.jsx
25
+ .gitignore
26
+ .npmignore
27
+ .prettierignore
28
+ .DS_Store
29
+ .editorconfig
30
+ .eslintignore
31
+ .history
32
+ **/*.yml
33
+ *.html
34
34
  CHANGELOG.*.md
@@ -1,17 +1,17 @@
1
- {
2
- "singleQuote": true,
3
- "jsxSingleQuote": false,
4
- "trailingComma": "all",
5
- "printWidth": 100,
6
- "proseWrap": "never",
7
- "importOrder": ["^(react|react-dom)$", "^([a-z]|@[a-z])", "", ".*"],
8
- "plugins": ["@ianvs/prettier-plugin-sort-imports"],
9
- "overrides": [
10
- {
11
- "files": ".prettierrc",
12
- "options": {
13
- "parser": "json"
14
- }
15
- }
16
- ]
17
- }
1
+ {
2
+ "singleQuote": true,
3
+ "jsxSingleQuote": false,
4
+ "trailingComma": "all",
5
+ "printWidth": 100,
6
+ "proseWrap": "never",
7
+ "importOrder": ["^(react|react-dom)$", "^([a-z]|@[a-z])", "", ".*"],
8
+ "plugins": ["@ianvs/prettier-plugin-sort-imports"],
9
+ "overrides": [
10
+ {
11
+ "files": ".prettierrc",
12
+ "options": {
13
+ "parser": "json"
14
+ }
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "editor.defaultFormatter": "biomejs.biome",// 控制相关文件嵌套展示
4
+ "explorer.fileNesting.enabled": true,
5
+ "explorer.fileNesting.expand": false,
6
+ "explorer.fileNesting.patterns": {
7
+ "*.ts": "$(capture).test.ts, $(capture).test.tsx",
8
+ "*.tsx": "$(capture).test.ts, $(capture).test.tsx",
9
+ "*.env": "$(capture).env.*",
10
+ "package.json": "pnpm-lock.yaml",
11
+ ".prettierrc": ".prettierignore"
12
+ },
13
+ "cSpell.words": [
14
+ "ahooks",
15
+ "ianvs",
16
+ "lefthook",
17
+ "rsbuild",
18
+ "unocss",
19
+ "unplugin"
20
+ ],
21
+ }
@@ -1,29 +1,29 @@
1
- # Rsbuild Project
2
-
3
- ## Setup
4
-
5
- Install the dependencies:
6
-
7
- ```bash
8
- pnpm install
9
- ```
10
-
11
- ## Get Started
12
-
13
- Start the dev server:
14
-
15
- ```bash
16
- pnpm dev
17
- ```
18
-
19
- Build the app for production:
20
-
21
- ```bash
22
- pnpm build
23
- ```
24
-
25
- Preview the production build locally:
26
-
27
- ```bash
28
- pnpm preview
29
- ```
1
+ # Rsbuild Project
2
+
3
+ ## Setup
4
+
5
+ Install the dependencies:
6
+
7
+ ```bash
8
+ pnpm install
9
+ ```
10
+
11
+ ## Get Started
12
+
13
+ Start the dev server:
14
+
15
+ ```bash
16
+ pnpm dev
17
+ ```
18
+
19
+ Build the app for production:
20
+
21
+ ```bash
22
+ pnpm build
23
+ ```
24
+
25
+ Preview the production build locally:
26
+
27
+ ```bash
28
+ pnpm preview
29
+ ```
@@ -1,102 +1,102 @@
1
- {
2
- "files": {
3
- "ignoreUnknown": true,
4
- "ignore": ["dist/*", "node_modules", "package.json", "auto-import.d.ts", "*.js"]
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/**/*"],
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
- }
1
+ {
2
+ "files": {
3
+ "ignoreUnknown": true,
4
+ "ignore": ["dist/*", "node_modules", "package.json", "auto-import.d.ts", "*.js", ".vscode/*"]
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/**/*"],
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
+ }
@@ -1 +1 @@
1
- module.exports = { extends: ['@commitlint/config-conventional'] };
1
+ module.exports = { extends: ['@commitlint/config-conventional'] }
@@ -1,7 +1,7 @@
1
- <!doctype html>
2
- <html>
3
- <head></head>
4
- <body>
5
- <div id="<%= mountId %>"></div>
6
- </body>
1
+ <!doctype html>
2
+ <html>
3
+ <head></head>
4
+ <body>
5
+ <div id="<%= mountId %>"></div>
6
+ </body>
7
7
  </html>
@@ -1,14 +1,14 @@
1
- pre-commit:
2
- commands:
3
- check:
4
- glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
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}
12
-
13
-
14
-
1
+ pre-commit:
2
+ commands:
3
+ check:
4
+ glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
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}
12
+
13
+
14
+
@@ -1,39 +1,40 @@
1
- {
2
- "name": "template-react",
3
- "private": true,
4
- "version": "1.0.0",
5
- "scripts": {
6
- "dev": "rsbuild dev --open",
7
- "dev:prod": "rsbuild dev --env-mode production",
8
- "build": "rsbuild build",
9
- "check": "biome check --write",
10
- "format": "prettier --write .",
11
- "preview": "rsbuild preview",
12
- "reinstall": "rimraf pnpm-lock.yaml && rimraf node_modules && pnpm install"
13
- },
14
- "dependencies": {
15
- "ahooks": "^3.8.4",
16
- "antd": "^5.24.5",
17
- "axios": "^1.8.4",
18
- "dayjs": "^1.11.13",
19
- "react": "^19.1.0",
20
- "react-dom": "^19.1.0",
21
- "react-router": "^7.4.1",
22
- "zustand": "^5.0.3"
23
- },
24
- "devDependencies": {
25
- "@biomejs/biome": "^1.9.4",
26
- "@commitlint/config-conventional": "^19.8.0",
27
- "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
28
- "@rsbuild/core": "^1.3.1",
29
- "@rsbuild/plugin-react": "^1.1.1",
30
- "@types/react": "^19.0.12",
31
- "@types/react-dom": "^19.0.4",
32
- "@unocss/postcss": "^0.65.4",
33
- "lefthook": "^1.11.6",
34
- "prettier": "^3.5.3",
35
- "typescript": "^5.8.2",
36
- "unocss": "^0.65.4",
37
- "unplugin-auto-import": "^19.1.2"
38
- }
39
- }
1
+ {
2
+ "name": "critical-care-engineering-center",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "dev": "rsbuild dev --env-mode development",
7
+ "dev:prod": "rsbuild dev --env-mode production",
8
+ "build": "rsbuild build",
9
+ "check": "biome check --write",
10
+ "format": "prettier --write .",
11
+ "preview": "rsbuild preview",
12
+ "reinstall": "rimraf pnpm-lock.yaml && rimraf node_modules && pnpm install"
13
+ },
14
+ "dependencies": {
15
+ "@ant-design/icons-vue": "^7.0.1",
16
+ "ahooks": "^3.8.4",
17
+ "antd": "^5.24.7",
18
+ "axios": "^1.8.4",
19
+ "dayjs": "^1.11.13",
20
+ "react": "^19.1.0",
21
+ "react-dom": "^19.1.0",
22
+ "react-router": "^7.5.0",
23
+ "zustand": "^5.0.3"
24
+ },
25
+ "devDependencies": {
26
+ "@biomejs/biome": "^1.9.4",
27
+ "@commitlint/config-conventional": "^19.8.0",
28
+ "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
29
+ "@rsbuild/core": "^1.3.6",
30
+ "@rsbuild/plugin-react": "^1.2.0",
31
+ "@types/react": "^19.1.2",
32
+ "@types/react-dom": "^19.1.2",
33
+ "@unocss/postcss": "66.1.0-beta.11",
34
+ "lefthook": "^1.11.10",
35
+ "prettier": "^3.5.3",
36
+ "typescript": "^5.8.3",
37
+ "unocss": "66.1.0-beta.11",
38
+ "unplugin-auto-import": "^19.1.2"
39
+ }
40
+ }
@@ -1,9 +1,9 @@
1
- import { RouterProvider } from 'react-router';
2
-
3
- import router from './router';
4
-
5
- const App = () => {
6
- return <RouterProvider router={router} />;
7
- };
8
-
9
- export default App;
1
+ import { RouterProvider } from 'react-router';
2
+
3
+ import router from './router';
4
+
5
+ const App = () => {
6
+ return <RouterProvider router={router} />;
7
+ };
8
+
9
+ export default App;