0.0.1 • Published 7 years ago
@dylanvann/flow-mono-cli v0.0.1
flow-mono-cli
flow-mono-cli is a command line interface that aims to solve a few issues while working with flow typed codebases in a mono-repo.
It provides a set of commands that we found to be very useful if you want your mono-repo packages to have their own flow instances. We do not intend to replace existing packages and furthermore we find it to be of importance that these issues are getting fixed at their respective packages but in the meantime a separate CLI was the fastest and best option we found.
Features
- Creates symlinks for flow to be able to resolve dependencies which were installed/hoisted into the root
node_modulesof your mono-repo into each packagesnode_modules. - Smart resolve mechanism of mono-repo packages with a dependency to
flow-bin, based on theworkspacesconfig in your rootpackage.json. - Keeps your
flow-binandflow-typedversions in sync across your mono-repo packages. - Maintains a single or fallback
.flowconfigacross all packages. - Creates flow-typed stubs for in-direct dependencies (dependencies of dependencies).
- Configurable via a
.flowmonorcorflow-monoproperty in your mono-repo's rootpackage.json.
Installation
$ npm install flow-mono-cli --save-devor
$ yarn add flow-mono-cli --devafterwards make sure that you've got your workspaces configured in the root package.json, e.g.
{
"workspaces": [
"packages/*"
]
}Commands and Documentation
- Introduction
flow-mono create-symlinksflow-mono install-typesflow-mono create-stubsflow-mono align-versions
Contributing
See the CONTRIBUTING.md file at the root of the repository.
Licensing
See the LICENSE file at the root of the repository.
0.0.1
7 years ago
0.0.0-development
7 years ago