5.3.0 • Published 4 months ago

@form8ion/husky v5.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

husky

opinionated scaffolder for configuring Git hooks using husky

Node CI Workflow Status Codecov SLSA Level 2

Table of Contents

Usage

MIT license npm Try @form8ion/husky on RunKit node

Installation

$ npm install @form8ion/husky --save

Example

Import

import {lift, scaffold, test} from './lib/index.cjs';

Execute

(async () => {
  await scaffold({projectRoot: process.cwd(), packageManager: 'foo'});

  await test({projectRoot: process.cwd()});

  await lift({projectRoot: process.cwd(), packageManager: 'foo'});
})();

API

scaffold

Scaffolder for configuring git hooks programatically through the use of husky

Takes a single options object as an argument, containing:

projectRoot string (required)

path to the root of the project

packageManager string (required)

chosen package manager to be used for the project

pathWithinParent string (optional)

path within a parent project when scaffolding a sub-project

test

Predicate for determining whether the lift functionality should be applied to the current project. Identifies if husky is currently in use for the project.

Takes a single options object as an argument, containing:

projectRoot string (required)

path to the root of the project

lift

Lifter for adjusting configuration of git hooks programatically through the use of husky

Takes a single options object as an argument, containing:

projectRoot string (required)

path to the root of the project

packageManager string (required)

chosen package manager to be used for the project

Contributing

PRs Welcome Commitizen friendly Conventional Commits semantic-release Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test
5.3.0

4 months ago

5.2.0

6 months ago

5.1.0

8 months ago

5.0.0

10 months ago

4.1.0

11 months ago

4.0.2

11 months ago

3.0.0-beta.1

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

2.4.0-alpha.1

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

1.4.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.2.0-alpha.4

3 years ago

1.2.0-alpha.3

3 years ago

1.2.0-alpha.2

3 years ago

1.2.0-alpha.1

3 years ago

1.1.0

3 years ago

1.1.0-alpha.1

3 years ago

1.0.0

3 years ago

1.0.0-alpha.5

3 years ago

1.0.0-alpha.4

3 years ago

1.0.0-alpha.3

3 years ago

1.0.0-alpha.2

3 years ago

1.0.0-alpha.1

3 years ago