Skip to content

React + Webpack5 + Rudux + React-Router6 + tailwindcss + husky

License

Notifications You must be signed in to change notification settings

Alicehhhmm/Norush-Monorepo-react

Repository files navigation

这是一个基于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.

About

React + Webpack5 + Rudux + React-Router6 + tailwindcss + husky

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published