Skip to content

patternsonio/cli

Repository files navigation

Patternsoncli Banner

Create, Run and Publish helper for Patternson Libraries.

Install

npm i -g @patternson/cli

Config

There are multiple ways to configure the patternson cli.

Sorted by importance (cli args will overwrite env vars etc.)

command line arguments

patternson <command> --[key]=[value]

environment variables

patternson_[key]=[value] patternson <command>

or

export patternson_[key]=[value]
patternson <command>

.patternsonrc file in any parent folder

[key]=[value]

package.json file of the project

{
  "name": "mylib",
  "patternson": {
    "[key]": "[value]"
  }
}

Options

accessToken

authentication token for patternson registry.
required

name

name of the component library.
defaults to name in package.json

version

version of the library.
defaults to version in package.json

componentsDir

directory where all components can be found.
defaults to src/components

rootDir

root directory of the local library.
defaults to dirname of package.json

registryUrl

http endpoint of the patternson registry.
defaults to the official patternson registry

Contributing

Feel free to send us issues and pull requests.