Skip to content

Instantly share code, notes, and snippets.

View AlfieriChou's full-sized avatar
🎧
Focusing

Alfieri AlfieriChou

🎧
Focusing
  • Hangzhou China
View GitHub Profile
@AlfieriChou
AlfieriChou / .git-commit-template.txt
Created May 15, 2019 02:30 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@AlfieriChou
AlfieriChou / get-npm-package-version
Created January 27, 2019 14:09 — forked from DarrenN/get-npm-package-version
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION