Skip to content

Instantly share code, notes, and snippets.

@dan-f
Last active August 25, 2016 19:46
Show Gist options
  • Save dan-f/041903733e3af2b2962f3cd7e0be0e39 to your computer and use it in GitHub Desktop.
Save dan-f/041903733e3af2b2962f3cd7e0be0e39 to your computer and use it in GitHub Desktop.
basic npm scripts
{
"scripts": {
"build": "echo 'TODO: implement build script' && exit 1",
"lint": "echo 'TODO: implement lint script' && exit 1",
"test": "echo 'TODO: implement test script' && exit 1",
"pretest": "npm run lint",
"preversion": "npm test",
"postversion": "git push --follow-tags",
"prepublish": "npm run build"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment