bitovi / syn

Standalone Synthetic Event Library
https://www.npmjs.com/package/syn
MIT License
444 stars 258 forks source link

Update package.json to use preversion, version, and postversion #106

Open mickmcgrath13 opened 9 years ago

mickmcgrath13 commented 9 years ago

Update package.json to use preversion, version, and postversion Example: https://github.com/canjs/can-set/blob/master/package.json

//...
  "scripts": {
    "preversion": "npm test && npm run build",
    "version": "git commit -am \"Update dist for release\" && git checkout -b release && git add -f dist/",
    "postversion": "git push --tags && git checkout master && git branch -D release && git push",
    "release:patch": "npm version patch && npm publish",
    "release:minor": "npm version minor && npm publish",
    "release:major": "npm version major && npm publish",
    "jshint": "jshint src/. --config",
    "testee": "testee test.html --browsers firefox",
    "test": "npm run jshint && npm run testee",
    "build": "node build.js"
  },
//...
mickmcgrath13 commented 9 years ago

PR: https://github.com/bitovi/syn/pull/108