@lg-tools/create

0.4.0 • Public • Published

@lg-tools/create

Creates a new LeafyGreen package

Usage

Use from @lg-tools/cli:

lg create <package-name>

Options

Scope

-s, --scope

The npm scope of the new package. Valid scopes are defined in the package.json "lg.scopes" property.

Defaults to the first entry in lg.scopes.

The directory is determined by the mapping defined in lg.scopes

# Create a new package in the @lg-charts scope
lg create my-package --scope @lg-charts

Directory

-d, --directory

The directory to write the new package. Defaults to mapped directory of --scope.

# Create a new package in ./components
lg create my-package --directory './components'

Parent

-p, --parent

Identifies the parent component of the new component. Creates a sub-component to the provided parent.

# Creates a new subcomponent of '@lg-charts/core'
lg create my-package --parent '@lg-charts/core'

Dry

-d, --dry

Run without making any changes to the filesystem (default: false)

Verbose

-v, --verbose

Prints additional information to the console (default: false)

Readme

Keywords

none

Package Sidebar

Install

npm i @lg-tools/create

Weekly Downloads

42

Version

0.4.0

License

Apache-2.0

Unpacked Size

135 kB

Total Files

87

Last publish

Collaborators

  • shaneeza
  • brookescarlett
  • thesonofthomp
  • _tsck
  • stephl3