Skip to content

Commit

Permalink
feat: adding versioning as well as commitlint make commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbarcarol committed May 16, 2021
1 parent 4d02510 commit 818acef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

.PHONY: \
ci \
compile \
changelog changelog.preview \
commitlint.main \
build build.ts build.exo \
clean \
checkup \
Expand Down Expand Up @@ -31,6 +34,19 @@ compile:
@ tree -s -h --du build
@ echo "🎉 Compile complete 🎉"

# ⬆️ Add changes to changelog

changelog:
npx standard-version --skip.commit --skip.tag

changelog.preview:
npx standard-version --skip.commit --skip.tag --dry-run

# 🧐 Lint commits from current branch against main

commitlint.main:
npx commitlint --verbose --from "origin/main"

# 👷 Build

build: clean build.ts build.exo
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"description": "An implementation of the enigma machine",
"main": "main.js",
"types": "main.d.ts",
"engines": {
"node": ">=14 <=16"
},
"scripts": {
"code": "make code.fix",
"test": "make test",
Expand Down

0 comments on commit 818acef

Please sign in to comment.