Skip to content
This repository was archived by the owner on Jun 11, 2021. It is now read-only.

Commit b0d0331

Browse files
committed
App package.json to help with release tagging
1 parent 9924a88 commit b0d0331

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "xterrafile",
3+
"description": "a pure Go tool for managing vendored modules and formulas using a YAML file",
4+
"version": "2.1.1",
5+
"license": "MIT",
6+
"private": true,
7+
"scripts": {
8+
"test": "go build -v ; go test -v ./...",
9+
"gitbranch": "BRANCH=$(git symbolic-ref HEAD 2>/dev/null | cut -d\"/\" -f 3); if [[ \"$BRANCH\" != \"master\" ]]; then echo \"you must be on master branch to release\"; exit 1 ; fi",
10+
"gitstatus": "STATUS=$(git status --porcelain 2>&1); echo $STATUS; if [[ ! -z \"$STATUS\" ]]; then exit 1; fi;",
11+
"gittest": "yarn gitbranch; yarn gitstatus",
12+
"preversion": "yarn gittest; yarn test",
13+
"postversion": "git push --follow-tags"
14+
}
15+
}

0 commit comments

Comments
 (0)