Getting started with oneRepo
Quick start
Section titled Quick start-
Install the CLI
First, install oneRepo’s
one
command into your path: -
Create your oneRepo
Next, use the
one create
command to initialize into an existing or a new repository. -
Bring your own Package Manager
oneRepo is compatible with all major package managers for Node.js.
-
Configure your repo
Modify the root configuration file,
./onerepo.config.ts
, for your repo’s specific needs.Refer to the full configuration documentation for more information.
-
Ready to go!
That’s it! Change into your monorepo’s root directory and use the
one
CLI.
Manually integrating oneRepo
Section titled Manually integrating oneRepo-
Install dependencies
Install dependencies using your package manager of choice.
-
Install the CLI
Install the CLI into your system. This will create a command,
one
, that can be run from anywhere in your path. It will always pick up a local version ofonerepo
, if it exists, otherwise fall back on the current version. -
Configure workspaces
Configure your package manager to work with workspaces
-
Configure
Create a configuration file at the root of your repository. This may be either JavaScript or TypeScript.
Refer to the full configuration documentation for more information.