build(package): unstage changes to package.json in a pre-commit hook

This commit is contained in:
Jason Dreyzehner 2016-10-19 21:53:37 -04:00
parent 3cb717aa97
commit f7333d1807
2 changed files with 9 additions and 10 deletions

View File

@ -1,7 +1,4 @@
{
"//":"Having trouble with this file? Try `npm run reset`",
"//":"Want git to ignore changes to this file? Run `npm run ignore`",
"name": "*PACKAGENAME*",
"description": "*DESCRIPTION*",
"author": "BitPay",
@ -108,9 +105,8 @@
"apply:bitpay": "cd app-template && node apply.js bitpay && cordova prepare",
"test": "./node_modules/.bin/grunt test-coveralls",
"clean": "trash platforms && trash plugins && cordova prepare",
"ignore": "git update-index --skip-worktree package.json",
"reset": "git update-index --no-skip-worktree package.json",
"clean-all": "npm run reset && git clean -dfx"
"unstage-package": "git reset package.json",
"clean-all": "git clean -dfx"
},
"devDependencies": {
"cordova": "^6.3.1",
@ -118,6 +114,8 @@
"ionic": "^2.1.0",
"trash-cli": "^1.4.0",
"lodash": "^4.3.0",
"fileicon": "^0.1.8"
}
"fileicon": "^0.1.8",
"pre-commit": "^1.1.3"
},
"pre-commit": "unstage-package"
}

View File

@ -5,7 +5,7 @@
"scripts": {
"postinstall": "npm run apply:copay",
"start": "echo && echo \"Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.\" && echo",
"preapply": "npm i fs-extra && git update-index --skip-worktree package.json",
"preapply": "npm i fs-extra",
"apply:copay": "npm run preapply && cd app-template && node apply.js copay && cd .. && npm i",
"apply:bitpay": "npm run preapply && cd app-template && node apply.js bitpay && cd .. && npm i"
},
@ -14,5 +14,6 @@
"url": "git://github.com/bitpay/copay.git",
"url": "git://github.com/bitpay/bitpay-wallet.git",
"type": "git"
}
},
"changes": "changes to this file can be commited with the --no-verify option"
}