create-bubbles 0.1.18 → 0.1.20
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 +406 -11
- package/package.json +3 -2
- package/template-nextjs-vinext-eslint/.dockerignore +3 -0
- package/template-nextjs-vinext-eslint/.vscode/settings.json +53 -0
- package/template-nextjs-vinext-eslint/Dockerfile +21 -0
- package/template-nextjs-vinext-eslint/README.md +100 -0
- package/template-nextjs-vinext-eslint/commitlint.config.js +1 -0
- package/template-nextjs-vinext-eslint/docker-compose.yaml +22 -0
- package/template-nextjs-vinext-eslint/eslint.config.js +20 -0
- package/template-nextjs-vinext-eslint/lefthook.yml +11 -0
- package/template-nextjs-vinext-eslint/next.config.ts +8 -0
- package/template-nextjs-vinext-eslint/nginx.conf +14 -0
- package/template-nextjs-vinext-eslint/package.json +50 -0
- package/template-nextjs-vinext-eslint/pnpm-workspace.yaml +7 -0
- package/template-nextjs-vinext-eslint/public/file.svg +1 -0
- package/template-nextjs-vinext-eslint/public/globe.svg +1 -0
- package/template-nextjs-vinext-eslint/public/logo-white.svg +128 -0
- package/template-nextjs-vinext-eslint/public/next.svg +1 -0
- package/template-nextjs-vinext-eslint/public/vercel.svg +1 -0
- package/template-nextjs-vinext-eslint/public/window.svg +1 -0
- 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 +7 -0
- package/template-nextjs-vinext-eslint/src/app/_components/Main/index.tsx +13 -0
- package/template-nextjs-vinext-eslint/src/app/antd-provider.tsx +30 -0
- package/template-nextjs-vinext-eslint/src/app/icon.svg +26 -0
- package/template-nextjs-vinext-eslint/src/app/layout.tsx +68 -0
- package/template-nextjs-vinext-eslint/src/app/page.module.css +141 -0
- package/template-nextjs-vinext-eslint/src/app/page.tsx +43 -0
- package/template-nextjs-vinext-eslint/src/app/uno-css.tsx +7 -0
- package/template-nextjs-vinext-eslint/src/assets/icon/logo-white.svg +128 -0
- package/template-nextjs-vinext-eslint/src/assets/icon/logo.svg +26 -0
- 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 +47 -0
- package/template-nextjs-vinext-eslint/src/types/vite-env.d.ts +18 -0
- package/template-nextjs-vinext-eslint/src/utils/env.ts +14 -0
- package/template-nextjs-vinext-eslint/src/utils/index.ts +0 -0
- package/template-nextjs-vinext-eslint/src/utils/request/core/index.ts +425 -0
- package/template-nextjs-vinext-eslint/src/utils/request/core/utils.ts +39 -0
- package/template-nextjs-vinext-eslint/src/utils/request/index.ts +48 -0
- package/template-nextjs-vinext-eslint/tsconfig.json +34 -0
- package/template-nextjs-vinext-eslint/uno.config.ts +8 -0
- package/template-nextjs-vinext-eslint/vite.config.ts +8 -0
- package/template-react-rsbuild-biome/.env +5 -0
- package/template-react-rsbuild-biome/.env.development +1 -0
- package/template-react-rsbuild-biome/.env.production +1 -0
- package/template-react-rsbuild-biome/.prettierignore +34 -0
- package/template-react-rsbuild-biome/.prettierrc +16 -0
- package/template-react-rsbuild-biome/.vscode/settings.json +10 -0
- package/template-react-rsbuild-biome/README.md +29 -0
- package/template-react-rsbuild-biome/biome.json +116 -0
- package/template-react-rsbuild-biome/commitlint.config.js +1 -0
- package/template-react-rsbuild-biome/index.html +7 -0
- package/template-react-rsbuild-biome/lefthook.yml +14 -0
- package/template-react-rsbuild-biome/package.json +42 -0
- package/template-react-rsbuild-biome/public/.gitkeep +0 -0
- package/template-react-rsbuild-biome/rsbuild.config.ts +44 -0
- package/template-react-rsbuild-biome/src/App.tsx +9 -0
- package/template-react-rsbuild-biome/src/assets/font/AlimamaShuHeiTi-Bold.ttf +0 -0
- package/template-react-rsbuild-biome/src/assets/icon/logo.svg +7 -0
- package/template-react-rsbuild-biome/src/components/Loading/PageLoading.tsx +11 -0
- package/template-react-rsbuild-biome/src/env.d.ts +1 -0
- package/template-react-rsbuild-biome/src/index.tsx +18 -0
- package/template-react-rsbuild-biome/src/layout/default/index.tsx +10 -0
- package/template-react-rsbuild-biome/src/pages/home/index.tsx +5 -0
- package/template-react-rsbuild-biome/src/router/index.tsx +38 -0
- package/template-react-rsbuild-biome/src/store/index.ts +0 -0
- package/template-react-rsbuild-biome/src/store/modules/user.ts +11 -0
- package/template-react-rsbuild-biome/src/styles/fonts.scss +4 -0
- package/template-react-rsbuild-biome/src/styles/index.scss +19 -0
- package/template-react-rsbuild-biome/src/styles/variables.scss +4 -0
- package/template-react-rsbuild-biome/src/types/auto-import.d.ts +49 -0
- package/template-react-rsbuild-biome/src/utils/env.ts +10 -0
- package/template-react-rsbuild-biome/src/utils/request/core/index.ts +425 -0
- package/template-react-rsbuild-biome/src/utils/request/core/utils.ts +39 -0
- package/template-react-rsbuild-biome/src/utils/request/index.ts +42 -0
- package/template-react-rsbuild-biome/tsconfig.json +35 -0
- package/template-react-rsbuild-biome/uno.config.ts +8 -0
- package/template-taro-react-oxc/.editorconfig +12 -0
- package/template-taro-react-oxc/.env +1 -0
- package/template-taro-react-oxc/.env.development +6 -0
- package/template-taro-react-oxc/.env.production +5 -0
- package/template-taro-react-oxc/.oxfmtrc.json +12 -0
- package/template-taro-react-oxc/.oxlintrc.json +9 -0
- package/template-taro-react-oxc/.vscode/settings.json +13 -0
- package/template-taro-react-oxc/babel.config.js +45 -0
- package/template-taro-react-oxc/commitlint.config.mjs +1 -0
- package/template-taro-react-oxc/config/dev.ts +10 -0
- package/template-taro-react-oxc/config/index.ts +172 -0
- package/template-taro-react-oxc/config/prod.ts +39 -0
- package/template-taro-react-oxc/config/release.ts +106 -0
- package/template-taro-react-oxc/key/.gitkeep +0 -0
- package/template-taro-react-oxc/lefthook.yaml +18 -0
- package/template-taro-react-oxc/package.json +118 -0
- package/template-taro-react-oxc/patches/@tarojs__plugin-mini-ci.patch +13 -0
- package/template-taro-react-oxc/pnpm-workspace.yaml +13 -0
- package/template-taro-react-oxc/postcss.config.js +6 -0
- package/template-taro-react-oxc/project.config.json +15 -0
- package/template-taro-react-oxc/src/app.config.ts +11 -0
- package/template-taro-react-oxc/src/app.ts +14 -0
- package/template-taro-react-oxc/src/index.html +17 -0
- package/template-taro-react-oxc/src/pages/index/index.config.ts +3 -0
- package/template-taro-react-oxc/src/pages/index/index.scss +0 -0
- package/template-taro-react-oxc/src/pages/index/index.tsx +44 -0
- package/template-taro-react-oxc/src/store/taroStorage.ts +7 -0
- package/template-taro-react-oxc/src/store/user.ts +13 -0
- package/template-taro-react-oxc/src/styles/index.css +1 -0
- package/template-taro-react-oxc/src/utils/env.ts +10 -0
- package/template-taro-react-oxc/src/utils/request/core/index.ts +425 -0
- package/template-taro-react-oxc/src/utils/request/core/utils.ts +39 -0
- package/template-taro-react-oxc/src/utils/request/index.ts +37 -0
- package/template-taro-react-oxc/stylelint.config.mjs +28 -0
- package/template-taro-react-oxc/tailwind.config.js +12 -0
- package/template-taro-react-oxc/tsconfig.json +28 -0
- package/template-taro-react-oxc/types/global.d.ts +29 -0
- package/template-taro-vue-eslint/.editorconfig +12 -0
- package/template-taro-vue-eslint/.env +3 -0
- package/template-taro-vue-eslint/.env.development +5 -0
- package/template-taro-vue-eslint/.env.production +5 -0
- package/template-taro-vue-eslint/.vscode/settings.json +57 -0
- package/template-taro-vue-eslint/babel.config.js +12 -0
- package/template-taro-vue-eslint/commitlint.config.mjs +1 -0
- package/template-taro-vue-eslint/config/dev.ts +27 -0
- package/template-taro-vue-eslint/config/index.ts +134 -0
- package/template-taro-vue-eslint/config/output-root.ts +11 -0
- package/template-taro-vue-eslint/config/prod.ts +39 -0
- package/template-taro-vue-eslint/config/release.ts +113 -0
- package/template-taro-vue-eslint/eslint.config.mjs +22 -0
- package/template-taro-vue-eslint/lefthook.yaml +13 -0
- package/template-taro-vue-eslint/package.json +115 -0
- package/template-taro-vue-eslint/patches/@tarojs__plugin-mini-ci.patch +13 -0
- package/template-taro-vue-eslint/pnpm-workspace.yaml +13 -0
- package/template-taro-vue-eslint/project.config.json +16 -0
- package/template-taro-vue-eslint/src/api/common/upload.ts +53 -0
- package/template-taro-vue-eslint/src/app.config.ts +19 -0
- package/template-taro-vue-eslint/src/app.ts +14 -0
- package/template-taro-vue-eslint/src/assets/image/.gitkeep +0 -0
- package/template-taro-vue-eslint/src/index.html +17 -0
- package/template-taro-vue-eslint/src/pages/example/upload/index.config.ts +3 -0
- package/template-taro-vue-eslint/src/pages/example/upload/index.module.scss +4 -0
- package/template-taro-vue-eslint/src/pages/example/upload/index.vue +71 -0
- package/template-taro-vue-eslint/src/pages/index/index.config.ts +3 -0
- package/template-taro-vue-eslint/src/pages/index/index.module.scss +4 -0
- package/template-taro-vue-eslint/src/pages/index/index.vue +77 -0
- package/template-taro-vue-eslint/src/store/index.ts +10 -0
- package/template-taro-vue-eslint/src/store/modules/user.ts +15 -0
- package/template-taro-vue-eslint/src/store/taroStorage.ts +7 -0
- package/template-taro-vue-eslint/src/styles/index.css +1 -0
- package/template-taro-vue-eslint/src/styles/nut-theme.css +4 -0
- package/template-taro-vue-eslint/src/utils/env.ts +13 -0
- package/template-taro-vue-eslint/src/utils/index.ts +40 -0
- package/template-taro-vue-eslint/src/utils/request/core/index.ts +425 -0
- package/template-taro-vue-eslint/src/utils/request/core/utils.ts +39 -0
- package/template-taro-vue-eslint/src/utils/request/index.ts +73 -0
- package/template-taro-vue-eslint/tsconfig.json +30 -0
- package/template-taro-vue-eslint/types/components.d.ts +16 -0
- package/template-taro-vue-eslint/types/global.d.ts +31 -0
- package/template-taro-vue-eslint/types/vue.d.ts +10 -0
- package/template-taro-vue-eslint/unocss.config.ts +42 -0
- package/template-vp-monorepo-react-nestjs/.oxfmtrc.jsonc +8 -0
- package/template-vp-monorepo-react-nestjs/.oxlintrc.jsonc +3 -0
- package/template-vp-monorepo-react-nestjs/.specs//351/234/200/346/261/202.md +5 -0
- package/template-vp-monorepo-react-nestjs/.vite-hooks/commit-msg +1 -0
- package/template-vp-monorepo-react-nestjs/.vite-hooks/pre-commit +1 -0
- package/template-vp-monorepo-react-nestjs/README.md +29 -0
- package/template-vp-monorepo-react-nestjs/apps/service/.oxlintrc.jsonc +3 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.env +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/.oxlintrc.jsonc +4 -0
- package/template-vp-monorepo-react-nestjs/apps/web/index.html +13 -0
- package/template-vp-monorepo-react-nestjs/apps/web/package.json +39 -0
- package/template-vp-monorepo-react-nestjs/apps/web/public/favicon.svg +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/public/icons.svg +24 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/App.tsx +24 -0
- 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 +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/assets/vite.svg +1 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/components/Loading/PageLoading.tsx +11 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/main.tsx +5 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/pages/home/index.tsx +17 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/router/index.tsx +25 -0
- 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 +7 -0
- package/template-vp-monorepo-react-nestjs/apps/web/src/types/auto-imports.d.ts +58 -0
- package/template-vp-monorepo-react-nestjs/apps/web/tsconfig.json +32 -0
- package/template-vp-monorepo-react-nestjs/apps/web/vite.config.ts +32 -0
- package/template-vp-monorepo-react-nestjs/commitlint.config.js +0 -0
- package/template-vp-monorepo-react-nestjs/package.json +20 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/README.md +23 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/package.json +39 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/src/index.ts +3 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/tests/index.test.ts +6 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/tsconfig.json +20 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/tsdown.config.ts +9 -0
- package/template-vp-monorepo-react-nestjs/packages/utils/vite.config.ts +7 -0
- package/template-vp-monorepo-react-nestjs/pnpm-workspace.yaml +23 -0
- package/template-vp-monorepo-react-nestjs/tsconfig.json +9 -0
- package/template-vp-monorepo-react-nestjs/vite.config.ts +8 -0
- package/template-vp-react/.env +1 -0
- package/template-vp-react/.oxfmtrc.jsonc +8 -0
- package/template-vp-react/.oxlintrc.jsonc +11 -0
- package/template-vp-react/.vite-hooks/commit-msg +1 -0
- package/template-vp-react/.vite-hooks/pre-commit +1 -0
- package/template-vp-react/.vscode/extensions.json +3 -0
- package/template-vp-react/.vscode/settings.json +11 -0
- package/template-vp-react/commitlint.config.js +0 -0
- package/template-vp-react/index.html +13 -0
- package/template-vp-react/package.json +44 -0
- package/template-vp-react/public/favicon.svg +1 -0
- package/template-vp-react/public/icons.svg +24 -0
- package/template-vp-react/src/App.tsx +24 -0
- package/template-vp-react/src/assets/hero.png +0 -0
- package/template-vp-react/src/assets/react.svg +1 -0
- package/template-vp-react/src/assets/vite.svg +1 -0
- package/template-vp-react/src/components/Loading/PageLoading.tsx +11 -0
- package/template-vp-react/src/main.tsx +5 -0
- package/template-vp-react/src/pages/home/index.tsx +17 -0
- package/template-vp-react/src/router/index.tsx +25 -0
- package/template-vp-react/src/router/modules/.gitkeep +0 -0
- package/template-vp-react/src/styles/index.css +7 -0
- package/template-vp-react/src/types/auto-imports.d.ts +58 -0
- package/template-vp-react/src/utils/env/index.ts +6 -0
- package/template-vp-react/src/utils/request/core/index.ts +420 -0
- package/template-vp-react/src/utils/request/core/utils.ts +39 -0
- package/template-vp-react/src/utils/request/index.ts +48 -0
- package/template-vp-react/tsconfig.json +32 -0
- package/template-vp-react/vite.config.ts +35 -0
- package/template-vp-react-shadcn/.agents/skills/alova-client-usage/README.md +28 -0
- package/template-vp-react-shadcn/.agents/skills/alova-client-usage/SKILL.md +249 -0
- package/template-vp-react-shadcn/.agents/skills/alova-client-usage/references/SETUP.md +146 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/SKILL.md +260 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/agents/openai.yml +5 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/assets/shadcn-small.png +0 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/assets/shadcn.png +0 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/cli.md +276 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/customization.md +209 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/evals/evals.json +47 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/mcp.md +94 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/base-vs-radix.md +306 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/composition.md +195 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/forms.md +192 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/icons.md +101 -0
- package/template-vp-react-shadcn/.agents/skills/shadcn/rules/styling.md +162 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/README.md +75 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/SKILL.md +322 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/evals.json +182 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/references/config.md +162 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/references/env-management.md +76 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/references/task-runner.md +152 -0
- package/template-vp-react-shadcn/.agents/skills/vite-plus/sources.yaml +142 -0
- package/template-vp-react-shadcn/.env +1 -0
- package/template-vp-react-shadcn/.oxfmtrc.jsonc +8 -0
- package/template-vp-react-shadcn/.oxlintrc.jsonc +3 -0
- package/template-vp-react-shadcn/.vite-hooks/commit-msg +1 -0
- package/template-vp-react-shadcn/.vite-hooks/pre-commit +1 -0
- package/template-vp-react-shadcn/.vscode/extensions.json +3 -0
- package/template-vp-react-shadcn/.vscode/settings.json +12 -0
- package/template-vp-react-shadcn/agents.md +44 -0
- package/template-vp-react-shadcn/commitlint.config.js +1 -0
- package/template-vp-react-shadcn/components.json +25 -0
- package/template-vp-react-shadcn/index.html +13 -0
- package/template-vp-react-shadcn/package.json +56 -0
- package/template-vp-react-shadcn/public/favicon.svg +1 -0
- package/template-vp-react-shadcn/public/icons.svg +24 -0
- package/template-vp-react-shadcn/skills-lock.json +11 -0
- package/template-vp-react-shadcn/src/App.tsx +24 -0
- 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 +1 -0
- package/template-vp-react-shadcn/src/assets/vite.svg +1 -0
- package/template-vp-react-shadcn/src/components/Loading/PageLoading.tsx +11 -0
- package/template-vp-react-shadcn/src/components/Player/VideoJS/index.tsx +163 -0
- package/template-vp-react-shadcn/src/components/Player/index.ts +7 -0
- package/template-vp-react-shadcn/src/components/ui/button.tsx +67 -0
- package/template-vp-react-shadcn/src/components/ui/sonner.tsx +43 -0
- package/template-vp-react-shadcn/src/components/ui/spinner.tsx +17 -0
- package/template-vp-react-shadcn/src/hooks/.gitkeep +0 -0
- package/template-vp-react-shadcn/src/lib/utils.ts +6 -0
- package/template-vp-react-shadcn/src/main.tsx +5 -0
- package/template-vp-react-shadcn/src/pages/home/index.tsx +96 -0
- package/template-vp-react-shadcn/src/router/index.tsx +25 -0
- 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 +16 -0
- package/template-vp-react-shadcn/src/styles/shadcn.css +127 -0
- package/template-vp-react-shadcn/src/types/auto-imports.d.ts +58 -0
- package/template-vp-react-shadcn/src/utils/env/index.tsx +6 -0
- package/template-vp-react-shadcn/src/utils/request/alova-core/index.ts +425 -0
- package/template-vp-react-shadcn/src/utils/request/alova-core/utils.ts +39 -0
- package/template-vp-react-shadcn/src/utils/request/index.ts +48 -0
- package/template-vp-react-shadcn/src/utils/request/readme.md +176 -0
- package/template-vp-react-shadcn/tsconfig.json +32 -0
- package/template-vp-react-shadcn/vite.config.ts +35 -0
- package/template-vue-vite-eslint/.env +6 -0
- package/template-vue-vite-eslint/.env.development +2 -0
- package/template-vue-vite-eslint/.env.production +1 -0
- package/template-vue-vite-eslint/README.md +3 -0
- package/template-vue-vite-eslint/commitlint.config.js +1 -0
- package/template-vue-vite-eslint/eslint.config.js +69 -0
- package/template-vue-vite-eslint/index.html +13 -0
- package/template-vue-vite-eslint/lefthook.yml +11 -0
- package/template-vue-vite-eslint/package.json +56 -0
- package/template-vue-vite-eslint/public/vite.svg +1 -0
- package/template-vue-vite-eslint/src/App.vue +19 -0
- package/template-vue-vite-eslint/src/api/index.ts +12 -0
- package/template-vue-vite-eslint/src/assets/icon/computer-data.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/cpu.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/data-search.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/home.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/knowledge-graph.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/logo.svg +1 -0
- package/template-vue-vite-eslint/src/assets/icon/robot.svg +3 -0
- package/template-vue-vite-eslint/src/assets/image/.gitkeep +0 -0
- package/template-vue-vite-eslint/src/components/Icon/svg-icon.vue +29 -0
- package/template-vue-vite-eslint/src/hooks/chart/lib.ts +57 -0
- package/template-vue-vite-eslint/src/hooks/chart/useEcharts.ts +65 -0
- package/template-vue-vite-eslint/src/layout/default/header/index.vue +12 -0
- package/template-vue-vite-eslint/src/layout/default/index.vue +55 -0
- package/template-vue-vite-eslint/src/main.ts +16 -0
- package/template-vue-vite-eslint/src/router/guard/index.ts +7 -0
- package/template-vue-vite-eslint/src/router/guard/permissionGuard.ts +13 -0
- package/template-vue-vite-eslint/src/router/index.ts +18 -0
- package/template-vue-vite-eslint/src/router/interface.ts +9 -0
- package/template-vue-vite-eslint/src/router/modules/example.ts +21 -0
- package/template-vue-vite-eslint/src/router/modules/index.ts +36 -0
- package/template-vue-vite-eslint/src/store/index.ts +11 -0
- package/template-vue-vite-eslint/src/store/modules/user.ts +20 -0
- package/template-vue-vite-eslint/src/styles/font.scss +0 -0
- package/template-vue-vite-eslint/src/styles/index.scss +29 -0
- package/template-vue-vite-eslint/src/styles/variables.scss +3 -0
- package/template-vue-vite-eslint/src/types/auto-import.d.ts +78 -0
- package/template-vue-vite-eslint/src/types/components.d.ts +18 -0
- package/template-vue-vite-eslint/src/types/vite-env.d.ts +15 -0
- package/template-vue-vite-eslint/src/utils/env.ts +11 -0
- package/template-vue-vite-eslint/src/utils/request/core/index.ts +425 -0
- package/template-vue-vite-eslint/src/utils/request/core/utils.ts +39 -0
- package/template-vue-vite-eslint/src/utils/request/index.ts +42 -0
- package/template-vue-vite-eslint/src/views/example/echart/config.ts +1794 -0
- package/template-vue-vite-eslint/src/views/example/echart/index.vue +22 -0
- package/template-vue-vite-eslint/src/views/example/h-full.vue +24 -0
- package/template-vue-vite-eslint/src/views/example/tree-chart.vue +94 -0
- package/template-vue-vite-eslint/src/views/home/index.vue +25 -0
- package/template-vue-vite-eslint/src/views/login/index.vue +9 -0
- package/template-vue-vite-eslint/tsconfig.json +36 -0
- package/template-vue-vite-eslint/uno.config.ts +21 -0
- package/template-vue-vite-eslint/vite.config.ts +60 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import path from 'path'
|
|
2
|
+
|
|
3
|
+
import { defineConfig, type UserConfigExport } from '@tarojs/cli'
|
|
4
|
+
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'
|
|
5
|
+
import { WeappTailwindcss } from 'weapp-tailwindcss/webpack'
|
|
6
|
+
|
|
7
|
+
import devConfig from './dev'
|
|
8
|
+
import prodConfig from './prod'
|
|
9
|
+
import { CIPluginFn } from './release'
|
|
10
|
+
|
|
11
|
+
export default defineConfig<'webpack5'>(async (merge) => {
|
|
12
|
+
// 设置 BROWSERSLIST_ENV 环境变量,以便在不同环境使用不同的 browserslist 配置
|
|
13
|
+
process.env.BROWSERSLIST_ENV = process.env.NODE_ENV
|
|
14
|
+
|
|
15
|
+
const baseConfig: UserConfigExport<'webpack5'> = {
|
|
16
|
+
projectName: 'myApp',
|
|
17
|
+
date: '2026-6-8',
|
|
18
|
+
designWidth(input) {
|
|
19
|
+
// 配置 NutUI 375 尺寸
|
|
20
|
+
if ((input as any)?.file?.replace(/\\+/g, '/').indexOf('@nutui') > -1) {
|
|
21
|
+
return 375
|
|
22
|
+
}
|
|
23
|
+
// 全局使用 Taro 默认的 750 尺寸
|
|
24
|
+
return 750
|
|
25
|
+
},
|
|
26
|
+
deviceRatio: {
|
|
27
|
+
640: 2.34 / 2,
|
|
28
|
+
750: 1,
|
|
29
|
+
828: 1.81 / 2,
|
|
30
|
+
375: 2 / 1,
|
|
31
|
+
},
|
|
32
|
+
sourceRoot: 'src',
|
|
33
|
+
outputRoot: 'dist',
|
|
34
|
+
plugins: [
|
|
35
|
+
'@tarojs/plugin-generator',
|
|
36
|
+
'@tarojs/plugin-html',
|
|
37
|
+
['@tarojs/plugin-mini-ci', CIPluginFn],
|
|
38
|
+
],
|
|
39
|
+
defineConstants: {},
|
|
40
|
+
copy: {
|
|
41
|
+
patterns: [],
|
|
42
|
+
options: {},
|
|
43
|
+
},
|
|
44
|
+
framework: 'react',
|
|
45
|
+
compiler: {
|
|
46
|
+
type: 'webpack5',
|
|
47
|
+
prebundle: {
|
|
48
|
+
enable: false,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
cache: {
|
|
52
|
+
enable: false,
|
|
53
|
+
},
|
|
54
|
+
sass: {
|
|
55
|
+
data: '@use "@nutui/nutui-react-taro/dist/styles/variables.scss" as *;',
|
|
56
|
+
},
|
|
57
|
+
mini: {
|
|
58
|
+
debugReact: true,
|
|
59
|
+
compile: {
|
|
60
|
+
include: [
|
|
61
|
+
// 确保产物为 ES5,如可以确认包含 ES6 代码的 node_modules,则可修改正则采用白名单方式缩小编译范围,以提升编译速度
|
|
62
|
+
(filename) =>
|
|
63
|
+
/node_modules\/(?!(@babel|core-js|style-loader|css-loader|react|react-dom))/.test(
|
|
64
|
+
filename,
|
|
65
|
+
),
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
postcss: {
|
|
69
|
+
pxtransform: {
|
|
70
|
+
enable: true,
|
|
71
|
+
config: {},
|
|
72
|
+
},
|
|
73
|
+
cssModules: {
|
|
74
|
+
enable: false,
|
|
75
|
+
config: {
|
|
76
|
+
namingPattern: 'module',
|
|
77
|
+
generateScopedName: '[name]__[local]___[hash:base64:5]',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
webpackChain(chain) {
|
|
82
|
+
chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin)
|
|
83
|
+
const projectRoot = path.resolve(__dirname, '..')
|
|
84
|
+
const srcRoot = path.resolve(projectRoot, 'src')
|
|
85
|
+
const outputRoot = path.resolve(projectRoot, 'dist').replace(/\\/g, '/')
|
|
86
|
+
const tailwindCssEntry = path.resolve(srcRoot, 'styles/index.css')
|
|
87
|
+
|
|
88
|
+
chain.merge({
|
|
89
|
+
watchOptions: {
|
|
90
|
+
ignored: [`${outputRoot}/**`, '**/node_modules/**'],
|
|
91
|
+
},
|
|
92
|
+
})
|
|
93
|
+
chain.plugin('weapp-tailwindcss').use(WeappTailwindcss, [
|
|
94
|
+
{
|
|
95
|
+
appType: 'taro',
|
|
96
|
+
rem2rpx: true,
|
|
97
|
+
tailwindcssBasedir: srcRoot,
|
|
98
|
+
cssEntries: [tailwindCssEntry],
|
|
99
|
+
tailwindcss: {
|
|
100
|
+
version: 4,
|
|
101
|
+
v4: {
|
|
102
|
+
base: srcRoot,
|
|
103
|
+
cssEntries: [tailwindCssEntry],
|
|
104
|
+
sources: [
|
|
105
|
+
{
|
|
106
|
+
base: srcRoot,
|
|
107
|
+
pattern: '**/*.{html,js,ts,jsx,tsx}',
|
|
108
|
+
negated: false,
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
])
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
h5: {
|
|
118
|
+
compile: {
|
|
119
|
+
include: [
|
|
120
|
+
// 确保产物为 ES5,如可以确认包含 ES6 代码的 node_modules,则可修改正则采用白名单方式缩小编译范围,以提升编译速度
|
|
121
|
+
(filename) =>
|
|
122
|
+
/node_modules\/(?!(@babel|core-js|style-loader|css-loader|react|react-dom))/.test(
|
|
123
|
+
filename,
|
|
124
|
+
),
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
publicPath: '/',
|
|
128
|
+
staticDirectory: 'static',
|
|
129
|
+
output: {
|
|
130
|
+
filename: 'js/[name].[hash:8].js',
|
|
131
|
+
chunkFilename: 'js/[name].[chunkhash:8].js',
|
|
132
|
+
},
|
|
133
|
+
miniCssExtractPluginOption: {
|
|
134
|
+
ignoreOrder: true,
|
|
135
|
+
filename: 'css/[name].[hash].css',
|
|
136
|
+
chunkFilename: 'css/[name].[chunkhash].css',
|
|
137
|
+
},
|
|
138
|
+
postcss: {
|
|
139
|
+
autoprefixer: {
|
|
140
|
+
enable: true,
|
|
141
|
+
config: {},
|
|
142
|
+
},
|
|
143
|
+
cssModules: {
|
|
144
|
+
enable: false,
|
|
145
|
+
config: {
|
|
146
|
+
namingPattern: 'module',
|
|
147
|
+
generateScopedName: '[name]__[local]___[hash:base64:5]',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
webpackChain(chain) {
|
|
152
|
+
chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin)
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
rn: {
|
|
156
|
+
appName: 'taroDemo',
|
|
157
|
+
postcss: {
|
|
158
|
+
cssModules: {
|
|
159
|
+
enable: false,
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
process.env.BROWSERSLIST_ENV = process.env.NODE_ENV
|
|
166
|
+
|
|
167
|
+
if (process.env.NODE_ENV === 'development') {
|
|
168
|
+
return merge({}, baseConfig, devConfig)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return merge({}, baseConfig, prodConfig)
|
|
172
|
+
})
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { UserConfigExport } from "@tarojs/cli"
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
mini: {},
|
|
5
|
+
h5: {
|
|
6
|
+
compile: {
|
|
7
|
+
include: [
|
|
8
|
+
// 确保产物为 es5
|
|
9
|
+
filename => /node_modules\/(?!(@babel|core-js|style-loader|css-loader|react|react-dom))/.test(filename)
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
/**
|
|
13
|
+
* WebpackChain 插件配置
|
|
14
|
+
* @docs https://github.com/neutrinojs/webpack-chain
|
|
15
|
+
*/
|
|
16
|
+
// webpackChain (chain) {
|
|
17
|
+
// /**
|
|
18
|
+
// * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。
|
|
19
|
+
// * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer
|
|
20
|
+
// */
|
|
21
|
+
// chain.plugin('analyzer')
|
|
22
|
+
// .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
|
|
23
|
+
// /**
|
|
24
|
+
// * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。
|
|
25
|
+
// * @docs https://github.com/chrisvfritz/prerender-spa-plugin
|
|
26
|
+
// */
|
|
27
|
+
// const path = require('path')
|
|
28
|
+
// const Prerender = require('prerender-spa-plugin')
|
|
29
|
+
// const staticDir = path.join(__dirname, '..', 'dist')
|
|
30
|
+
// chain
|
|
31
|
+
// .plugin('prerender')
|
|
32
|
+
// .use(new Prerender({
|
|
33
|
+
// staticDir,
|
|
34
|
+
// routes: [ '/pages/index/index' ],
|
|
35
|
+
// postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') })
|
|
36
|
+
// }))
|
|
37
|
+
// }
|
|
38
|
+
}
|
|
39
|
+
} satisfies UserConfigExport<'webpack5'>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { execSync } from 'node:child_process'
|
|
2
|
+
import * as fs from 'node:fs'
|
|
3
|
+
import * as path from 'node:path'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 获取package.json中的版本号
|
|
7
|
+
*/
|
|
8
|
+
function getPackageVersion(): string {
|
|
9
|
+
try {
|
|
10
|
+
const packagePath = path.join(process.cwd(), 'package.json')
|
|
11
|
+
const packageContent = fs.readFileSync(packagePath, 'utf8')
|
|
12
|
+
const packageData = JSON.parse(packageContent)
|
|
13
|
+
return packageData.version || '1.0.0'
|
|
14
|
+
} catch (error) {
|
|
15
|
+
console.warn('⚠️ 获取package.json版本号失败,使用默认版本 1.0.0')
|
|
16
|
+
return '1.0.0'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 获取最新的Git提交信息
|
|
22
|
+
*/
|
|
23
|
+
function getLatestCommitMessage(): string {
|
|
24
|
+
try {
|
|
25
|
+
const message = execSync('git log -1 --pretty=%B', { encoding: 'utf8' }).trim()
|
|
26
|
+
return message || '版本更新'
|
|
27
|
+
} catch (error) {
|
|
28
|
+
console.warn('⚠️ 获取Git提交信息失败,使用默认描述')
|
|
29
|
+
return '版本更新'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 获取当前分支名
|
|
35
|
+
*/
|
|
36
|
+
function getCurrentBranch(): string {
|
|
37
|
+
try {
|
|
38
|
+
return execSync('git rev-parse --abbrev-ref HEAD', { encoding: 'utf8' }).trim()
|
|
39
|
+
} catch (error) {
|
|
40
|
+
return 'unknown'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 获取提交者信息
|
|
46
|
+
*/
|
|
47
|
+
function getCommitAuthor(): string {
|
|
48
|
+
try {
|
|
49
|
+
return execSync('git log -1 --pretty=%an', { encoding: 'utf8' }).trim()
|
|
50
|
+
} catch (error) {
|
|
51
|
+
return 'unknown'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* CI插件配置函数
|
|
57
|
+
* 自动读取版本号和提交信息
|
|
58
|
+
* @returns CIOptions配置
|
|
59
|
+
*/
|
|
60
|
+
export const CIPluginFn = async () => {
|
|
61
|
+
// 动态获取版本信息
|
|
62
|
+
const version = getPackageVersion()
|
|
63
|
+
const commitMessage = getLatestCommitMessage()
|
|
64
|
+
const branch = getCurrentBranch()
|
|
65
|
+
const author = getCommitAuthor()
|
|
66
|
+
|
|
67
|
+
// 构建发布描述
|
|
68
|
+
const desc = `${commitMessage}\n\n📦 版本: ${version}\n🌿 分支: ${branch}\n👤 提交者: ${author}\n⏰ 发布时间: ${new Date().toLocaleString('zh-CN')}`
|
|
69
|
+
|
|
70
|
+
console.log('🚀 CI发布配置:')
|
|
71
|
+
console.log(`📦 版本号: ${version}`)
|
|
72
|
+
console.log(`📝 提交信息: ${commitMessage}`)
|
|
73
|
+
console.log(`🌿 分支: ${branch}`)
|
|
74
|
+
console.log(`👤 提交者: ${author}`)
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @typedef { import("@tarojs/plugin-mini-ci").CIOptions } CIOptions
|
|
78
|
+
* @type {CIOptions}
|
|
79
|
+
*/
|
|
80
|
+
return {
|
|
81
|
+
weapp: {
|
|
82
|
+
appid: 'xxx',
|
|
83
|
+
privateKeyPath: 'xxx',
|
|
84
|
+
},
|
|
85
|
+
// tt: {
|
|
86
|
+
// email: '字节小程序邮箱',
|
|
87
|
+
// password: '字节小程序密码',
|
|
88
|
+
// },
|
|
89
|
+
// alipay: {
|
|
90
|
+
// appid: '支付宝小程序appid',
|
|
91
|
+
// toolId: '工具id',
|
|
92
|
+
// privateKeyPath: '密钥文件相对项目根目录的相对路径,例如 key/pkcs8-private-pem',
|
|
93
|
+
// },
|
|
94
|
+
// dd: {
|
|
95
|
+
// appid: '钉钉小程序appid,即钉钉开放平台后台应用管理的 MiniAppId 选项',
|
|
96
|
+
// token: '令牌,从钉钉后台获取',
|
|
97
|
+
// },
|
|
98
|
+
// swan: {
|
|
99
|
+
// token: '鉴权需要的token令牌',
|
|
100
|
+
// },
|
|
101
|
+
// 动态版本号
|
|
102
|
+
version,
|
|
103
|
+
// 动态版本发布描述
|
|
104
|
+
desc,
|
|
105
|
+
}
|
|
106
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
pre-commit:
|
|
2
|
+
commands:
|
|
3
|
+
fmt:
|
|
4
|
+
glob: '*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,vue,css,scss,md}'
|
|
5
|
+
run: pnpm fmt {staged_files}
|
|
6
|
+
stage_fixed: true
|
|
7
|
+
lint:
|
|
8
|
+
glob: '*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,vue}'
|
|
9
|
+
run: pnpm lint:fix {staged_files}
|
|
10
|
+
stage_fixed: true
|
|
11
|
+
lint-style:
|
|
12
|
+
glob: '*.{css,scss}'
|
|
13
|
+
run: pnpm exec stylelint {staged_files}
|
|
14
|
+
|
|
15
|
+
commit-msg:
|
|
16
|
+
commands:
|
|
17
|
+
lint commit message:
|
|
18
|
+
run: npx commitlint --edit {1}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "myApp",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "",
|
|
6
|
+
"author": "",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"new": "taro new",
|
|
9
|
+
"lint": "oxlint",
|
|
10
|
+
"lint:fix": "oxlint --fix",
|
|
11
|
+
"lint:style": "stylelint \"src/**/*.{css,scss}\"",
|
|
12
|
+
"fmt": "oxfmt",
|
|
13
|
+
"fmt:check": "oxfmt --check",
|
|
14
|
+
"check": "pnpm lint && pnpm lint:style && pnpm fmt:check",
|
|
15
|
+
"build:weapp": "taro build --type weapp --mode development",
|
|
16
|
+
"build:weapp:upload": "taro build --type weapp --upload --mode development",
|
|
17
|
+
"build:swan": "taro build --type swan",
|
|
18
|
+
"build:alipay": "taro build --type alipay",
|
|
19
|
+
"build:tt": "taro build --type tt",
|
|
20
|
+
"build:h5": "taro build --type h5",
|
|
21
|
+
"build:rn": "taro build --type rn",
|
|
22
|
+
"build:qq": "taro build --type qq",
|
|
23
|
+
"build:jd": "taro build --type jd",
|
|
24
|
+
"build:harmony-hybrid": "taro build --type harmony-hybrid",
|
|
25
|
+
"dev:weapp": "npm run build:weapp -- --watch --open",
|
|
26
|
+
"dev:swan": "npm run build:swan -- --watch",
|
|
27
|
+
"dev:alipay": "npm run build:alipay -- --watch",
|
|
28
|
+
"dev:tt": "npm run build:tt -- --watch",
|
|
29
|
+
"dev:h5": "npm run build:h5 -- --watch",
|
|
30
|
+
"dev:rn": "npm run build:rn -- --watch",
|
|
31
|
+
"dev:qq": "npm run build:qq -- --watch",
|
|
32
|
+
"dev:jd": "npm run build:jd -- --watch",
|
|
33
|
+
"dev:harmony-hybrid": "npm run build:harmony-hybrid -- --watch",
|
|
34
|
+
"prepare": "lefthook install"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@alova/adapter-taro": "^2.0.15",
|
|
38
|
+
"@babel/runtime": "^7.24.4",
|
|
39
|
+
"@nutui/icons-react-taro": "3.0.2-cpp.3.beta.9",
|
|
40
|
+
"@nutui/nutui-react-taro": "3.1.0-beta.1",
|
|
41
|
+
"@tarojs/components": "4.2.0",
|
|
42
|
+
"@tarojs/plugin-html": "4.2.0",
|
|
43
|
+
"@tarojs/react": "4.2.0",
|
|
44
|
+
"@tarojs/runtime": "4.2.0",
|
|
45
|
+
"@tarojs/shared": "4.2.0",
|
|
46
|
+
"@tarojs/taro": "4.2.0",
|
|
47
|
+
"alova": "^3.5.1",
|
|
48
|
+
"classnames": "^2.5.1",
|
|
49
|
+
"dayjs": "^1.11.21",
|
|
50
|
+
"react": "^18.0.0",
|
|
51
|
+
"react-dom": "^18.0.0",
|
|
52
|
+
"zustand": "^5.0.14"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@babel/core": "^7.24.4",
|
|
56
|
+
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
57
|
+
"@babel/preset-react": "^7.24.1",
|
|
58
|
+
"@commitlint/cli": "^19.8.1",
|
|
59
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
60
|
+
"@nutui/auto-import-resolver": "^1.0.0",
|
|
61
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
|
|
62
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
63
|
+
"@tarojs/cli": "4.2.0",
|
|
64
|
+
"@tarojs/helper": "4.2.0",
|
|
65
|
+
"@tarojs/plugin-framework-react": "4.2.0",
|
|
66
|
+
"@tarojs/plugin-generator": "4.2.0",
|
|
67
|
+
"@tarojs/plugin-mini-ci": "^4.2.0",
|
|
68
|
+
"@tarojs/plugin-platform-alipay": "4.2.0",
|
|
69
|
+
"@tarojs/plugin-platform-h5": "4.2.0",
|
|
70
|
+
"@tarojs/plugin-platform-harmony-hybrid": "4.2.0",
|
|
71
|
+
"@tarojs/plugin-platform-jd": "4.2.0",
|
|
72
|
+
"@tarojs/plugin-platform-qq": "4.2.0",
|
|
73
|
+
"@tarojs/plugin-platform-swan": "4.2.0",
|
|
74
|
+
"@tarojs/plugin-platform-tt": "4.2.0",
|
|
75
|
+
"@tarojs/plugin-platform-weapp": "4.2.0",
|
|
76
|
+
"@tarojs/taro-loader": "4.2.0",
|
|
77
|
+
"@tarojs/webpack5-runner": "4.2.0",
|
|
78
|
+
"@types/minimatch": "^5",
|
|
79
|
+
"@types/node": "^18",
|
|
80
|
+
"@types/react": "^18.0.0",
|
|
81
|
+
"@types/webpack-env": "^1.13.6",
|
|
82
|
+
"autoprefixer": "^10.5.0",
|
|
83
|
+
"babel-plugin-import": "^1.13.8",
|
|
84
|
+
"babel-preset-taro": "4.2.0",
|
|
85
|
+
"lint-staged": "^16.1.2",
|
|
86
|
+
"miniprogram-ci": "^2.1.31",
|
|
87
|
+
"oxfmt": "^0.54.0",
|
|
88
|
+
"oxlint": "^1.69.0",
|
|
89
|
+
"postcss": "^8.5.15",
|
|
90
|
+
"react-refresh": "^0.14.0",
|
|
91
|
+
"sass": "^1.75.0",
|
|
92
|
+
"stylelint": "^16.26.1",
|
|
93
|
+
"stylelint-config-standard-scss": "^17.0.0",
|
|
94
|
+
"tailwindcss": "^4.3.0",
|
|
95
|
+
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
|
96
|
+
"typescript": "^5.4.5",
|
|
97
|
+
"unplugin-vue-components": "^32.1.0",
|
|
98
|
+
"weapp-tailwindcss": "^5.0.4",
|
|
99
|
+
"webpack": "5.91.0"
|
|
100
|
+
},
|
|
101
|
+
"browserslist": {
|
|
102
|
+
"development": [
|
|
103
|
+
"defaults and fully supports es6-module",
|
|
104
|
+
"maintained node versions"
|
|
105
|
+
],
|
|
106
|
+
"production": [
|
|
107
|
+
"last 3 versions",
|
|
108
|
+
"Android >= 4.1",
|
|
109
|
+
"ios >= 8"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"templateInfo": {
|
|
113
|
+
"name": "default",
|
|
114
|
+
"typescript": true,
|
|
115
|
+
"css": "Sass",
|
|
116
|
+
"framework": "React"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
diff --git a/dist/WeappCI.js b/dist/WeappCI.js
|
|
2
|
+
index 778b65b4f366611ed3c577d3d470da391c3ca879..a7dd8831c160ac4022734be5c3e762128894ea5e 100644
|
|
3
|
+
--- a/dist/WeappCI.js
|
|
4
|
+
+++ b/dist/WeappCI.js
|
|
5
|
+
@@ -67,7 +67,7 @@ class WeappCI extends BaseCi_1.default {
|
|
6
|
+
printLog("error" /* processTypeEnum.ERROR */, '命令行工具路径不存在', cliPath);
|
|
7
|
+
}
|
|
8
|
+
printLog("start" /* processTypeEnum.START */, '微信开发者工具...', this.projectPath);
|
|
9
|
+
- shell.exec(`${cliPath} open --project ${this.projectPath}`);
|
|
10
|
+
+ shell.exec(`"${cliPath}" open --project "${this.projectPath}"`, { encoding: 'utf-8' });
|
|
11
|
+
}
|
|
12
|
+
async preview() {
|
|
13
|
+
const { chalk, printLog, processTypeEnum } = this.ctx.helper;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
allowBuilds:
|
|
2
|
+
'@nutui/nutui-react-taro': true
|
|
3
|
+
'@parcel/watcher': true
|
|
4
|
+
'@swc/core': true
|
|
5
|
+
'@tarojs/binding': true
|
|
6
|
+
'@tarojs/cli': true
|
|
7
|
+
core-js: true
|
|
8
|
+
core-js-pure: true
|
|
9
|
+
esbuild: true
|
|
10
|
+
less: true
|
|
11
|
+
protobufjs: true
|
|
12
|
+
patchedDependencies:
|
|
13
|
+
'@tarojs/plugin-mini-ci': patches/@tarojs__plugin-mini-ci.patch
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"miniprogramRoot": "./dist",
|
|
3
|
+
"projectname": "taro-react-webpack",
|
|
4
|
+
"description": "",
|
|
5
|
+
"appid": "wxac3f99d8814754aa",
|
|
6
|
+
"setting": {
|
|
7
|
+
"urlCheck": true,
|
|
8
|
+
"es6": false,
|
|
9
|
+
"enhance": false,
|
|
10
|
+
"compileHotReLoad": false,
|
|
11
|
+
"postcss": false,
|
|
12
|
+
"minified": false
|
|
13
|
+
},
|
|
14
|
+
"compileType": "miniprogram"
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@nutui/nutui-react-taro/dist/styles/themes/default.css'
|
|
2
|
+
import './styles/index.css'
|
|
3
|
+
import { useLaunch } from '@tarojs/taro'
|
|
4
|
+
import { PropsWithChildren } from 'react'
|
|
5
|
+
|
|
6
|
+
function App({ children }: PropsWithChildren<any>) {
|
|
7
|
+
useLaunch(() => {
|
|
8
|
+
console.log('App launched.')
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
return children
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default App
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
|
5
|
+
<meta content="width=device-width,initial-scale=1,user-scalable=no" name="viewport">
|
|
6
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
7
|
+
<meta name="apple-touch-fullscreen" content="yes">
|
|
8
|
+
<meta name="format-detection" content="telephone=no,address=no">
|
|
9
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="white">
|
|
10
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
|
|
11
|
+
<title>myApp</title>
|
|
12
|
+
<script><%= htmlWebpackPlugin.options.script %></script>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<div id="app"></div>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Cart, Heart, HeartFill, Hi, Home, Top, User } from '@nutui/icons-react-taro'
|
|
2
|
+
import { Button, BackTop, Image, Tabbar } from '@nutui/nutui-react-taro'
|
|
3
|
+
import { View, Text, ScrollView } from '@tarojs/components'
|
|
4
|
+
|
|
5
|
+
import './index.scss'
|
|
6
|
+
import { useLoad } from '@tarojs/taro'
|
|
7
|
+
|
|
8
|
+
export default function Index() {
|
|
9
|
+
useLoad(() => {
|
|
10
|
+
console.log('Page loaded.')
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
const src =
|
|
14
|
+
'https://storage.360buyimg.com/imgtools/e067cd5b69-07c864c0-dd02-11ed-8b2c-d7f58b17086a.png'
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<ScrollView className="h-full w-full bg-[green]" scrollY={true}>
|
|
18
|
+
<Text className="bg-[red] text-red-500">Hello world!</Text>
|
|
19
|
+
你好1 你好李焕英 骄傲吧
|
|
20
|
+
<Text className="text-[pink]">你好李焕英</Text>
|
|
21
|
+
<Tabbar>
|
|
22
|
+
<Tabbar.Item title="首页" icon={<Home />} />
|
|
23
|
+
<Tabbar.Item title="逛" icon={<Hi />} />
|
|
24
|
+
<Tabbar.Item
|
|
25
|
+
title="收藏"
|
|
26
|
+
icon={(active: boolean) => (active ? <HeartFill /> : <Heart />)}
|
|
27
|
+
/>
|
|
28
|
+
<Tabbar.Item title="购物车" icon={<Cart />} />
|
|
29
|
+
<Tabbar.Item title="我的" icon={<User />} />
|
|
30
|
+
</Tabbar>
|
|
31
|
+
<View className="h-[200rpx] w-[200rpx] bg-[yellow]"></View>
|
|
32
|
+
<View className="h-[200rpx] w-[200rpx] bg-[yellow]"></View>
|
|
33
|
+
<View className="h-[200rpx] w-[200rpx] bg-[gray]">2444</View>
|
|
34
|
+
<Button type="primary">我是一个按钮</Button>
|
|
35
|
+
<BackTop>
|
|
36
|
+
<Top size={12} />
|
|
37
|
+
<View style={{ fontSize: '12px' }}>顶部</View>
|
|
38
|
+
</BackTop>
|
|
39
|
+
<View className="h-[8000rpx] w-[200rpx] bg-[gray]">111</View>
|
|
40
|
+
<Image src={src} height={200} />
|
|
41
|
+
<Button type="primary">我是第二个按钮</Button>
|
|
42
|
+
</ScrollView>
|
|
43
|
+
)
|
|
44
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { create } from "zustand";
|
|
2
|
+
import { createJSONStorage, persist } from "zustand/middleware";
|
|
3
|
+
import { TaroStorage } from "./taroStorage";
|
|
4
|
+
|
|
5
|
+
const useUserStore = create(persist((set, get) => ({
|
|
6
|
+
userInfo: undefined
|
|
7
|
+
}),{
|
|
8
|
+
name: 'userStore',
|
|
9
|
+
storage: createJSONStorage(() => TaroStorage)
|
|
10
|
+
}))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export default useUserStore
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'tailwindcss';
|