Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.41 KB

NOTE.md

File metadata and controls

42 lines (26 loc) · 1.41 KB

Note

Git hooks

There are git hooks, you can see them in package.json under husky field. To ignore hooks registered by husky, run HUSKY_SKIP_HOOKS=1 <command-you-want> or pnpm husky-skip <command-you-want>. Note that shell-specific configuration (e.g. aliases) might be only available with the former one, as pnpm could use a different shell (e.g. /bin/sh) from your default one.

Lint-staged

lint-staged is used to format staged files before committed.

Commitizen

This repo is "commitizen-friendly". Commitizen is executed when git commit(prepare-commit-msg hook).

Commitlint

Commitlint lints commit message. commitlint.config.js is its configuration file.

.npmignore vs files

files is configured like this.

package.json:

{
  "files": ["dist", "hasura"]
}

But at the same time, .npmignore is also configured in a duplicated manner.

.npmignore:

**/*
!dist
!hasura

That's because, with only files, "dist" is ignored by .gitignore. I think this behavior is strange, and some people (randomly?) experience the issue as well (Read some comments).