message: Generate checksum file for packaged archives
diff: @@ -55,7 +55,21 @@ module.exports = function (grunt) {
  }
  })
  + grunt.registerTask('checksum', 'Create .md5 checksum files', function () {
  + const fs = require('fs')
  + const crypto = require('crypto')
  + fs.readdirSync('dist/').forEach(file => {
  + const buffer = fs.readFileSync('dist/' + file)
  + const md5 = crypto.createHash('md5')
  + md5.update(buffer)
  + const md5Hash = md5.digest('hex')
  + const md5FileName = 'dist/' + file + '.md5'
  + grunt.file.write(md5FileName, md5Hash)
  + grunt.log.write(`Checksum ${md5Hash} written to file ${md5FileName}.`).verbose.write('...').ok()
  + })
  + })
  +
  grunt.loadNpmTasks('grunt-replace-json')
  grunt.loadNpmTasks('grunt-contrib-compress')
  - grunt.registerTask('package', ['replace_json:manifest', 'compress:pckg'])
  + grunt.registerTask('package', ['replace_json:manifest', 'compress:pckg', 'checksum'])
  }
  