This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@gb-lerna/cli
TypeScript icon, indicating that this package has built-in type declarations

2.8.0 • Public • Published

gb-lerna/cli

TypeScript latest

Create and maintain a Lerna monorepo with Typescript.

Installation

npm install -g @gb-lerna/cli

Create a new monorepo

mkdir sample-project
cd sample-project
git init
gb-lerna repo @sample/website
gb-lerna package @sample/api
gb-lerna package @sample/admin
gb-lerna module --kind values personnel @sample/admin
gb-lerna module --kind class student @sample/admin
npm install
lerna bootstrap
lerna add @sample/api --scope @sample/website
lerna add @sample/api --scope @sample/admin
npm test

Add another package to your project

cd your-app
gb-lerna package @sample/tools

Commands

repo|repository [options] <initialPackage>

create a new monorepo with initial package

Options:
  -i, --independent  version packages independently
  -h, --help         display help for command

package [options] <name>

create a new package

Options:
  -h, --help  display help for command

module [options] <name> [scope]

create a new class or funtions module

Optionally you can prepend a path to the name argument such as path/to/name.

Use --kind class to create a JavaScript class and test. Use --kind values (the default) to create a new module for exporting functions, objects or primitive values and a test for the module.

Options:
  -k, --kind <kind>  the kind of module (choices: "class", "values")
  --no-test          skip spec file
  -h, --help         display help for command

info [options]

print out a markdown table listing the packages in your monorepo.

Options:
  -v, --verbose  verbose output
  -h, --help     display help for command

[options] [command]

Options:
  -V, --version                    output the version number
  -f, --force                      use force on schematics
  -d, --dryRun                     dry run only
  -h, --help                       display help for command

Commands:
  repo [options] [initialPackage]  create a new monorepo with initial package
  package <name>                   create a new package
  module [options] <name> [scope]  create a new class or module
  info [options]                   print information about your lerna repo
  help [command]                   display help for command

Readme

Keywords

Package Sidebar

Install

npm i @gb-lerna/cli

Weekly Downloads

0

Version

2.8.0

License

ISC

Unpacked Size

16.1 kB

Total Files

9

Last publish

Collaborators

  • garyb432