Skip to content

Commit

Permalink
Add git-info
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits committed Jan 9, 2024
1 parent 055777d commit 6369ec0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# env variables
/public/settings/env-config.js

# generated Git info
/src/generated/gitInfo.ts
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint": "next lint",
"install-if-package-changed": "git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet yarn.lock && npm install || exit 0",
"prepare": "husky install",
"pre-commit": "concurrently 'lint-staged'"
"pre-commit": "concurrently 'lint-staged'",
"git-info": "rm -rf src/generated/ && mkdir src/generated/ && echo export default \"{\\\"commitHash\\\": \\\"$(git rev-parse --short HEAD)\\\", \\\"version\\\": \\\"$(git describe --tags --always)\\\"};\" > src/generated/gitInfo.ts"
},
"dependencies": {
"@stellar/design-system": "^1.1.2",
Expand Down

0 comments on commit 6369ec0

Please sign in to comment.