lifespikes/monorepo-cli

There is no license information available for the latest version (20220410084039) of this package.

Installs: 6 291

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:composer-plugin


README

Component of lifespikes/lifespikes

This is a composer plugin primarily for use in monorepo environments. As of right now this plugin is mostly meant to work hand-in-hand with Symplify's symplify/monorepo-plugin package.

What does it do?

M.I. primarily does two things:

  • Discourages require statements not originating from a package.
    • Prompts developer to choose a package to install package in.
  • Provides a simple command to create new packages.
    • composer workspace:create [package-name]
  • Runs vendor/bin/monorepo-builder merge upon a package installation.

Installation

To install, just run composer require lifespikes/monorepo-cli. You'll be able to use the plugin once it's activated on your composer file.

Configuration

You can configure the plugin by using your composer.json extra section. Here are the options you can configure:

'monorepo-cli' => [
   'owner'             => 'myOrganization',
   
   'ignore-packages'   =>  ['laravel-bare', 'monorepo-cli'],
   'package_dir'       =>  'packages',
   
   'binaries'          =>  [
       'monorepo-builder'  =>  'vendor/bin/monorepo-builder',
       'composer'          =>  'composer',
   ]
]