slack-message-parser

JavaScript library for parsing Slack message format (mrkdwn)

Development guide

Prerequisites

Commands

Project specific commands. Please refer to deno help or Deno’s manual for other tasks.

Setup git hooks

Optional but recommended, run this command or copy the files under .githooks into .git/hooks.

$ git config core.hooksPath .githooks

This command configures these git hooks:

See the contents of each files to see what will be executed.

If your work directory has unstaged files, some checking process may fail. To commit without those unstaged files, stash them before commit.

Run unit tests

# This also performs type checking
$ deno test

To see test coverage:

# `coverage/` is ignored in .gitingore
# You can also use other than `coverage/` (e.g. `cov/`)
$ deno test --coverage=coverage/
$ deno coverage coverage/ --exclude=tests --exclude=_test