yarn3-monorepo
Project Template
I’ve taken the learnings from the previously created project templates and merged them into a monorepo.
Check it out: https://github.com/oliversalzburg/yarn3-monorepo
Key Features
The project repository and dependencies are to be managed with modern Yarn (Berry/v2/v3).
- Yarn Plug ’n’ Play, or PnP has been disabled in favor of using
node_modules
. PnP is generally preferred for strictness, butnode_modules
incur less friction. - The default configuration does not utilize Yarn Zero-Installs, which are usually enabled by default in new projects.
- Yarn Plug ’n’ Play, or PnP has been disabled in favor of using
The template contains a mkdocs-material documentation website, which is automatically deployed to GitHub Pages, using GitHub Actions.
Additionally, it contains:
A TypeScript-authored JavaScript library, built with
tsc
(to get fully-featured TypeScript definitions).A NodeJS application, that uses the library and is built with
esbuild
.This is https://github.com/oliversalzburg/yarn3-typescript-nodejs-esbuild adopted for a monorepo.
A web application, that uses the library and is built with
snowpack
.This is https://github.com/oliversalzburg/yarn3-typescript-web-snowpack adopted for a monorepo.
Code quality assistence through EditorConfig + Prettier + lint-staged.
- A git pre-commit hook for lint-staged is created through Yarn. Husky is strictly discouraged.
Enables Renovate to keep dependencies updated. The dependency dashboard is disabled.
How to use
To use this template, go to https://github.com/oliversalzburg/yarn3-monorepo and click Use this template.