https://github.com/chrisdothtml/monorepo-project-generator
Generate packages to stress test various monorepo approaches with
https://github.com/chrisdothtml/monorepo-project-generator
Last synced: about 2 months ago
JSON representation
Generate packages to stress test various monorepo approaches with
- Host: GitHub
- URL: https://github.com/chrisdothtml/monorepo-project-generator
- Owner: chrisdothtml
- Created: 2019-02-14T21:49:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-15T20:34:57.000Z (over 7 years ago)
- Last Synced: 2025-01-28T22:44:48.686Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# monorepo-project-generator
> Generate packages to stress test various monorepo approaches with
## Use
### 1. Clone this repo and install its deps
```sh
git clone git@github.com:chrisdothtml/monorepo-project-generator.git
cd monorepo-project-generator
yarn
```
### 2. Navigate to the dir where the packages will be
```sh
cd ../path/to/my-test-monorepo
```
### 3. Run the cli
***Note***: this uses a seeded rng, so all random operations in commands are reproducable if the same command is run again (e.g. randomly making deps dependent on eachother, randomly adding deps to packages)
```sh
../path/to/monorepo-project-generator/generator [args...]
# provide a custom seed for the rng
generator --seed=my-seed [args...]
# generate [n] number of packages that are randomly dependent
# on eachother
generator generate 100
# randomly add new dependencies to the existing generated
# packages (make sure to run in the dir containing the packages)
generator addDeps
```