Options
All
  • Public
  • Public/Protected
  • All
Menu

adds husky to the project, which manages git hooks

Hierarchy

  • Component
    • Husky

Index

Constructors

  • adds husky to the project

    Parameters

    • project: NodeProject

      the project to add to

    • Optional options: Dynamic<HuskyOptions, NodeProject>

      see HuskyOptions

    Returns Husky

Properties

hooks?: Partial<Record<HuskyHook, TextFile>>
project: Project
defaultOptions: Dynamic<DeepRequired<HuskyOptions>, NodeProject> = ...

Methods

  • addHook(hook: HuskyHook, ...lines: string[]): void
  • adds the lines to the specified hook

    Parameters

    • hook: HuskyHook

      to hook to add to

    • Rest ...lines: string[]

      the new lines to add

    Returns void

  • removes the specified hook

    Parameters

    Returns void

  • getHookNames(): string[]
  • get the list of all the hook names

    Returns string[]

    the hook names

  • overrideHook(hook: HuskyHook, ...lines: string[]): void
  • replaces the specified hook

    Parameters

    • hook: HuskyHook

      the hook to override

    • Rest ...lines: string[]

      the new lines

    Returns void

  • postSynthesize(): void
  • Called after synthesis. Order is not guaranteed.

    Returns void

  • preSynthesize(): void
  • adds husky to the project

    Returns void

  • synthesize(): void
  • Synthesizes files to the project output directory.

    Returns void

Generated using TypeDoc