dojo / dojo-package-template

Dojo 2 - template to clone for creating packages (internal use)
Other
6 stars 18 forks source link

Add grunt `release` task. #18

Closed mwistrand closed 8 years ago

mwistrand commented 8 years ago

Partially resolves https://github.com/dojo/core/issues/36, but changes are added to this repo since they could be replicated across all dojo packages. "Partially" since no mechanism for publishing to Bower is included.

This adds the grunt-release dependency with a Grunt release task that will:

  1. Update the version (according to semver) in bower.json, package.json, and the local config object.
  2. Run the clean and dist tasks.
  3. Commit and push the package.json and bower.json changes, along with the Git tags.
  4. Publish to npm.

I have tested this in a separate, personal repository (without the npm flag) to confirm that this functions properly.