Skip to main content

stageUtils

Index

Enumerations

ActionType

ActionType:

ADD

ADD: 2

CREATE

CREATE: 0

DELETE

DELETE: 1

MODIFY

MODIFY: 4

REMOVE

REMOVE: 3

Type Aliases

Consensus

Consensus: { useComponent: boolean; useThirdPerson: boolean; useUpperCase: boolean }

Type declaration

  • useComponent: boolean
  • useThirdPerson: boolean
  • useUpperCase: boolean

FileAction

FileAction: { action: ActionType; path: PortablePath }

Type declaration

Functions

checkConsensus

  • checkConsensus(lines: string[], regex: RegExp): boolean
  • Parameters

    • lines: string[]
    • regex: RegExp

    Returns boolean

expandDirectory

findConsensus

findVcsRoot

genCommitMessage

getCommitPrefix

  • getCommitPrefix(consensus: Consensus): | chore(yarn):
  • Parameters

    Returns | chore(yarn):

isYarnFile

  • isYarnFile(path: PortablePath, __namedParameters: { names: Set<string>; roots: Set<string> }): boolean
  • Parameters

    • path: PortablePath
    • __namedParameters: { names: Set<string>; roots: Set<string> }

    Returns boolean