Methods
(async) collectLocalData(cliPackageJson) → {Promise.<DATA>}
collect local data
Parameters:
Name | Type | Description |
---|---|---|
cliPackageJson |
CLI_PACKAGE_JSON | cli package.json data |
Returns:
local data
- Type
- Promise.<DATA>
(async) init()
init cli
Returns:
undefined
parseArgs() → {any}
parse cli args
- Source:
Returns:
cli args
- Type
- any
Type Definitions
CLI_PACKAGE_JSON
cli package.json object
Type:
- Object
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
version |
string | package version |
|||||||||
engines |
Object | engines Properties
|
- Source:
COMMIT_MESSAGE
commit message object
Type:
- Object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
commit |
string |
<optional> |
commit |
prefix |
string | commit message prefix |
|
message |
string | commit message |
|
hash |
string | commit message hash |
|
name |
string | commit message author name |
|
date |
string |
<optional> |
commit message date |
- Source:
DATA
data object
Type:
- Object
Properties:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cli |
CLI_PACKAGE_JSON | cli info |
||||||||||||||||||||||||
cwd |
Object | current working directory Properties
|
||||||||||||||||||||||||
env |
Object | node env Properties
|
||||||||||||||||||||||||
system |
Object | system info Properties
|
||||||||||||||||||||||||
config |
QUICKRELEASE_CONFIG | quick-release config |
||||||||||||||||||||||||
git |
GIT_DATA | git info |
||||||||||||||||||||||||
answers |
PROMPTS_ANSWERS | prompt answers |
||||||||||||||||||||||||
changelog |
Object | changelog data Properties
|
||||||||||||||||||||||||
github |
Object | GitHub data Properties
|
- Source:
GIT_DATA
git data object
Type:
- Object
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
isRepo |
boolean | is git repo in current directory |
||||||||||||||||||||||||||||
isRoot |
boolean | is git root in current directory |
||||||||||||||||||||||||||||
isCommits |
boolean | is git commits |
||||||||||||||||||||||||||||
isTagInCurrentCommit |
boolean | is git tag in current commit |
||||||||||||||||||||||||||||
isRemote |
boolean | is git remote |
||||||||||||||||||||||||||||
isBranchDetached |
boolean | is git branch detached |
||||||||||||||||||||||||||||
isBranchAhead |
boolean | is git branch ahead |
||||||||||||||||||||||||||||
isBranchBehind |
boolean | is git branch behind |
||||||||||||||||||||||||||||
hash |
string | git hash |
||||||||||||||||||||||||||||
branch |
string | git branch |
||||||||||||||||||||||||||||
lastTag |
string | git last tag |
||||||||||||||||||||||||||||
status |
string | git status |
||||||||||||||||||||||||||||
log |
Array.<COMMIT_MESSAGE> | git log |
||||||||||||||||||||||||||||
branchUpstream |
string | git branch upstream |
||||||||||||||||||||||||||||
stagedFiles |
Array.<string> | is git staged files |
||||||||||||||||||||||||||||
changedFiles |
Array.<string> | is git staged files |
||||||||||||||||||||||||||||
remote |
Object | git remote origin Properties
|
- Source:
JSON_FORMATING_INFO
json formating info
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
space |
string | undefined | number | json space size |
newline |
string | json newline |
- Source:
JSON_WITH_FORMATING
json file data with formating info
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
data |
any | json data |
format |
JSON_FORMATING_INFO | json formating info |
- Source:
PROMPTS_ANSWERS
prompts answers object
Type:
- Object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
releaseType |
string |
<optional> |
release type |
releaseVersion |
string |
<optional> |
release version |
changelog |
boolean |
<optional> |
release version |
githubRelease |
boolean |
<optional> |
github release |
- Source:
QUICKRELEASE_CONFIG
quickrelease.json config object
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
files |
Array.<string> | package.json,package-lock.json | additional files to parse and include into release process |
|||||||||||||||||||||
changelog |
Object | changelog config Properties
|
||||||||||||||||||||||
githubReleaseTitles |
Array.<string> |
<optional> |
github release titles |
- Source:
SPLIT_LOG
object with breaking and generic commits
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
breaking |
Array.<COMMIT_MESSAGE> | breaking changes |
generic |
Array.<COMMIT_MESSAGE> | generic changes |
- Source: