This is a starter pnpm monorepo project.
Run the following command:
# download monorepo
pnpm dlx degit [email protected]:Soyhuce/monorepo-with-generators.git my-project
cd my-project
# set current node.js
nvm use
# install dependencies with pnpm
pnpm i
# generate your first app/package
pnpm gen
This monorepo includes the following generators:
typescript-react-vite
: a React.js app
javascript
: a simple javascript packagetypescript
: a simple typescript packagetypescript-react-ui
: a React.js package with Storybook.js
Each package/app comes with Vitest.js.
This monorepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
To build all apps and packages, run the following command:
pnpm build
To develop all apps and packages, run the following command:
pnpm dev
To test all apps and packages, run the following command:
pnpm test