Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedronauck/yarn-workspaces-example
Sample monorepo project using new Yarn feature called Workspaces
https://github.com/pedronauck/yarn-workspaces-example
lerna monorepo workspaces yarn
Last synced: 3 months ago
JSON representation
Sample monorepo project using new Yarn feature called Workspaces
- Host: GitHub
- URL: https://github.com/pedronauck/yarn-workspaces-example
- Owner: pedronauck
- Created: 2017-07-20T04:31:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-20T04:41:44.000Z (over 7 years ago)
- Last Synced: 2024-10-14T09:14:38.661Z (4 months ago)
- Topics: lerna, monorepo, workspaces, yarn
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 43
- Watchers: 2
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yarn workspaces example
This is a simple example of a monorepo project that use new [Yarn Workspaces](https://github.com/thejameskyle/rfcs-1/blob/workspaces/accepted/0000-workspaces.md) feature.
## Run
To check workspaces working just run
```
$ yarn install
$ cd packages/b
$ yarn start
```First, Yarn will hoist dependencies in the project root, after that you can link your packages among then and running without publish. You'll see in the `package.json` of `b` package that depends of `a` package and works great without any `./node_modules` folder inside it.
Workspaces are a great alternative for some monorepo tools and in the near future can be a better solution!
Cheers 🍻