- Lerna (TS)
- Vite (configured for React TS)
- Husky
Packages connected with a shared Typescript
, eslint
and prettier
config and configured to support caching for build and test.
packages
for shared generic helper functions, configs and morecomponents
for shared (React) componentsapps
for Vite applications
Modern front-end tooling. Setup as default for React TS projects.
- Validates branch name
- Lints staged files
- Runs tests
... on commit
yarn
to bootstrap the monorepo and link packagesyarn tsc
to build packagesyarn test
to test packagesyarn start
to start the Vite dev environmentyarn build
to build the Vite applicationyarn preview
to preview the Vite production build locally
Inspect how Counter
component and is-empty
package is imported and used in the Vite application App.jsx
and how the ts-config
, eslint-config
and prettier-config
are used.
Change the package names @mono
and script variables guide
in the root package.json
to match your setup.
Update the links to packages in devDependencies
in every affected package.json
.