@bird-studio/interactive-message

interactive message tool

Usage no npm install needed!

<script type="module">
  import birdStudioInteractiveMessage from 'https://cdn.skypack.dev/@bird-studio/interactive-message';
</script>

README

semantic-release Gitmoji

Overview

Create messages in an interactive format.

preview

Usage

npm i -D @bird-studio/interactive-message

touch interactive-message.config.js

example

https://github.com/bird-studio/interactive-message/blob/main/example.config.js

The part that matches questionDictionary.name will be replaced.
Change the templates and questions as you like.
This setting is Conventional Commit and gitmoji.

Commit hook

githooks

prepare-commit-msg

#!/bin/sh

exec < /dev/tty && yarn interactive-message commit
git -c my.interactive=yes commit

package.json

"scripts": {
  "prepare": "git config --local core.hooksPath .githooks"
}

husky

prepare-commit-msg

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

exec < /dev/tty && npx interactive-message commit