Last active
February 12, 2017 10:52
-
-
Save marcelmokos/3cbacb08eb5104fa3a2f512c7f21010a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
packagejson=$(cat package.json) | |
addtopackagejson=$(echo '{ | |
"author": "Marcel Mokoš <https://github.com/marcelmokos>", | |
"pre-commit": [ | |
"lint:pre-commit" | |
], | |
"scripts": { | |
"test": "jest --env=jsdom", | |
"test:coverage": "yarn test -- --coverage", | |
"flow": "flow", | |
"lint": "eslint \"/**/*.js\" --cache", | |
"lint:fix": "yarn run lint -- --fix", | |
"lint:pre-commit": "yarn run lint -- --fix" | |
}}') | |
echo "$addtopackagejson | |
$packagejson" | json --deep-merge > package.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment