opinionated scaffolder for configuring Git hooks using husky
$ npm install @form8ion/husky --save
import {lift, scaffold, test} from './lib/index.cjs';
(async () => {
await scaffold({projectRoot: process.cwd(), packageManager: 'foo'});
await test({projectRoot: process.cwd()});
await lift({projectRoot: process.cwd(), packageManager: 'foo'});
})();
Scaffolder for configuring git hooks programatically through the use of husky
Takes a single options object as an argument, containing:
path to the root of the project
chosen package manager to be used for the project
path within a parent project when scaffolding a sub-project
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:
path to the root of the project
Lifter for adjusting configuration of git hooks programatically through the use of husky
Takes a single options object as an argument, containing:
path to the root of the project
chosen package manager to be used for the project
$ nvm install
$ npm install
$ npm test