Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmijatovic/pnpm-workspaces
Testing pnpm workspaces
https://github.com/dmijatovic/pnpm-workspaces
Last synced: 10 days ago
JSON representation
Testing pnpm workspaces
- Host: GitHub
- URL: https://github.com/dmijatovic/pnpm-workspaces
- Owner: dmijatovic
- Created: 2023-06-10T12:01:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-10T17:32:13.000Z (over 1 year ago)
- Last Synced: 2024-11-13T16:54:10.626Z (2 months ago)
- Language: TypeScript
- Size: 319 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PNPM workspaces test
This repo tests use of pnmp and workspaces for monorepo setup of the project. The goals is to have multiple modules in the same project and enable sharing of components and utility methods among the modules.
## Install pnpm
For more options [see documentation](https://pnpm.io/installation)
```bash
# install using npm
npm install -g pnpm# validate
pnpm --version
```## Initialise pnpm project
```bash
pnpm init
```## Create workspace
Create pnpm-workspace.yaml file and define modules
```yaml
packages:
- 'rsd-home'
- 'rsd-software'
- 'rsd-projects'
- 'rsd-core'
```## Install/link local modules
```bash
# add rsd-core package to rsd-software within workspace
pnpm add @rsd/core --filter @rsd/software --workspace
```