https://github.com/kovalenkovpu/monorepo-npm
Example of using npm workspaces
https://github.com/kovalenkovpu/monorepo-npm
npm npm-workspaces reactjs workspaces
Last synced: about 1 month ago
JSON representation
Example of using npm workspaces
- Host: GitHub
- URL: https://github.com/kovalenkovpu/monorepo-npm
- Owner: kovalenkovpu
- Created: 2021-10-11T17:45:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-11T18:40:56.000Z (over 4 years ago)
- Last Synced: 2025-01-19T18:44:08.382Z (over 1 year ago)
- Topics: npm, npm-workspaces, reactjs, workspaces
- Language: TypeScript
- Homepage:
- Size: 718 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `npm` workspaces monorepository example
### Usage:
- checkout the project
- `npm install` on this repo root level. This will install common dependencies on a root level (common dependencies), also will install specific dependencies inside each package level
- `npm run -w @monorepo-npm/` to run the command for a `` repo. For that, the `` should exist in the `package.json` for the targeted workspace
- `npm run -ws` to run the command for all workspaces. E.g. `npm run test -ws`
### More details on the usage is [here](https://docs.npmjs.com/cli/v7/using-npm/workspaces).
## Important! `npm` v.7.x is required