Skip to content

Instantly share code, notes, and snippets.

Ruskin jonnyparris

Block or report user

Report or block jonnyparris

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jonnyparris / Copy package.json to dist folder
Created Apr 17, 2019
Generated distribution-friendly package.json at dist/package.json (without devDependencies)
View Copy package.json to dist folder
const fs = require('fs')
const DIST_SCRIPTS = {
'start': 'npm run start-main-script'
fs.readFile('package.json', 'utf8', (err, data) => {
const distPackage = JSON.parse(data)
distPackage['scripts'] = DIST_SCRIPTS
delete distPackage['devDependencies']
jonnyparris /
Last active Jul 19, 2019 — forked from bartoszmajsak/
How to automatically prepend git commit with the Jira ticket reference from a branch name
# For instance with feature/add_new_feature_HEYT-653
# $ git commit -m"Fixed bug"
# will result with commit "[HEYT-653] Fixed bug"
# Customize which branches should be skipped when prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
You can’t perform that action at this time.