 ##############
## Please note
##############

# First, run ``make install``.
# After that you have through Makefile extension all the other base targets available.

# If you want to release on GitHub, make sure to have a .env file with a GITHUB_TOKEN.
# Also see:
#	https://github.com/settings/tokens
#	and https://github.com/release-it/release-it/blob/master/docs/github-releases.md#automated


# Include base Makefile
-include node_modules/@patternslib/dev/Makefile

# Define the GITHUB_TOKEN in the .env file for usage with release-it.
-include .env
export

PNPM ?= npx pnpm

.PHONY: install
pnpm-lock.yaml install: .git/hooks/commit-msg
	$(PNPM) install

.git/hooks/commit-msg:
	echo "npx commitlint --edit" > .git/hooks/commit-msg
	chmod u+x .git/hooks/commit-msg
