create-bubbles 0.1.13 → 0.1.17
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/dist/index.js +7 -8
- package/index.js +2 -2
- package/package.json +49 -48
- package/template-vp-monorepo-react-nestjs/.vscode/extensions.json +3 -3
- package/LICENSE +0 -21
- package/template-nextjs-vinext-eslint/.dockerignore +0 -3
- package/template-nextjs-vinext-eslint/.vscode/settings.json +0 -53
- package/template-nextjs-vinext-eslint/Dockerfile +0 -21
- package/template-nextjs-vinext-eslint/README.md +0 -100
- package/template-nextjs-vinext-eslint/commitlint.config.js +0 -1
- package/template-nextjs-vinext-eslint/docker-compose.yaml +0 -22
- package/template-nextjs-vinext-eslint/eslint.config.js +0 -20
- package/template-nextjs-vinext-eslint/lefthook.yml +0 -11
- package/template-nextjs-vinext-eslint/next.config.ts +0 -8
- package/template-nextjs-vinext-eslint/nginx.conf +0 -14
- package/template-nextjs-vinext-eslint/package.json +0 -50
- package/template-nextjs-vinext-eslint/pnpm-workspace.yaml +0 -7
- package/template-nextjs-vinext-eslint/public/file.svg +0 -1
- package/template-nextjs-vinext-eslint/public/globe.svg +0 -1
- package/template-nextjs-vinext-eslint/public/logo-white.svg +0 -128
- package/template-nextjs-vinext-eslint/public/next.svg +0 -1
- package/template-nextjs-vinext-eslint/public/vercel.svg +0 -1
- package/template-nextjs-vinext-eslint/public/window.svg +0 -1
- package/template-nextjs-vinext-eslint/src/app/_components/Header/header.module.css +0 -0
- package/template-nextjs-vinext-eslint/src/app/_components/Header/header.tsx +0 -7
- package/template-nextjs-vinext-eslint/src/app/_components/Main/index.tsx +0 -13
- package/template-nextjs-vinext-eslint/src/app/antd-provider.tsx +0 -30
- package/template-nextjs-vinext-eslint/src/app/icon.svg +0 -26
- package/template-nextjs-vinext-eslint/src/app/layout.tsx +0 -68
- package/template-nextjs-vinext-eslint/src/app/page.module.css +0 -141
- package/template-nextjs-vinext-eslint/src/app/page.tsx +0 -43
- package/template-nextjs-vinext-eslint/src/app/uno-css.tsx +0 -7
- package/template-nextjs-vinext-eslint/src/assets/icon/logo-white.svg +0 -128
- package/template-nextjs-vinext-eslint/src/assets/icon/logo.svg +0 -26
- package/template-nextjs-vinext-eslint/src/assets/image/QR.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_1.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_2.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_3.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_4.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/banner_top.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/icon_title_left.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/icon_title_right.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/img.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_COCT.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/207/347/247/221.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/205/264.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/206/266/345/273/272/345/267/245.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/344/270/255/351/223/201.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/344/272/224/345/206/266.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/344/272/244/351/200/232/345/273/272/350/256/276.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/345/273/272/344/270/232.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/345/273/272/347/255/221/347/247/221/345/255/246/351/231/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/347/224/265/345/273/272.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/344/270/255/345/233/275/351/223/201/345/273/272.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/345/256/234/351/200/232/344/270/226/347/272/252.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/346/225/260/347/273/264/347/251/272/351/227/264.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/346/226/260/346/230/212/350/276/260/345/273/272/350/256/276.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/346/236/227/345/220/214/346/243/252/345/233/275/351/231/205.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/346/270/235/351/232/206/351/233/206/345/233/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/347/273/264/345/241/224/347/247/221/346/212/200.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/350/205/276/350/256/257.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/350/265/233/350/277/252/344/277/241/346/201/257.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/344/272/244/351/200/232/345/244/247/345/255/246.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/344/272/244/351/200/232/350/201/214/344/270/232/345/255/246/351/231/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/345/244/247/345/255/246.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/345/267/245/345/225/206/350/201/214/344/270/232/345/255/246/351/231/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/345/267/245/347/250/213/350/201/214/344/270/232/346/212/200/346/234/257/345/255/246/351/231/242.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/207/215/345/272/206/345/273/272/345/267/245.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/230/277/351/207/214/344/272/221.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/231/206/345/206/233/345/206/233/345/214/273/345/244/247/345/255/246.png +0 -0
- package/template-nextjs-vinext-eslint/src/assets/image/parteners/logo_/351/276/231/346/271/226.png +0 -0
- package/template-nextjs-vinext-eslint/src/styles/globals.css +0 -47
- package/template-nextjs-vinext-eslint/src/types/vite-env.d.ts +0 -18
- package/template-nextjs-vinext-eslint/src/utils/env.ts +0 -14
- package/template-nextjs-vinext-eslint/src/utils/index.ts +0 -0
- package/template-nextjs-vinext-eslint/src/utils/request/core/index.ts +0 -182
- package/template-nextjs-vinext-eslint/src/utils/request/core/utils.ts +0 -30
- package/template-nextjs-vinext-eslint/src/utils/request/index.ts +0 -48
- package/template-nextjs-vinext-eslint/tsconfig.json +0 -34
- package/template-nextjs-vinext-eslint/uno.config.ts +0 -8
- package/template-nextjs-vinext-eslint/vite.config.ts +0 -8
- package/template-react-rsbuild-biome/.env +0 -5
- package/template-react-rsbuild-biome/.env.development +0 -1
- package/template-react-rsbuild-biome/.env.production +0 -1
- package/template-react-rsbuild-biome/.prettierignore +0 -34
- package/template-react-rsbuild-biome/.prettierrc +0 -16
- package/template-react-rsbuild-biome/.vscode/settings.json +0 -10
- package/template-react-rsbuild-biome/README.md +0 -29
- package/template-react-rsbuild-biome/biome.json +0 -116
- package/template-react-rsbuild-biome/commitlint.config.js +0 -1
- package/template-react-rsbuild-biome/index.html +0 -7
- package/template-react-rsbuild-biome/lefthook.yml +0 -14
- package/template-react-rsbuild-biome/package.json +0 -42
- package/template-react-rsbuild-biome/public/.gitkeep +0 -0
- package/template-react-rsbuild-biome/rsbuild.config.ts +0 -44
- package/template-react-rsbuild-biome/src/App.tsx +0 -9
- package/template-react-rsbuild-biome/src/assets/font/AlimamaShuHeiTi-Bold.ttf +0 -0
- package/template-react-rsbuild-biome/src/assets/icon/logo.svg +0 -7
- package/template-react-rsbuild-biome/src/components/Loading/PageLoading.tsx +0 -11
- package/template-react-rsbuild-biome/src/env.d.ts +0 -1
- package/template-react-rsbuild-biome/src/index.tsx +0 -18
- package/template-react-rsbuild-biome/src/layout/default/index.tsx +0 -10
- package/template-react-rsbuild-biome/src/pages/home/index.tsx +0 -5
- package/template-react-rsbuild-biome/src/router/index.tsx +0 -38
- package/template-react-rsbuild-biome/src/store/index.ts +0 -0
- package/template-react-rsbuild-biome/src/store/modules/user.ts +0 -11
- package/template-react-rsbuild-biome/src/styles/fonts.scss +0 -4
- package/template-react-rsbuild-biome/src/styles/index.scss +0 -19
- package/template-react-rsbuild-biome/src/styles/variables.scss +0 -4
- package/template-react-rsbuild-biome/src/types/auto-import.d.ts +0 -49
- package/template-react-rsbuild-biome/src/utils/env.ts +0 -10
- package/template-react-rsbuild-biome/src/utils/request/core/index.ts +0 -166
- package/template-react-rsbuild-biome/src/utils/request/core/utils.ts +0 -38
- package/template-react-rsbuild-biome/src/utils/request/index.ts +0 -43
- package/template-react-rsbuild-biome/tsconfig.json +0 -35
- package/template-react-rsbuild-biome/uno.config.ts +0 -8
- package/template-taro-vue-eslint/.editorconfig +0 -12
- package/template-taro-vue-eslint/.env +0 -3
- package/template-taro-vue-eslint/.env.development +0 -5
- package/template-taro-vue-eslint/.env.production +0 -5
- package/template-taro-vue-eslint/.vscode/settings.json +0 -57
- package/template-taro-vue-eslint/babel.config.js +0 -12
- package/template-taro-vue-eslint/commitlint.config.mjs +0 -1
- package/template-taro-vue-eslint/config/dev.ts +0 -27
- package/template-taro-vue-eslint/config/index.ts +0 -129
- package/template-taro-vue-eslint/config/output-root.ts +0 -11
- package/template-taro-vue-eslint/config/prod.ts +0 -39
- package/template-taro-vue-eslint/config/release.ts +0 -113
- package/template-taro-vue-eslint/eslint.config.mjs +0 -22
- package/template-taro-vue-eslint/lefthook.yaml +0 -13
- package/template-taro-vue-eslint/package.json +0 -115
- package/template-taro-vue-eslint/patches/@tarojs__plugin-mini-ci.patch +0 -13
- package/template-taro-vue-eslint/pnpm-workspace.yaml +0 -2
- package/template-taro-vue-eslint/project.config.json +0 -16
- package/template-taro-vue-eslint/src/api/common/upload.ts +0 -53
- package/template-taro-vue-eslint/src/app.config.ts +0 -19
- package/template-taro-vue-eslint/src/app.ts +0 -14
- package/template-taro-vue-eslint/src/assets/image/.gitkeep +0 -0
- package/template-taro-vue-eslint/src/index.html +0 -17
- package/template-taro-vue-eslint/src/pages/example/upload/index.config.ts +0 -3
- package/template-taro-vue-eslint/src/pages/example/upload/index.module.scss +0 -4
- package/template-taro-vue-eslint/src/pages/example/upload/index.vue +0 -71
- package/template-taro-vue-eslint/src/pages/index/index.config.ts +0 -3
- package/template-taro-vue-eslint/src/pages/index/index.module.scss +0 -4
- package/template-taro-vue-eslint/src/pages/index/index.vue +0 -71
- package/template-taro-vue-eslint/src/store/index.ts +0 -10
- package/template-taro-vue-eslint/src/store/modules/user.ts +0 -15
- package/template-taro-vue-eslint/src/store/taroStorage.ts +0 -7
- package/template-taro-vue-eslint/src/styles/index.css +0 -1
- package/template-taro-vue-eslint/src/styles/nut-theme.css +0 -4
- package/template-taro-vue-eslint/src/utils/env.ts +0 -13
- package/template-taro-vue-eslint/src/utils/index.ts +0 -40
- package/template-taro-vue-eslint/src/utils/request/core/index.ts +0 -193
- package/template-taro-vue-eslint/src/utils/request/core/utils.ts +0 -30
- package/template-taro-vue-eslint/src/utils/request/index.ts +0 -73
- package/template-taro-vue-eslint/tsconfig.json +0 -30
- package/template-taro-vue-eslint/types/components.d.ts +0 -12
- package/template-taro-vue-eslint/types/global.d.ts +0 -31
- package/template-taro-vue-eslint/types/vue.d.ts +0 -10
- package/template-taro-vue-eslint/unocss.config.ts +0 -38
- package/template-vp-monorepo-react-nestjs/.oxfmtrc.jsonc +0 -8
- package/template-vp-monorepo-react-nestjs/.oxlintrc.jsonc +0 -3
- package/template-vp-monorepo-react-nestjs/.specs//351/234/200/346/261/202.md +0 -5
- package/template-vp-monorepo-react-nestjs/.vite-hooks/commit-msg +0 -1
- package/template-vp-monorepo-react-nestjs/.vite-hooks/pre-commit +0 -1
- package/template-vp-monorepo-react-nestjs/README.md +0 -29
- package/template-vp-monorepo-react-nestjs/apps/service/.oxlintrc.jsonc +0 -3
- package/template-vp-monorepo-react-nestjs/apps/web/.env +0 -1
- package/template-vp-monorepo-react-nestjs/apps/web/.oxlintrc.jsonc +0 -4
- package/template-vp-monorepo-react-nestjs/apps/web/index.html +0 -13
- package/template-vp-monorepo-react-nestjs/apps/web/package.json +0 -39
- package/template-vp-monorepo-react-nestjs/apps/web/public/favicon.svg +0 -1
- package/template-vp-monorepo-react-nestjs/apps/web/public/icons.svg +0 -24
- package/template-vp-monorepo-react-nestjs/apps/web/src/App.tsx +0 -24
- package/template-vp-monorepo-react-nestjs/apps/web/src/assets/hero.png +0 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/assets/react.svg +0 -1
- package/template-vp-monorepo-react-nestjs/apps/web/src/assets/vite.svg +0 -1
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/Loading/PageLoading.tsx +0 -11
- package/template-vp-monorepo-react-nestjs/apps/web/src/main.tsx +0 -5
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/home/index.tsx +0 -17
- package/template-vp-monorepo-react-nestjs/apps/web/src/router/index.tsx +0 -25
- package/template-vp-monorepo-react-nestjs/apps/web/src/router/modules/.gitkeep +0 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/styles/index.css +0 -7
- package/template-vp-monorepo-react-nestjs/apps/web/src/types/auto-imports.d.ts +0 -58
- package/template-vp-monorepo-react-nestjs/apps/web/tsconfig.json +0 -32
- package/template-vp-monorepo-react-nestjs/apps/web/vite.config.ts +0 -32
- package/template-vp-monorepo-react-nestjs/commitlint.config.js +0 -0
- package/template-vp-monorepo-react-nestjs/package.json +0 -20
- package/template-vp-monorepo-react-nestjs/packages/utils/README.md +0 -23
- package/template-vp-monorepo-react-nestjs/packages/utils/package.json +0 -39
- package/template-vp-monorepo-react-nestjs/packages/utils/src/index.ts +0 -3
- package/template-vp-monorepo-react-nestjs/packages/utils/tests/index.test.ts +0 -6
- package/template-vp-monorepo-react-nestjs/packages/utils/tsconfig.json +0 -20
- package/template-vp-monorepo-react-nestjs/packages/utils/tsdown.config.ts +0 -9
- package/template-vp-monorepo-react-nestjs/packages/utils/vite.config.ts +0 -7
- package/template-vp-monorepo-react-nestjs/pnpm-workspace.yaml +0 -23
- package/template-vp-monorepo-react-nestjs/tsconfig.json +0 -9
- package/template-vp-monorepo-react-nestjs/vite.config.ts +0 -8
- package/template-vp-react/.env +0 -1
- package/template-vp-react/.oxfmtrc.jsonc +0 -8
- package/template-vp-react/.oxlintrc.jsonc +0 -11
- package/template-vp-react/.vite-hooks/commit-msg +0 -1
- package/template-vp-react/.vite-hooks/pre-commit +0 -1
- package/template-vp-react/.vscode/extensions.json +0 -3
- package/template-vp-react/.vscode/settings.json +0 -11
- package/template-vp-react/commitlint.config.js +0 -0
- package/template-vp-react/index.html +0 -13
- package/template-vp-react/package.json +0 -41
- package/template-vp-react/public/favicon.svg +0 -1
- package/template-vp-react/public/icons.svg +0 -24
- package/template-vp-react/src/App.tsx +0 -24
- package/template-vp-react/src/assets/hero.png +0 -0
- package/template-vp-react/src/assets/react.svg +0 -1
- package/template-vp-react/src/assets/vite.svg +0 -1
- package/template-vp-react/src/components/Loading/PageLoading.tsx +0 -11
- package/template-vp-react/src/main.tsx +0 -5
- package/template-vp-react/src/pages/home/index.tsx +0 -17
- package/template-vp-react/src/router/index.tsx +0 -25
- package/template-vp-react/src/router/modules/.gitkeep +0 -0
- package/template-vp-react/src/styles/index.css +0 -7
- package/template-vp-react/src/types/auto-imports.d.ts +0 -58
- package/template-vp-react/tsconfig.json +0 -32
- package/template-vp-react/vite.config.ts +0 -35
- package/template-vp-react-shadcn/.env +0 -1
- package/template-vp-react-shadcn/.oxfmtrc.jsonc +0 -8
- package/template-vp-react-shadcn/.oxlintrc.jsonc +0 -3
- package/template-vp-react-shadcn/.vite-hooks/commit-msg +0 -1
- package/template-vp-react-shadcn/.vite-hooks/pre-commit +0 -1
- package/template-vp-react-shadcn/.vscode/extensions.json +0 -3
- package/template-vp-react-shadcn/.vscode/settings.json +0 -12
- package/template-vp-react-shadcn/agents.md +0 -44
- package/template-vp-react-shadcn/commitlint.config.js +0 -1
- package/template-vp-react-shadcn/components.json +0 -25
- package/template-vp-react-shadcn/index.html +0 -13
- package/template-vp-react-shadcn/package.json +0 -56
- package/template-vp-react-shadcn/public/favicon.svg +0 -1
- package/template-vp-react-shadcn/public/icons.svg +0 -24
- package/template-vp-react-shadcn/src/App.tsx +0 -24
- package/template-vp-react-shadcn/src/api/.gitkeep +0 -0
- package/template-vp-react-shadcn/src/assets/hero.png +0 -0
- package/template-vp-react-shadcn/src/assets/react.svg +0 -1
- package/template-vp-react-shadcn/src/assets/vite.svg +0 -1
- package/template-vp-react-shadcn/src/components/Loading/PageLoading.tsx +0 -11
- package/template-vp-react-shadcn/src/components/Player/VideoJS/index.tsx +0 -163
- package/template-vp-react-shadcn/src/components/Player/index.ts +0 -7
- package/template-vp-react-shadcn/src/components/ui/button.tsx +0 -67
- package/template-vp-react-shadcn/src/components/ui/sonner.tsx +0 -43
- package/template-vp-react-shadcn/src/components/ui/spinner.tsx +0 -17
- package/template-vp-react-shadcn/src/hooks/.gitkeep +0 -0
- package/template-vp-react-shadcn/src/lib/utils.ts +0 -6
- package/template-vp-react-shadcn/src/main.tsx +0 -5
- package/template-vp-react-shadcn/src/pages/home/index.tsx +0 -96
- package/template-vp-react-shadcn/src/router/index.tsx +0 -25
- package/template-vp-react-shadcn/src/router/modules/.gitkeep +0 -0
- package/template-vp-react-shadcn/src/store/.gitkeep +0 -0
- package/template-vp-react-shadcn/src/styles/index.css +0 -16
- package/template-vp-react-shadcn/src/styles/shadcn.css +0 -127
- package/template-vp-react-shadcn/src/types/auto-imports.d.ts +0 -58
- package/template-vp-react-shadcn/src/utils/env/index.tsx +0 -6
- package/template-vp-react-shadcn/src/utils/request/alova-core/index.ts +0 -276
- package/template-vp-react-shadcn/src/utils/request/alova-core/utils.ts +0 -24
- package/template-vp-react-shadcn/src/utils/request/index.ts +0 -48
- package/template-vp-react-shadcn/src/utils/request/readme.md +0 -176
- package/template-vp-react-shadcn/tsconfig.json +0 -32
- package/template-vp-react-shadcn/vite.config.ts +0 -35
- package/template-vue-rolldown-oxc/.env +0 -4
- package/template-vue-rolldown-oxc/.env.development +0 -1
- package/template-vue-rolldown-oxc/.env.production +0 -1
- package/template-vue-rolldown-oxc/.gitlab-ci.yml +0 -84
- package/template-vue-rolldown-oxc/.oxlintrc.json +0 -4
- package/template-vue-rolldown-oxc/.prettierignore +0 -34
- package/template-vue-rolldown-oxc/.prettierrc +0 -18
- package/template-vue-rolldown-oxc/.vscode/settings.json +0 -11
- package/template-vue-rolldown-oxc/README.md +0 -3
- package/template-vue-rolldown-oxc/commitlint.config.js +0 -1
- package/template-vue-rolldown-oxc/index.html +0 -13
- package/template-vue-rolldown-oxc/lefthook.yml +0 -11
- package/template-vue-rolldown-oxc/package.json +0 -55
- package/template-vue-rolldown-oxc/public/vite.svg +0 -1
- package/template-vue-rolldown-oxc/src/App.vue +0 -17
- package/template-vue-rolldown-oxc/src/assets/icon/vue.svg +0 -1
- package/template-vue-rolldown-oxc/src/components/Icon/svg-icon.vue +0 -29
- package/template-vue-rolldown-oxc/src/layout/default/index.vue +0 -3
- package/template-vue-rolldown-oxc/src/main.ts +0 -13
- package/template-vue-rolldown-oxc/src/router/guard/index.tsx +0 -7
- package/template-vue-rolldown-oxc/src/router/guard/permissionGuard.ts +0 -8
- package/template-vue-rolldown-oxc/src/router/index.tsx +0 -15
- package/template-vue-rolldown-oxc/src/router/modules/index.tsx +0 -31
- package/template-vue-rolldown-oxc/src/store/index.ts +0 -10
- package/template-vue-rolldown-oxc/src/store/modules/user.ts +0 -17
- package/template-vue-rolldown-oxc/src/styles/element-plus-variables.css +0 -4
- package/template-vue-rolldown-oxc/src/styles/font.scss +0 -0
- package/template-vue-rolldown-oxc/src/styles/index.scss +0 -31
- package/template-vue-rolldown-oxc/src/styles/variables.scss +0 -3
- package/template-vue-rolldown-oxc/src/utils/env.ts +0 -10
- package/template-vue-rolldown-oxc/src/utils/request/core/index.ts +0 -166
- package/template-vue-rolldown-oxc/src/utils/request/core/utils.ts +0 -38
- package/template-vue-rolldown-oxc/src/utils/request/index.ts +0 -39
- package/template-vue-rolldown-oxc/src/views/home/index.vue +0 -16
- package/template-vue-rolldown-oxc/src/views/model/index.vue +0 -7
- package/template-vue-rolldown-oxc/src/vite-env.d.ts +0 -13
- package/template-vue-rolldown-oxc/tsconfig.json +0 -36
- package/template-vue-rolldown-oxc/uno.config.ts +0 -10
- package/template-vue-rolldown-oxc/vite.config.ts +0 -51
- package/template-vue-vite-eslint/.env +0 -6
- package/template-vue-vite-eslint/.env.development +0 -2
- package/template-vue-vite-eslint/.env.production +0 -1
- package/template-vue-vite-eslint/README.md +0 -3
- package/template-vue-vite-eslint/commitlint.config.js +0 -1
- package/template-vue-vite-eslint/eslint.config.js +0 -69
- package/template-vue-vite-eslint/index.html +0 -13
- package/template-vue-vite-eslint/lefthook.yml +0 -11
- package/template-vue-vite-eslint/package.json +0 -56
- package/template-vue-vite-eslint/public/vite.svg +0 -1
- package/template-vue-vite-eslint/src/App.vue +0 -19
- package/template-vue-vite-eslint/src/api/index.ts +0 -12
- package/template-vue-vite-eslint/src/assets/icon/computer-data.svg +0 -3
- package/template-vue-vite-eslint/src/assets/icon/cpu.svg +0 -3
- package/template-vue-vite-eslint/src/assets/icon/data-search.svg +0 -3
- package/template-vue-vite-eslint/src/assets/icon/home.svg +0 -3
- package/template-vue-vite-eslint/src/assets/icon/knowledge-graph.svg +0 -3
- package/template-vue-vite-eslint/src/assets/icon/logo.svg +0 -1
- package/template-vue-vite-eslint/src/assets/icon/robot.svg +0 -3
- package/template-vue-vite-eslint/src/assets/image/.gitkeep +0 -0
- package/template-vue-vite-eslint/src/components/Icon/svg-icon.vue +0 -29
- package/template-vue-vite-eslint/src/hooks/chart/lib.ts +0 -57
- package/template-vue-vite-eslint/src/hooks/chart/useEcharts.ts +0 -65
- package/template-vue-vite-eslint/src/layout/default/header/index.vue +0 -12
- package/template-vue-vite-eslint/src/layout/default/index.vue +0 -55
- package/template-vue-vite-eslint/src/main.ts +0 -16
- package/template-vue-vite-eslint/src/router/guard/index.ts +0 -7
- package/template-vue-vite-eslint/src/router/guard/permissionGuard.ts +0 -13
- package/template-vue-vite-eslint/src/router/index.ts +0 -18
- package/template-vue-vite-eslint/src/router/interface.ts +0 -9
- package/template-vue-vite-eslint/src/router/modules/example.ts +0 -21
- package/template-vue-vite-eslint/src/router/modules/index.ts +0 -36
- package/template-vue-vite-eslint/src/store/index.ts +0 -11
- package/template-vue-vite-eslint/src/store/modules/user.ts +0 -20
- package/template-vue-vite-eslint/src/styles/font.scss +0 -0
- package/template-vue-vite-eslint/src/styles/index.scss +0 -29
- package/template-vue-vite-eslint/src/styles/variables.scss +0 -3
- package/template-vue-vite-eslint/src/types/auto-import.d.ts +0 -78
- package/template-vue-vite-eslint/src/types/components.d.ts +0 -18
- package/template-vue-vite-eslint/src/types/vite-env.d.ts +0 -15
- package/template-vue-vite-eslint/src/utils/env.ts +0 -11
- package/template-vue-vite-eslint/src/utils/request/core/index.ts +0 -186
- package/template-vue-vite-eslint/src/utils/request/core/utils.ts +0 -41
- package/template-vue-vite-eslint/src/utils/request/index.ts +0 -42
- package/template-vue-vite-eslint/src/views/example/echart/config.ts +0 -1794
- package/template-vue-vite-eslint/src/views/example/echart/index.vue +0 -22
- package/template-vue-vite-eslint/src/views/example/h-full.vue +0 -24
- package/template-vue-vite-eslint/src/views/example/tree-chart.vue +0 -94
- package/template-vue-vite-eslint/src/views/home/index.vue +0 -25
- package/template-vue-vite-eslint/src/views/login/index.vue +0 -9
- package/template-vue-vite-eslint/tsconfig.json +0 -36
- package/template-vue-vite-eslint/uno.config.ts +0 -21
- package/template-vue-vite-eslint/vite.config.ts +0 -60
package/dist/index.js
CHANGED
|
@@ -8,14 +8,13 @@ Options:
|
|
|
8
8
|
-t, --template NAME use a specific template
|
|
9
9
|
|
|
10
10
|
Available templates:
|
|
11
|
-
${s.vue(`vue-
|
|
12
|
-
${s.
|
|
13
|
-
${s.
|
|
14
|
-
${s.react(`react-
|
|
15
|
-
${s.react(`vp-react
|
|
16
|
-
${s.
|
|
17
|
-
${s.
|
|
18
|
-
${s.nextjs(`nextjs-vinext-eslint nextjs`)}`,d=e=>e.trim().replace(/\/+$/g,``),f=e=>{if(!e)return;let t=e.split(` `)[0].split(`/`);return{name:t[0],version:t[1]}},p=t=>{let n=e.readdirSync(t);return n.length===0||n.length===1&&n[0]===`.git`},m=async n=>{await Promise.all(e.readdirSync(n).filter(e=>e!==`.git`).map(r=>e.promises.rm(t.resolve(n,r),{recursive:!0,force:!0})))},h=e=>/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(e),g=e=>e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/^[._]/,``).replace(/[^a-z\d\-~]+g/,`-`),_=[{name:`vue`,display:`Vue`,color:s.vue,variants:[{name:`vue-vite-eslint`,display:`vite + eslint`,color:s.vue},{name:`vue-vite-oxc`,display:`rolldown + oxc`,color:s.vue}]},{name:`react`,display:`React`,color:s.react,variants:[{name:`react-rsbuild-biome`,display:`rsbuild-biome`,color:s.react},{name:`vp-react`,display:`vp-react`,color:s.react},{name:`vp-react-shadcn`,display:`vp-react-shadcn`,color:s.react}]},{name:`taro`,display:`Taro`,color:s.taro,variants:[{name:`taro-vue-eslint`,display:`taro-vue + eslint`,color:s.taro}]},{name:`nextjs`,display:`NextJS`,color:s.nextjs,variants:[{name:`nextjs-vinext-eslint`,display:`nextjs + vinext + eslint`,color:s.nextjs}]},{name:`others`,display:`Others`,color:s.others,variants:[{name:`create-eletron-vite`,display:`Electron ↗`,color:s.others,customCommand:`pnpm create electron-vite@latest TARGET_DIR`}]}],v=_.map(e=>e.variants.map(e=>`${e.name}`)).reduce((e,t)=>e.concat(t),[]),y=(e,t)=>{console.log(`💦customCommand`,e,t);let n=t?t.name:`npm`,r=n===`yarn`&&t?.version.startsWith(`1.`);return e.replace(/^npm create (?:-- )?/,()=>n===`bun`?`bun x create-`:n===`pnpm`?`pnpm create `:e.startsWith(`npm create -- `)?`${n} create -- `:`${n} create `).replace(`@latest`,()=>r?``:`@latest`).replace(/^npm exec/,()=>n===`pnpm`?`pnpm dlx`:n===`yarn`&&!r?`yarn dlx`:n===`bun`?`bun x`:`npm exec`)},b={_gitignore:`.gitignore`},x=(n,r)=>{e.mkdirSync(r,{recursive:!0});for(let i of e.readdirSync(n))S(t.resolve(n,i),t.resolve(r,i))},S=(t,n)=>{e.statSync(t).isDirectory()?x(t,n):e.copyFileSync(t,n)},C=(t,n)=>{let r=e.readFileSync(t,`utf-8`);e.writeFileSync(t,n(r),`utf-8`)},w=(e,n)=>{C(t.resolve(e,`package.json`),e=>e.replace(/"@vitejs\/plugin-react": ".+?"/,`"@vitejs/plugin-react-swc": "^4.0.1"`)),C(t.resolve(e,`vite.config.${n?`ts`:`js`}`),e=>e.replace(`@vitejs/plugin-react`,`@vitejs/plugin-react-swc`))};(async()=>{console.log(c);let o=c._[0]?d(c._[0]):void 0,x=c.template,C=c.overwrite,T=`bubbles-project`;if(c.help){console.log(u);return}let E=f(process.env.npm_config_user_agent),D=()=>r.cancel(`Operation cancelled`),O=o;if(!O){let e=await r.text({message:`Project name`,defaultValue:T,placeholder:T,validate:e=>e.length===0||d(e).length>0?void 0:`Invalid project name`});if(r.isCancel(e))return D();O=d(e)}if(e.existsSync(O)&&!p(O)){let e=C?`yes`:await r.select({message:O===`.`?`Current directory`:`Target directory "${O}" is not empty. Please choose how to proceed:`,options:[{label:`${s.vue(`Cancel operation`)}`,value:`no`},{label:`Remove existing files and continue`,value:`yes`},{label:`Ignore files and continue`,value:`ignore`}]});if(r.isCancel(e))return D();switch(e){case`yes`:m(O);break;case`no`:D();return}}let k=t.basename(t.resolve(O));if(!h(k)){let e=await r.text({message:`Package name is invalid. please input again:`,defaultValue:g(k),placeholder:g(k),validate(e){if(!h(e))return`Invalid package.json name`}});if(r.isCancel(e))return D();k=e}let A=x,j=!1;if(x&&!v.includes(x)&&(A=void 0,j=!0),!A){let e=await r.select({message:j?`"${x}" isn't a valia template. please choose from below:`:`Select a framework`,options:_.map(e=>{let t=e.color;return{label:t(e.display),value:e}})});if(r.isCancel(e))return D();console.log(`💦pkgInfo`,E);let t=await r.select({message:`Select a variant:`,options:e.variants.map(e=>{let t=e.color,n=e.customCommand?y(e.customCommand,E).replace(/ TARGET_DIR$/,``):void 0;return{label:t(e.display||e.name),value:e.name,hint:n}})});if(r.isCancel(t))return D();A=t}let M=t.join(l,O);e.mkdirSync(M,{recursive:!0});let N=!1;A.includes(`-swc`)&&(N=!0,A=A.replace(`-swc`,``));let P=E?E.name:`npm`,{customCommand:F}=_.flatMap(e=>e.variants).find(e=>e.name===A)??{};if(F){let[e,...t]=y(F,E).split(` `),n=t.map(e=>e.replace(`TARGET_DIR`,()=>O));console.log(`💦replacedArgs`,n);let{status:r}=i.sync(e,n,{stdio:`inherit`});process.exit(r??0)}r.log.step(`scaffolding project in ${M}...`);let I=t.resolve(n(import.meta.url),`../..`,`template-${A}`),L=(n,r)=>{let i=t.join(M,b[n]??n);r?e.writeFileSync(i,r):S(t.join(I,n),i)},R=e.readdirSync(I);for(let e of R)e!==`package.json`&&L(e);let z=JSON.parse(e.readFileSync(t.join(I,`package.json`),`utf-8`));z.name=k,L(`package.json`,`${JSON.stringify(z,null,2)}\n`),N&&w(M,A.endsWith(`-ts`));let B=``,V=t.relative(l,M);switch(console.log(`💦cwd`,l),console.log(`💦root`,M),console.log(`💦cdProjectName`,V),B+=`Done. Now run:
|
|
11
|
+
${s.vue(`vue-vite-eslint vue`)}
|
|
12
|
+
${s.react(`react-rsbuild-biome react`)}
|
|
13
|
+
${s.react(`vp-react react`)}
|
|
14
|
+
${s.react(`vp-react-shadcn react`)}
|
|
15
|
+
${s.react(`vp-monorepo-react-nestjs react`)}
|
|
16
|
+
${s.taro(`taro-vue-eslint taro`)}
|
|
17
|
+
${s.nextjs(`nextjs-vinext-eslint nextjs`)}`,d=e=>e.trim().replace(/\/+$/g,``),f=e=>{if(!e)return;let t=e.split(` `)[0].split(`/`);return{name:t[0],version:t[1]}},p=t=>{let n=e.readdirSync(t);return n.length===0||n.length===1&&n[0]===`.git`},m=async n=>{await Promise.all(e.readdirSync(n).filter(e=>e!==`.git`).map(r=>e.promises.rm(t.resolve(n,r),{recursive:!0,force:!0})))},h=e=>/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(e),g=e=>e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/^[._]/,``).replace(/[^a-z\d\-~]+g/,`-`),_=[{name:`vue`,display:`Vue`,color:s.vue,variants:[{name:`vue-vite-eslint`,display:`vite + eslint`,color:s.vue}]},{name:`react`,display:`React`,color:s.react,variants:[{name:`react-rsbuild-biome`,display:`rsbuild-biome`,color:s.react},{name:`vp-react`,display:`vp-react`,color:s.react},{name:`vp-react-shadcn`,display:`vp-react-shadcn`,color:s.react},{name:`vp-monorepo-react-nestjs`,display:`vp-monorepo-react-nestjs`,color:s.react}]},{name:`taro`,display:`Taro`,color:s.taro,variants:[{name:`taro-vue-eslint`,display:`taro-vue + eslint`,color:s.taro},{name:`taro-react-oxc`,display:`taro-react + oxc`,color:s.taro}]},{name:`nextjs`,display:`NextJS`,color:s.nextjs,variants:[{name:`nextjs-vinext-eslint`,display:`nextjs + vinext + eslint`,color:s.nextjs}]},{name:`others`,display:`Others`,color:s.others,variants:[{name:`create-eletron-vite`,display:`Electron ↗`,color:s.others,customCommand:`pnpm create electron-vite@latest TARGET_DIR`}]}],v=_.map(e=>e.variants.map(e=>`${e.name}`)).reduce((e,t)=>e.concat(t),[]),y=(e,t)=>{console.log(`💦customCommand`,e,t);let n=t?t.name:`npm`,r=n===`yarn`&&t?.version.startsWith(`1.`);return e.replace(/^npm create (?:-- )?/,()=>n===`bun`?`bun x create-`:n===`pnpm`?`pnpm create `:e.startsWith(`npm create -- `)?`${n} create -- `:`${n} create `).replace(`@latest`,()=>r?``:`@latest`).replace(/^npm exec/,()=>n===`pnpm`?`pnpm dlx`:n===`yarn`&&!r?`yarn dlx`:n===`bun`?`bun x`:`npm exec`)},b={_gitignore:`.gitignore`},x=(n,r)=>{e.mkdirSync(r,{recursive:!0});for(let i of e.readdirSync(n))S(t.resolve(n,i),t.resolve(r,i))},S=(t,n)=>{e.statSync(t).isDirectory()?x(t,n):e.copyFileSync(t,n)},C=(t,n)=>{let r=e.readFileSync(t,`utf-8`);e.writeFileSync(t,n(r),`utf-8`)},w=(e,n)=>{C(t.resolve(e,`package.json`),e=>e.replace(/"@vitejs\/plugin-react": ".+?"/,`"@vitejs/plugin-react-swc": "^4.0.1"`)),C(t.resolve(e,`vite.config.${n?`ts`:`js`}`),e=>e.replace(`@vitejs/plugin-react`,`@vitejs/plugin-react-swc`))};(async()=>{console.log(c);let o=c._[0]?d(c._[0]):void 0,x=c.template,C=c.overwrite,T=`bubbles-project`;if(c.help){console.log(u);return}let E=f(process.env.npm_config_user_agent),D=()=>r.cancel(`Operation cancelled`),O=o;if(!O){let e=await r.text({message:`Project name`,defaultValue:T,placeholder:T,validate:e=>e.length===0||d(e).length>0?void 0:`Invalid project name`});if(r.isCancel(e))return D();O=d(e)}if(e.existsSync(O)&&!p(O)){let e=C?`yes`:await r.select({message:O===`.`?`Current directory`:`Target directory "${O}" is not empty. Please choose how to proceed:`,options:[{label:`${s.vue(`Cancel operation`)}`,value:`no`},{label:`Remove existing files and continue`,value:`yes`},{label:`Ignore files and continue`,value:`ignore`}]});if(r.isCancel(e))return D();switch(e){case`yes`:m(O);break;case`no`:D();return}}let k=t.basename(t.resolve(O));if(!h(k)){let e=await r.text({message:`Package name is invalid. please input again:`,defaultValue:g(k),placeholder:g(k),validate(e){if(!h(e))return`Invalid package.json name`}});if(r.isCancel(e))return D();k=e}let A=x,j=!1;if(x&&!v.includes(x)&&(A=void 0,j=!0),!A){let e=await r.select({message:j?`"${x}" isn't a valia template. please choose from below:`:`Select a framework`,options:_.map(e=>{let t=e.color;return{label:t(e.display),value:e}})});if(r.isCancel(e))return D();console.log(`💦pkgInfo`,E);let t=await r.select({message:`Select a variant:`,options:e.variants.map(e=>{let t=e.color,n=e.customCommand?y(e.customCommand,E).replace(/ TARGET_DIR$/,``):void 0;return{label:t(e.display||e.name),value:e.name,hint:n}})});if(r.isCancel(t))return D();A=t}let M=t.join(l,O);e.mkdirSync(M,{recursive:!0});let N=!1;A.includes(`-swc`)&&(N=!0,A=A.replace(`-swc`,``));let P=E?E.name:`npm`,{customCommand:F}=_.flatMap(e=>e.variants).find(e=>e.name===A)??{};if(F){let[e,...t]=y(F,E).split(` `),n=t.map(e=>e.replace(`TARGET_DIR`,()=>O));console.log(`💦replacedArgs`,n);let{status:r}=i.sync(e,n,{stdio:`inherit`});process.exit(r??0)}r.log.step(`scaffolding project in ${M}...`);let I=t.resolve(n(import.meta.url),`../..`,`template-${A}`),L=(n,r)=>{let i=t.join(M,b[n]??n);r?e.writeFileSync(i,r):S(t.join(I,n),i)},R=e.readdirSync(I);for(let e of R)e!==`package.json`&&L(e);let z=JSON.parse(e.readFileSync(t.join(I,`package.json`),`utf-8`));z.name=k,L(`package.json`,`${JSON.stringify(z,null,2)}\n`),N&&w(M,A.endsWith(`-ts`));let B=``,V=t.relative(l,M);switch(console.log(`💦cwd`,l),console.log(`💦root`,M),console.log(`💦cdProjectName`,V),B+=`Done. Now run:
|
|
19
18
|
`,M!==l&&(B+=`\n cd ${V.includes(` `)?`"${V}"`:V} `),P){case`yarn`:B+=`
|
|
20
19
|
yarn`,B+=`
|
|
21
20
|
yarn dev`;break;default:B+=a([`pink`,`white`])(`\n ${P} install`),B+=a([`pink`,`white`])(`\n ${P} run dev`);break}r.outro(B)})().catch(e=>{console.error(`💦`,e)});export{};
|
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
3
|
import './dist/index.js'
|
package/package.json
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "create-bubbles",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"author": "bubbles plant",
|
|
6
|
-
"bin": {
|
|
7
|
-
"create-bubbles": "index.js",
|
|
8
|
-
"cbp": "index.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"index.js",
|
|
12
|
-
"template-*",
|
|
13
|
-
"dist"
|
|
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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "create-bubbles",
|
|
3
|
+
"version": "0.1.17",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"author": "bubbles plant",
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-bubbles": "index.js",
|
|
8
|
+
"cbp": "index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"index.js",
|
|
12
|
+
"template-*",
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"dev": "tsdown --watch",
|
|
17
|
+
"build": "tsdown",
|
|
18
|
+
"typecheck": "tsc",
|
|
19
|
+
"prepublishOnly": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/435012357/bubblesjs.git",
|
|
27
|
+
"directory": "packages/create-bubbles"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/435012357/bubblesjs/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/435012357/bubblesjs/tree/master/packages/create-bubbles#readme",
|
|
33
|
+
"funding": "https://github.com/435012357/bubblesjs",
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/node": "^24.3.0",
|
|
36
|
+
"tsdown": "^0.22.2"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@clack/prompts": "^1.5.1",
|
|
40
|
+
"cross-spawn": "^7.0.6",
|
|
41
|
+
"gradient-string": "^3.0.0",
|
|
42
|
+
"mri": "^1.2.0",
|
|
43
|
+
"picocolors": "^1.1.1"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public",
|
|
47
|
+
"registry": "https://registry.npmjs.org/"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"recommendations": ["VoidZero.vite-plus-extension-pack"]
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"recommendations": ["VoidZero.vite-plus-extension-pack"]
|
|
3
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025-present, bubblesplant.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Disable the default formatter, use eslint instead
|
|
3
|
-
"biome.enabled": false,
|
|
4
|
-
"oxc.enable": false,
|
|
5
|
-
"prettier.enable": false,
|
|
6
|
-
"editor.formatOnSave": false,
|
|
7
|
-
|
|
8
|
-
// Auto fix
|
|
9
|
-
"editor.codeActionsOnSave": {
|
|
10
|
-
"source.fixAll.eslint": "explicit",
|
|
11
|
-
"source.organizeImports": "never"
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
// Silent the stylistic rules in your IDE, but still auto fix them
|
|
15
|
-
"eslint.rules.customizations": [
|
|
16
|
-
{ "rule": "style/*", "severity": "off", "fixable": true },
|
|
17
|
-
{ "rule": "format/*", "severity": "off", "fixable": true },
|
|
18
|
-
{ "rule": "*-indent", "severity": "off", "fixable": true },
|
|
19
|
-
{ "rule": "*-spacing", "severity": "off", "fixable": true },
|
|
20
|
-
{ "rule": "*-spaces", "severity": "off", "fixable": true },
|
|
21
|
-
{ "rule": "*-order", "severity": "off", "fixable": true },
|
|
22
|
-
{ "rule": "*-dangle", "severity": "off", "fixable": true },
|
|
23
|
-
{ "rule": "*-newline", "severity": "off", "fixable": true },
|
|
24
|
-
{ "rule": "*quotes", "severity": "off", "fixable": true },
|
|
25
|
-
{ "rule": "*semi", "severity": "off", "fixable": true }
|
|
26
|
-
],
|
|
27
|
-
|
|
28
|
-
// Enable eslint for all supported languages
|
|
29
|
-
"eslint.validate": [
|
|
30
|
-
"javascript",
|
|
31
|
-
"javascriptreact",
|
|
32
|
-
"typescript",
|
|
33
|
-
"typescriptreact",
|
|
34
|
-
"vue",
|
|
35
|
-
"html",
|
|
36
|
-
"markdown",
|
|
37
|
-
"json",
|
|
38
|
-
"json5",
|
|
39
|
-
"jsonc",
|
|
40
|
-
"yaml",
|
|
41
|
-
"toml",
|
|
42
|
-
"xml",
|
|
43
|
-
"gql",
|
|
44
|
-
"graphql",
|
|
45
|
-
"astro",
|
|
46
|
-
"svelte",
|
|
47
|
-
"css",
|
|
48
|
-
"less",
|
|
49
|
-
"scss",
|
|
50
|
-
"pcss",
|
|
51
|
-
"postcss"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# nodejs 版本
|
|
2
|
-
FROM node:24-alpine
|
|
3
|
-
|
|
4
|
-
# 使用pnpm
|
|
5
|
-
RUN corepack enable && corepack prepare pnpm@10.17.1 --activate
|
|
6
|
-
|
|
7
|
-
# 设置工作目录
|
|
8
|
-
WORKDIR /app
|
|
9
|
-
|
|
10
|
-
# 复制 package.json 和 package-lock.json 并安装依赖
|
|
11
|
-
COPY package.json pnpm-lock.yaml ./
|
|
12
|
-
RUN pnpm install --frozen-lockfile
|
|
13
|
-
|
|
14
|
-
COPY . .
|
|
15
|
-
|
|
16
|
-
RUN pnpm build
|
|
17
|
-
|
|
18
|
-
ENV PORT=9980
|
|
19
|
-
EXPOSE 9980
|
|
20
|
-
|
|
21
|
-
CMD ["pnpm", "start"]
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
# Bee Portal
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## 技术栈
|
|
6
|
-
|
|
7
|
-
| 类别 | 技术 |
|
|
8
|
-
| -------- | ----------------------------------- |
|
|
9
|
-
| 框架 | Next.js 16 App Router(via vinext) |
|
|
10
|
-
| 运行时 | Node.js 24 |
|
|
11
|
-
| 包管理 | pnpm |
|
|
12
|
-
| 语言 | TypeScript 5(严格模式) |
|
|
13
|
-
| UI | Ant Design 6 |
|
|
14
|
-
| CSS | UnoCSS(presetWind4 + Attributify) |
|
|
15
|
-
| 动画 | GSAP 3 |
|
|
16
|
-
| 代码检查 | ESLint 10 |
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## 代码规范
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
# 仅检查
|
|
24
|
-
pnpm lint
|
|
25
|
-
|
|
26
|
-
# 检查并自动修复
|
|
27
|
-
pnpm lint:fix
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Git 提交规范
|
|
31
|
-
|
|
32
|
-
提交信息须遵循 [约定式提交(Conventional Commits)](https://www.conventionalcommits.org/) 格式:
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
type(scope): description
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
常用类型:`feat`、`fix`、`refactor`、`style`、`docs`、`chore`
|
|
39
|
-
|
|
40
|
-
示例:
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
feat(header): 添加导航链接
|
|
44
|
-
fix(layout): 修复移动端溢出问题
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
> pre-commit 钩子会自动对暂存文件执行 `lint:fix`,commit-msg 钩子通过 commitlint 校验提交信息格式。
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## 分支与发布流程
|
|
52
|
-
|
|
53
|
-
### 开发环境(服务器:245)
|
|
54
|
-
|
|
55
|
-
1. 在自己的功能分支上开发
|
|
56
|
-
2. 将功能分支合并到**迭代主分支**
|
|
57
|
-
3. 将迭代主分支合并到 **`dev`** 分支
|
|
58
|
-
4. 推送后自动触发部署到开发环境
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
个人分支 → 迭代主分支 → dev(自动发布)
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### 生产环境(服务器:214)
|
|
65
|
-
|
|
66
|
-
1. 在自己的功能分支上开发
|
|
67
|
-
2. 将功能分支合并到**迭代主分支**
|
|
68
|
-
3. 将迭代主分支合并到 **`release`** 分支
|
|
69
|
-
4. 对 `release` 分支打 tag 触发自动部署
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
个人分支 → 迭代主分支 → release → 打 tag(自动发布)
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
Tag 命名规范:`release@v<major>.<minor>.<patch>`
|
|
76
|
-
|
|
77
|
-
示例:
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
git tag release@v1.0.0
|
|
81
|
-
git push origin release@v1.0.0
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## 项目结构
|
|
87
|
-
|
|
88
|
-
```
|
|
89
|
-
src/
|
|
90
|
-
app/ # Next.js App Router
|
|
91
|
-
_components/ # 路由私有组件
|
|
92
|
-
antd-provider.tsx # Ant Design SSR 包装器
|
|
93
|
-
layout.tsx # 根布局
|
|
94
|
-
page.tsx # 首页
|
|
95
|
-
assets/
|
|
96
|
-
icon/ # SVG 图标
|
|
97
|
-
image/ # 位图资源
|
|
98
|
-
styles/
|
|
99
|
-
globals.css # 全局样式 & 品牌 Token
|
|
100
|
-
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default { extends: ['@commitlint/config-conventional'] }
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
version: "0.1"
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
web:
|
|
5
|
-
container_name: bee-portal
|
|
6
|
-
image: bee-portal
|
|
7
|
-
ports:
|
|
8
|
-
- "9980:9980"
|
|
9
|
-
nginx:
|
|
10
|
-
image: nginx:latest
|
|
11
|
-
container_name: nginx
|
|
12
|
-
volumes:
|
|
13
|
-
# 这边Nginx配置是跟docker-compose文件同目录,可根据自己需要更改
|
|
14
|
-
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
15
|
-
- ./logs:/var/log/nginx
|
|
16
|
-
ports:
|
|
17
|
-
- "8080:80"
|
|
18
|
-
- "8443:443"
|
|
19
|
-
restart: always
|
|
20
|
-
# 依赖于哪个服务,这边是依赖于web服务
|
|
21
|
-
depends_on:
|
|
22
|
-
- web
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import antfu from '@antfu/eslint-config'
|
|
2
|
-
|
|
3
|
-
export default antfu({
|
|
4
|
-
formatters: {
|
|
5
|
-
html: true,
|
|
6
|
-
css: true,
|
|
7
|
-
markdown: 'prettier',
|
|
8
|
-
},
|
|
9
|
-
unocss: true,
|
|
10
|
-
nextjs: true,
|
|
11
|
-
jsx: {
|
|
12
|
-
a11y: true,
|
|
13
|
-
},
|
|
14
|
-
ignores: [
|
|
15
|
-
'**/node_modules/**',
|
|
16
|
-
'**/dist/**',
|
|
17
|
-
'**/public/**',
|
|
18
|
-
'**/*.md',
|
|
19
|
-
],
|
|
20
|
-
})
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nextjs-vinext-eslint",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "0.1.0",
|
|
5
|
-
"private": true,
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vinext dev --port 9980",
|
|
8
|
-
"build": "vinext build",
|
|
9
|
-
"start": "vinext start",
|
|
10
|
-
"prepare": "lefthook install",
|
|
11
|
-
"lint": "eslint",
|
|
12
|
-
"lint:fix": "eslint --fix"
|
|
13
|
-
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@ant-design/cssinjs": "^2.1.2",
|
|
16
|
-
"alova": "^3.5.1",
|
|
17
|
-
"antd": "^6.3.2",
|
|
18
|
-
"gsap": "^3.14.2",
|
|
19
|
-
"next": "16.1.6",
|
|
20
|
-
"react": "19.2.4",
|
|
21
|
-
"react-dom": "19.2.4"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@antfu/eslint-config": "^7.7.2",
|
|
25
|
-
"@commitlint/cli": "^20.5.0",
|
|
26
|
-
"@commitlint/config-conventional": "^20.5.0",
|
|
27
|
-
"@eslint-react/eslint-plugin": "^2.13.0",
|
|
28
|
-
"@next/eslint-plugin-next": "^16.1.6",
|
|
29
|
-
"@svgr/core": "^8.1.0",
|
|
30
|
-
"@types/node": "^24.12.0",
|
|
31
|
-
"@types/react": "^19.2.14",
|
|
32
|
-
"@types/react-dom": "^19.2.3",
|
|
33
|
-
"@unocss/eslint-plugin": "^66.6.6",
|
|
34
|
-
"@vitejs/plugin-rsc": "^0.5.21",
|
|
35
|
-
"eslint": "^10.0.3",
|
|
36
|
-
"eslint-plugin-format": "^2.0.1",
|
|
37
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
38
|
-
"eslint-plugin-react-refresh": "^0.5.2",
|
|
39
|
-
"lefthook": "^2.1.4",
|
|
40
|
-
"react-server-dom-webpack": "^19.2.4",
|
|
41
|
-
"typescript": "^5.9.3",
|
|
42
|
-
"unocss": "^66.6.6",
|
|
43
|
-
"vinext": "^0.0.29",
|
|
44
|
-
"vite": "^8.0.0",
|
|
45
|
-
"vite-plugin-svgr": "^4.5.0"
|
|
46
|
-
},
|
|
47
|
-
"volta": {
|
|
48
|
-
"node": "24.14.0"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>
|