create-bubbles 0.0.7 → 0.0.8

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 +2 -2
  2. package/template-react-rsbuild/.env +3 -0
  3. package/template-react-rsbuild/.env.development +0 -0
  4. package/template-react-rsbuild/.env.production +0 -0
  5. package/template-react-rsbuild/.prettierignore +34 -0
  6. package/template-react-rsbuild/.prettierrc +17 -0
  7. package/template-react-rsbuild/biome.json +101 -0
  8. package/template-react-rsbuild/commitlint.config.js +1 -0
  9. package/template-react-rsbuild/index.en-US.md +0 -0
  10. package/template-react-rsbuild/index.html +7 -0
  11. package/template-react-rsbuild/index.zh-CN.md +0 -0
  12. package/template-react-rsbuild/lefthook.yml +14 -0
  13. package/template-react-rsbuild/package.json +39 -0
  14. package/template-react-rsbuild/pnpm-lock.yaml +3615 -0
  15. package/template-react-rsbuild/postcss.config.mjs +5 -0
  16. package/template-react-rsbuild/public/.gitkeep +0 -0
  17. package/template-react-rsbuild/rsbuild.config.ts +28 -0
  18. package/template-react-rsbuild/src/App.tsx +9 -0
  19. package/template-react-rsbuild/src/components/Loading/PageLoading.tsx +11 -0
  20. package/template-react-rsbuild/src/env.d.ts +1 -0
  21. package/template-react-rsbuild/src/index.tsx +20 -0
  22. package/template-react-rsbuild/src/pages/home/index.tsx +26 -0
  23. package/template-react-rsbuild/src/router/index.tsx +27 -0
  24. package/template-react-rsbuild/src/styles/index.css +16 -0
  25. package/template-react-rsbuild/src/types/auto-import.d.ts +47 -0
  26. package/template-react-rsbuild/src/utils/request/axios.ts +93 -0
  27. package/template-react-rsbuild/src/utils/request/index.ts +60 -0
  28. package/template-react-rsbuild/tsconfig.json +29 -0
  29. package/template-react-rsbuild/uno.config.ts +8 -0
  30. package/template-vue-rsbuild/.env +3 -0
  31. package/template-vue-rsbuild/.env.development +0 -0
  32. package/template-vue-rsbuild/.env.production +0 -0
  33. package/template-vue-rsbuild/.prettierignore +4 -0
  34. package/template-vue-rsbuild/.prettierrc +17 -0
  35. package/template-vue-rsbuild/biome.json +112 -0
  36. package/template-vue-rsbuild/index.html +7 -0
  37. package/template-vue-rsbuild/package.json +30 -0
  38. package/template-vue-rsbuild/postcss.config.mjs +5 -0
  39. package/template-vue-rsbuild/public/.gitkeep +0 -0
  40. package/template-vue-rsbuild/rsbuild.config.ts +28 -0
  41. package/template-vue-rsbuild/src/App.vue +29 -0
  42. package/template-vue-rsbuild/src/env.d.ts +9 -0
  43. package/template-vue-rsbuild/src/index.css +6 -0
  44. package/template-vue-rsbuild/src/index.ts +7 -0
  45. package/template-vue-rsbuild/src/styles/index.css +16 -0
  46. package/template-vue-rsbuild/src/types/auto-import.d.ts +91 -0
  47. package/template-vue-rsbuild/tsconfig.json +29 -0
  48. package/template-vue-rsbuild/uno.config.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bubbles",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "author": "bubbles plant",
6
6
  "bin": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "files": [
10
10
  "index.js",
11
- "template-*/*",
11
+ "template-*/**",
12
12
  "dist"
13
13
  ],
14
14
  "scripts": {
@@ -0,0 +1,3 @@
1
+ # port
2
+ PUBLIC_PORT = 9200
3
+ PUBLIC_PATH = '/'
File without changes
File without changes
@@ -0,0 +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
34
+ CHANGELOG.*.md
@@ -0,0 +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
+ }
@@ -0,0 +1,101 @@
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
+ }
16
+ },
17
+ "organizeImports": {
18
+ "enabled": false
19
+ },
20
+ "linter": {
21
+ "rules": {
22
+ "style": {
23
+ "useImportType": "off",
24
+ "useNumberNamespace": "off",
25
+ "useNodejsImportProtocol": "off",
26
+ "noNonNullAssertion": "off",
27
+ "noUnusedTemplateLiteral": "off"
28
+ },
29
+ "complexity": {
30
+ "noUselessTypeConstraint": "off",
31
+ "noForEach": "off"
32
+ },
33
+ "correctness": {
34
+ "useExhaustiveDependencies": "off"
35
+ },
36
+ "suspicious": {
37
+ "noGlobalIsNan": "off",
38
+ "noGlobalIsFinite": "off",
39
+ "noExplicitAny": "off",
40
+ "noArrayIndexKey": "off",
41
+ "noConfusingVoidType": "off",
42
+ "noThenProperty": "off"
43
+ },
44
+ "performance": {
45
+ "noDelete": "off",
46
+ "noAccumulatingSpread": "off"
47
+ },
48
+ "a11y": {
49
+ "noAriaHiddenOnFocusable": "off",
50
+ "noLabelWithoutControl": "off",
51
+ "useFocusableInteractive": "off",
52
+ "useKeyWithClickEvents": "off",
53
+ "useSemanticElements": "off"
54
+ }
55
+ }
56
+ },
57
+ "css": {
58
+ "formatter": {
59
+ "quoteStyle": "single"
60
+ }
61
+ },
62
+ "overrides": [
63
+ {
64
+ "include": ["**/*.test.ts", "**/*.test.tsx", "tests/**/*", "scripts/**/*"],
65
+ "linter": {
66
+ "rules": {
67
+ "style": {
68
+ "noParameterAssign": "off"
69
+ },
70
+ "suspicious": {
71
+ "noThenProperty": "off",
72
+ "noImplicitAnyLet": "off"
73
+ },
74
+ "complexity": {
75
+ "noUselessFragments": "off"
76
+ },
77
+ "a11y": {
78
+ "useValidAnchor": "off",
79
+ "useAnchorContent": "off",
80
+ "useKeyWithClickEvents": "off"
81
+ }
82
+ }
83
+ }
84
+ },
85
+ {
86
+ "include": ["components/*/demo/*"],
87
+ "linter": {
88
+ "rules": {
89
+ "correctness": {
90
+ "noVoidTypeReturn": "off"
91
+ },
92
+ "a11y": {
93
+ "useValidAnchor": "off",
94
+ "useAnchorContent": "off",
95
+ "useKeyWithClickEvents": "off"
96
+ }
97
+ }
98
+ }
99
+ }
100
+ ]
101
+ }
@@ -0,0 +1 @@
1
+ module.exports = { extends: ['@commitlint/config-conventional'] };
File without changes
@@ -0,0 +1,7 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head></head>
4
+ <body>
5
+ <div id="<%= mountId %>"></div>
6
+ </body>
7
+ </html>
File without changes
@@ -0,0 +1,14 @@
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}
12
+
13
+
14
+
@@ -0,0 +1,39 @@
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.23.0",
17
+ "axios": "^1.7.9",
18
+ "dayjs": "^1.11.13",
19
+ "react": "^19.0.0",
20
+ "react-dom": "^19.0.0",
21
+ "react-router": "^7.1.1",
22
+ "zustand": "^5.0.3"
23
+ },
24
+ "devDependencies": {
25
+ "@biomejs/biome": "^1.9.3",
26
+ "@commitlint/config-conventional": "^19.6.0",
27
+ "@ianvs/prettier-plugin-sort-imports": "^4.4.0",
28
+ "@rsbuild/core": "^1.1.8",
29
+ "@rsbuild/plugin-react": "^1.0.7",
30
+ "@types/react": "^19.0.0",
31
+ "@types/react-dom": "^19.0.0",
32
+ "@unocss/postcss": "^0.65.4",
33
+ "lefthook": "^1.10.1",
34
+ "prettier": "^3.3.3",
35
+ "typescript": "^5.7.2",
36
+ "unocss": "^0.65.4",
37
+ "unplugin-auto-import": "^19.0.0"
38
+ }
39
+ }