Skip to content

patternsonio/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d2856c0 · Jun 2, 2018

History

47 Commits
Jun 2, 2018
Apr 19, 2018
Feb 27, 2018
Apr 19, 2018
Apr 19, 2018
Apr 19, 2018
Apr 19, 2018
Feb 27, 2018
Apr 19, 2018
Mar 4, 2018
Jun 2, 2018
Apr 27, 2018
May 11, 2018
Jun 2, 2018
Mar 26, 2018

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.