A CLI that lets you experience modern monorepo project quickly and easily, powered by turborepo, pnpm and changesets.
Features:
- Create a monorepo template project
- Use pnpm as a package manager
- Use turborepo to preform multiple package script tasks
Install it globally:
pnpm add fmr -g
# Or Yarn
yarn add fmr -g
# Or npm
npm i fmr -g
Overview:
Usage:
fmr new <project>
Create a new monorepo project
Command options:
--type ts monorepo with typescript
--type js monorepo with javascript
Usage:
fmr add <package>
Command options:
--scope <name> install package in scope
--save-dev
-S
--dev
-D
Note that if you don't set --scope
, the package will be installed in root.
Usage:
fmr run <command>
Usage:
fmr changeset
Usage:
fmr version
Usage:
fmr publish
Note that if you want to publish to a private registry
, you should add publicConfig.registry
to packagejson
of the published package, for example:
{
...
"publicConfig": {
"registry": "http://localhost:4873"
}
}