Skip to content

Latest commit

 

History

History
81 lines (57 loc) · 1.96 KB

README.md

File metadata and controls

81 lines (57 loc) · 1.96 KB

这是一个基于Webpack、pnpm、React 的Monorepo架构包管理案例。 内含开发中常见的配置,如 Babel、tailwindcss、TypeScript、husky、commitlint、elsint、pretter 等基础配置

以及相关Webpack打包优化案例


Static Badge Static Badge


📦installation

You can clone it for local development:

git clone https://github.com/Alicehhhmm/Norush-Monorepo-react.git
cd Norush-Monorepo-react
pnpm install
pnpm start
// or
pnpm run start

💻Common command

  • 给根目录安装依赖
pnpm add <package-name> -w
# or
pnpm add <package-name> --workspace-root
  • 给指定的workspace安装依赖
pnpm add <package-name> -F <workspace-name>
# or
pnpm add <package-name> --filter <workspace-name>

例如: 给@norush/react.temp 包添加dayjs依赖

pnpm add dayjs -F @norush/react.temp
  • 子包之间的引用
pnpm add @norush/shared -F @norush/react.temp

📝 License

Copyright ©2023-present Norush.
This project is MIT licensed.