create-bubbles 0.0.6 → 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.
- package/package.json +2 -1
- package/template-react-rsbuild/.env +3 -0
- package/template-react-rsbuild/.env.development +0 -0
- package/template-react-rsbuild/.env.production +0 -0
- package/template-react-rsbuild/.prettierignore +34 -0
- package/template-react-rsbuild/.prettierrc +17 -0
- package/template-react-rsbuild/README.md +29 -0
- package/template-react-rsbuild/biome.json +101 -0
- package/template-react-rsbuild/commitlint.config.js +1 -0
- package/template-react-rsbuild/index.en-US.md +0 -0
- package/template-react-rsbuild/index.html +7 -0
- package/template-react-rsbuild/index.zh-CN.md +0 -0
- package/template-react-rsbuild/lefthook.yml +14 -0
- package/template-react-rsbuild/package.json +39 -0
- package/template-react-rsbuild/pnpm-lock.yaml +3615 -0
- package/template-react-rsbuild/postcss.config.mjs +5 -0
- package/template-react-rsbuild/public/.gitkeep +0 -0
- package/template-react-rsbuild/rsbuild.config.ts +28 -0
- package/template-react-rsbuild/src/App.tsx +9 -0
- package/template-react-rsbuild/src/components/Loading/PageLoading.tsx +11 -0
- package/template-react-rsbuild/src/env.d.ts +1 -0
- package/template-react-rsbuild/src/index.tsx +20 -0
- package/template-react-rsbuild/src/pages/home/index.tsx +26 -0
- package/template-react-rsbuild/src/router/index.tsx +27 -0
- package/template-react-rsbuild/src/styles/index.css +16 -0
- package/template-react-rsbuild/src/types/auto-import.d.ts +47 -0
- package/template-react-rsbuild/src/utils/request/axios.ts +93 -0
- package/template-react-rsbuild/src/utils/request/index.ts +60 -0
- package/template-react-rsbuild/tsconfig.json +29 -0
- package/template-react-rsbuild/uno.config.ts +8 -0
- package/template-vue-rsbuild/.env +3 -0
- package/template-vue-rsbuild/.env.development +0 -0
- package/template-vue-rsbuild/.env.production +0 -0
- package/template-vue-rsbuild/.prettierignore +4 -0
- package/template-vue-rsbuild/.prettierrc +17 -0
- package/template-vue-rsbuild/.vscode/extensions.json +3 -0
- package/template-vue-rsbuild/README.md +29 -0
- package/template-vue-rsbuild/biome.json +112 -0
- package/template-vue-rsbuild/index.html +7 -0
- package/template-vue-rsbuild/package.json +30 -0
- package/template-vue-rsbuild/postcss.config.mjs +5 -0
- package/template-vue-rsbuild/public/.gitkeep +0 -0
- package/template-vue-rsbuild/rsbuild.config.ts +28 -0
- package/template-vue-rsbuild/src/App.vue +29 -0
- package/template-vue-rsbuild/src/env.d.ts +9 -0
- package/template-vue-rsbuild/src/index.css +6 -0
- package/template-vue-rsbuild/src/index.ts +7 -0
- package/template-vue-rsbuild/src/styles/index.css +16 -0
- package/template-vue-rsbuild/src/types/auto-import.d.ts +91 -0
- package/template-vue-rsbuild/tsconfig.json +29 -0
- package/template-vue-rsbuild/uno.config.ts +9 -0
package/package.json
CHANGED
|
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,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
|
+
```
|
|
@@ -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
|
|
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
|
+
}
|