Example project with...
- Node.js
- Monorepo by Yarn workspaces
- Yarn PnP (Berry)
- Jest
- ESLint
- TypeScript
path | name | publish | description |
---|---|---|---|
/ |
monorepo-pnp-jest-example |
Manage the Monorepo, and the Linters | |
/packages/foo |
@kurone-kito/mpje-foo |
✅ | An example package |
/packages/bar |
@kurone-kito/mpje-bar |
✅ | An example package that depends on @kurone-kito/mpje-foo |
/packages/builder |
@kurone-kito/mpje-builder |
The builder of the @kurone-kito/mpje-foo and @kurone-kito/mpje-bar |
- Node.js >= 14.19.0
- Yarn >= 2.4.3
npm i -g yarn@berry
yarn install
yarn run clean
The command removes artifacts and various intermediate data, and it doesn't
remove dependent external packages installed by the yarn install
command.
yarn run build
Create a dist
folder for each subproject and output the results there.
yarn run build:re
The above command performs cleanup and builds at once, equivalent to a rebuild.
yarn start
The command, like build, creates a dist
folder for each sub-project
underneath and outputs the artifacts there, but it also monitors the source
code for changes and performs a build every time the user saves.
To stop it, press Ctrl
+ c
.
yarn run lint
yarn run lint:fix # Lint and auto-fix
yarn run test
Currently, the command works as an alias for the yarn run lint
command.
MIT