├── .eslintrc.cjs ├── .github └── workflows │ ├── compile.yml │ └── deploy.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .prettierrc.cjs ├── README.md ├── commitlint.config.cjs ├── libs ├── esbuild-bundle │ ├── .eslintrc.cjs │ ├── README.md │ ├── bin │ │ └── build-es.js │ ├── package.json │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── react-components │ ├── .eslintrc.cjs │ ├── README.md │ ├── esbuild.bundle.mjs │ ├── package.json │ ├── src │ │ ├── AddButton │ │ │ ├── __tests__ │ │ │ │ └── index.test.tsx │ │ │ └── index.tsx │ │ ├── SubButton │ │ │ ├── __tests__ │ │ │ │ └── index.test.tsx │ │ │ └── index.tsx │ │ ├── hooks │ │ │ ├── __tests__ │ │ │ │ └── index.test.tsx │ │ │ └── useCounter.ts │ │ └── index.ts │ ├── tsconfig.build.json │ ├── tsconfig.json │ └── vitest.config.mts └── watch-packages │ ├── .eslintrc.cjs │ ├── README.md │ ├── bin │ └── watch-libs.js │ ├── esbuild.bundle.mjs │ ├── package.json │ ├── src │ ├── index.ts │ ├── utils.ts │ └── watchScheduler.ts │ ├── tsconfig.build.json │ └── tsconfig.json ├── monorepo-frame.code-workspace ├── package.json ├── packages ├── node-vitest │ ├── .eslintrc.cjs │ ├── esbuild.bundle.mjs │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ └── index.test.ts │ │ └── index.ts │ ├── tsconfig.build.json │ ├── tsconfig.json │ └── vitest.config.mts ├── node │ ├── .eslintrc.cjs │ ├── esbuild.bundle.mjs │ ├── package.json │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── react-vitest │ ├── .eslintrc.cjs │ ├── README.md │ ├── package.json │ ├── rsbuild.config.ts │ ├── src │ │ ├── App.css │ │ ├── App.tsx │ │ ├── __tests__ │ │ │ └── App.test.tsx │ │ ├── env.d.ts │ │ └── index.tsx │ ├── tsconfig.json │ └── vitest.config.mts └── react │ ├── .eslintrc.cjs │ ├── README.md │ ├── package.json │ ├── rsbuild.config.ts │ ├── src │ ├── App.css │ ├── App.tsx │ ├── env.d.ts │ └── index.tsx │ └── tsconfig.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── scripts └── buildfe.sh ├── tsconfig.json └── turbo.json /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.github/workflows/compile.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/.github/workflows/compile.yml -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # 理论应该开启, 但为了演示设定保存自动格式化 2 | # *.code-workspace 3 | node_modules 4 | output 5 | es/ 6 | cjs/ 7 | .turbo 8 | dist -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | pnpm exec lint-staged -------------------------------------------------------------------------------- /.prettierrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/.prettierrc.cjs -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/commitlint.config.cjs -------------------------------------------------------------------------------- /libs/esbuild-bundle/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/esbuild-bundle/.eslintrc.cjs -------------------------------------------------------------------------------- /libs/esbuild-bundle/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/esbuild-bundle/README.md -------------------------------------------------------------------------------- /libs/esbuild-bundle/bin/build-es.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/esbuild-bundle/bin/build-es.js -------------------------------------------------------------------------------- /libs/esbuild-bundle/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/esbuild-bundle/package.json -------------------------------------------------------------------------------- /libs/esbuild-bundle/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/esbuild-bundle/src/index.ts -------------------------------------------------------------------------------- /libs/esbuild-bundle/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/esbuild-bundle/tsconfig.json -------------------------------------------------------------------------------- /libs/react-components/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/.eslintrc.cjs -------------------------------------------------------------------------------- /libs/react-components/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/README.md -------------------------------------------------------------------------------- /libs/react-components/esbuild.bundle.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/esbuild.bundle.mjs -------------------------------------------------------------------------------- /libs/react-components/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/package.json -------------------------------------------------------------------------------- /libs/react-components/src/AddButton/__tests__/index.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/src/AddButton/__tests__/index.test.tsx -------------------------------------------------------------------------------- /libs/react-components/src/AddButton/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/src/AddButton/index.tsx -------------------------------------------------------------------------------- /libs/react-components/src/SubButton/__tests__/index.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/src/SubButton/__tests__/index.test.tsx -------------------------------------------------------------------------------- /libs/react-components/src/SubButton/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/src/SubButton/index.tsx -------------------------------------------------------------------------------- /libs/react-components/src/hooks/__tests__/index.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/src/hooks/__tests__/index.test.tsx -------------------------------------------------------------------------------- /libs/react-components/src/hooks/useCounter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/src/hooks/useCounter.ts -------------------------------------------------------------------------------- /libs/react-components/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/src/index.ts -------------------------------------------------------------------------------- /libs/react-components/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/tsconfig.build.json -------------------------------------------------------------------------------- /libs/react-components/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/tsconfig.json -------------------------------------------------------------------------------- /libs/react-components/vitest.config.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/react-components/vitest.config.mts -------------------------------------------------------------------------------- /libs/watch-packages/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/watch-packages/.eslintrc.cjs -------------------------------------------------------------------------------- /libs/watch-packages/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/watch-packages/README.md -------------------------------------------------------------------------------- /libs/watch-packages/bin/watch-libs.js: -------------------------------------------------------------------------------- 1 | import '../es/index.js'; 2 | -------------------------------------------------------------------------------- /libs/watch-packages/esbuild.bundle.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/watch-packages/esbuild.bundle.mjs -------------------------------------------------------------------------------- /libs/watch-packages/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/watch-packages/package.json -------------------------------------------------------------------------------- /libs/watch-packages/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/watch-packages/src/index.ts -------------------------------------------------------------------------------- /libs/watch-packages/src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/watch-packages/src/utils.ts -------------------------------------------------------------------------------- /libs/watch-packages/src/watchScheduler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/watch-packages/src/watchScheduler.ts -------------------------------------------------------------------------------- /libs/watch-packages/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/watch-packages/tsconfig.build.json -------------------------------------------------------------------------------- /libs/watch-packages/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/libs/watch-packages/tsconfig.json -------------------------------------------------------------------------------- /monorepo-frame.code-workspace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/monorepo-frame.code-workspace -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/package.json -------------------------------------------------------------------------------- /packages/node-vitest/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node-vitest/.eslintrc.cjs -------------------------------------------------------------------------------- /packages/node-vitest/esbuild.bundle.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node-vitest/esbuild.bundle.mjs -------------------------------------------------------------------------------- /packages/node-vitest/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node-vitest/package.json -------------------------------------------------------------------------------- /packages/node-vitest/src/__tests__/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node-vitest/src/__tests__/index.test.ts -------------------------------------------------------------------------------- /packages/node-vitest/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node-vitest/src/index.ts -------------------------------------------------------------------------------- /packages/node-vitest/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node-vitest/tsconfig.build.json -------------------------------------------------------------------------------- /packages/node-vitest/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node-vitest/tsconfig.json -------------------------------------------------------------------------------- /packages/node-vitest/vitest.config.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node-vitest/vitest.config.mts -------------------------------------------------------------------------------- /packages/node/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node/.eslintrc.cjs -------------------------------------------------------------------------------- /packages/node/esbuild.bundle.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node/esbuild.bundle.mjs -------------------------------------------------------------------------------- /packages/node/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node/package.json -------------------------------------------------------------------------------- /packages/node/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node/src/index.ts -------------------------------------------------------------------------------- /packages/node/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/node/tsconfig.json -------------------------------------------------------------------------------- /packages/react-vitest/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/.eslintrc.cjs -------------------------------------------------------------------------------- /packages/react-vitest/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/README.md -------------------------------------------------------------------------------- /packages/react-vitest/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/package.json -------------------------------------------------------------------------------- /packages/react-vitest/rsbuild.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/rsbuild.config.ts -------------------------------------------------------------------------------- /packages/react-vitest/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/src/App.css -------------------------------------------------------------------------------- /packages/react-vitest/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/src/App.tsx -------------------------------------------------------------------------------- /packages/react-vitest/src/__tests__/App.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/src/__tests__/App.test.tsx -------------------------------------------------------------------------------- /packages/react-vitest/src/env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/src/env.d.ts -------------------------------------------------------------------------------- /packages/react-vitest/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/src/index.tsx -------------------------------------------------------------------------------- /packages/react-vitest/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/tsconfig.json -------------------------------------------------------------------------------- /packages/react-vitest/vitest.config.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react-vitest/vitest.config.mts -------------------------------------------------------------------------------- /packages/react/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react/.eslintrc.cjs -------------------------------------------------------------------------------- /packages/react/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react/README.md -------------------------------------------------------------------------------- /packages/react/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react/package.json -------------------------------------------------------------------------------- /packages/react/rsbuild.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react/rsbuild.config.ts -------------------------------------------------------------------------------- /packages/react/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react/src/App.css -------------------------------------------------------------------------------- /packages/react/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react/src/App.tsx -------------------------------------------------------------------------------- /packages/react/src/env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react/src/env.d.ts -------------------------------------------------------------------------------- /packages/react/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react/src/index.tsx -------------------------------------------------------------------------------- /packages/react/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/packages/react/tsconfig.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /scripts/buildfe.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/scripts/buildfe.sh -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/tsconfig.json -------------------------------------------------------------------------------- /turbo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caifeng123/monorepo-frame/HEAD/turbo.json --------------------------------------------------------------------------------