build(package): unstage changes to package.json in a pre-commit hook
This commit is contained in:
parent
3cb717aa97
commit
f7333d1807
2 changed files with 9 additions and 10 deletions
|
|
@ -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*",
|
"name": "*PACKAGENAME*",
|
||||||
"description": "*DESCRIPTION*",
|
"description": "*DESCRIPTION*",
|
||||||
"author": "BitPay",
|
"author": "BitPay",
|
||||||
|
|
@ -108,9 +105,8 @@
|
||||||
"apply:bitpay": "cd app-template && node apply.js bitpay && cordova prepare",
|
"apply:bitpay": "cd app-template && node apply.js bitpay && cordova prepare",
|
||||||
"test": "./node_modules/.bin/grunt test-coveralls",
|
"test": "./node_modules/.bin/grunt test-coveralls",
|
||||||
"clean": "trash platforms && trash plugins && cordova prepare",
|
"clean": "trash platforms && trash plugins && cordova prepare",
|
||||||
"ignore": "git update-index --skip-worktree package.json",
|
"unstage-package": "git reset package.json",
|
||||||
"reset": "git update-index --no-skip-worktree package.json",
|
"clean-all": "git clean -dfx"
|
||||||
"clean-all": "npm run reset && git clean -dfx"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cordova": "^6.3.1",
|
"cordova": "^6.3.1",
|
||||||
|
|
@ -118,6 +114,8 @@
|
||||||
"ionic": "^2.1.0",
|
"ionic": "^2.1.0",
|
||||||
"trash-cli": "^1.4.0",
|
"trash-cli": "^1.4.0",
|
||||||
"lodash": "^4.3.0",
|
"lodash": "^4.3.0",
|
||||||
"fileicon": "^0.1.8"
|
"fileicon": "^0.1.8",
|
||||||
}
|
"pre-commit": "^1.1.3"
|
||||||
|
},
|
||||||
|
"pre-commit": "unstage-package"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "npm run apply:copay",
|
"postinstall": "npm run apply:copay",
|
||||||
"start": "echo && echo \"Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.\" && echo",
|
"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: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"
|
"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/copay.git",
|
||||||
"url": "git://github.com/bitpay/bitpay-wallet.git",
|
"url": "git://github.com/bitpay/bitpay-wallet.git",
|
||||||
"type": "git"
|
"type": "git"
|
||||||
}
|
},
|
||||||
|
"changes": "changes to this file can be commited with the --no-verify option"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue