 
 
   grunt.initConfig
+    pkg: grunt.file.readJSON 'package.json'
     pkgFile: 'package.json'
 
     files: [

  grunt.loadNpmTasks 'grunt-npm'
  grunt.loadNpmTasks 'grunt-bump'
  grunt.loadNpmTasks 'grunt-auto-release'

  grunt.registerTask 'test', ['karma:single']
  grunt.registerTask 'default', ['jshint', 'jscs', 'test']
  grunt.registerTask 'release', 'Bump the version and publish to npm.', (type) ->
    grunt.task.run [
      'changelog'
      'npm-contributors'
      "bump:#{type||'patch'}"
      'npm-publish'
    ]


    bump:
      options:
        updateConfigs: ['pkg']
        commitFiles: ['package.json', 'CHANGELOG.md']
        commitMessage: 'chore: release v%VERSION%'
        pushTo: 'upstream'
