0.0.4-beta.1 • Published 1 year ago

@ilk-1/samoyed v0.0.4-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

samoyed

A tool to improve the experience of git hooks.

Set up

  • install the npm package npm install @ilk-1/samoyed
  • run the script to initialize samoyed npx samoyed

Introduction

The samoyed support pre-commit and commit-msg. When you run git commit -m "xxxxxx", the hook will run the .samoyed/main.mjs and mark it's type. This js-file will check the .samoyedrc.json to collect commands for running.

interface SamoyedConfig {
    "pre-commit": Array<{
        scope: string;
        commands: string[];
    }>;
    "commit-msg": Array<{
        scope: string;
        commands: string[];
    }>
}

Detail

The samoyed use RegExp to determine which command will be run. So the scope is actually a regexp string.

0.0.4-beta.1

1 year ago

0.0.4-beta

1 year ago

0.0.3-beta

1 year ago

0.0.2-beta

1 year ago

0.0.1-beta

1 year ago