https://github.com/alexeyraspopov/monorepo
Simple monorepo setup with NPM Workspaces
https://github.com/alexeyraspopov/monorepo
Last synced: 3 months ago
JSON representation
Simple monorepo setup with NPM Workspaces
- Host: GitHub
- URL: https://github.com/alexeyraspopov/monorepo
- Owner: alexeyraspopov
- Created: 2021-05-12T16:49:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T17:38:04.000Z (over 4 years ago)
- Last Synced: 2025-07-14T21:49:09.097Z (3 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Monorepo
Simple monorepo that uses [NPM Workspaces](https://docs.npmjs.com/cli/v7/using-npm/workspaces).
- Clone the repo
- `npm install` to install everything required for any package
- `npm start --workspace=packages/project-a` or `cd packages/project-a; npm start` to run a package
- `npm test --workspaces` to run `test` script in every package where it's available
- `npm run build --workspaces` to build all apps## Details
- All dependencies are stored in a single place and deduped
- Packages can use sibling packages without versioning and publishing to registries
- I added a prefix `@monorepo/` to packages name to avoid naming clashes in `node_modules`
- Vite, Jest, Flow, and ESLint work just fine with workspaces