@digituz/monorepo

1.2.1 • Public • Published

Monorepos

This NPM package contains a CLI (Command Line Interface) that helps developers managing monorepos. Before creating this NPM package, we have tried lerna and FormidableLabs/builder. None of them solved the problem the way we expected and we had a hard time trying to integrating them with CI/CD tools like Travis. Hence, we have created this package.

Usage

First of all, you will need to install this package:

npm i -D @digituz/monorepo

After that, you can start using the monorepo CLI. For now, the available options are:

  • bootstrap: Merges the main package.json file with the package.ext.json file provided by the package and installs dependencies.
  • bump: Takes the bump type (must be patch, minor, or major) and bumps the package accordingly.
  • clean: Removes main node_modules directory and then removes node_modules and package.json from internal packages.
  • publish: Publishes new versions to NPM.
  • runScript: Runs a script on one or more internal packages.
  • test: Runs npm test on one or more internal packages.

Here, you can see a few examples on how to use it:

# runs tests for all packages
monorepo test

# runs tests for a single package called Button
monorepo test -p Button

# runs a minor bump to Input and Button
monorepo bump -p Button Input -b minor

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @digituz/monorepo

    Weekly Downloads

    4

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    17

    Last publish

    Collaborators

    • brunokrebs