diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 46b0a32d..199c556c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -26,13 +26,15 @@ If you notice any problems, please report them to the GitHub issue tracker at ## Releasing -A full release may be completed with the following: +A full release may be completed by first updating the `"version"` property in package.json, then running the following: ``` yarn clean -yarn grunt -yarn grunt uglify +yarn grunt release yarn publish ``` -After releasing, remember to update `diff.js` on the `gh-pages` branch to the latest built version from the `dist/` folder. +After releasing, remember to: +* commit the `package.json` change and push it to GitHub +* create a new version tag on GitHub +* update `diff.js` on the `gh-pages` branch to the latest built version from the `dist/` folder. diff --git a/Gruntfile.js b/Gruntfile.js index e6ef2450..281c380b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -139,8 +139,6 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-mocha-istanbul'); grunt.loadNpmTasks('grunt-exec'); - grunt.task.loadTasks('tasks'); - grunt.registerTask('dev', ['clean', 'watch']); grunt.registerTask('default', ['clean', 'build', 'cover']); }; diff --git a/tasks/version.js b/tasks/version.js deleted file mode 100644 index f807fd38..00000000 --- a/tasks/version.js +++ /dev/null @@ -1,21 +0,0 @@ -let semver = require('semver'); - -module.exports = function(grunt) { - grunt.registerTask('version', 'Updates the current release version', function() { - let done = this.async(), - pkg = grunt.config('pkg'), - version = grunt.option('ver'); - - if (!semver.valid(version)) { - throw new Error('Must provide a version number (Ex: --ver=1.0.0):\n\t' + version + '\n\n'); - } - - pkg.version = version; - grunt.config('pkg', pkg); - - grunt.log.writeln('Updating to version ' + version); - - grunt.task.run(['release']); - done(); - }); -};