/*jslint node: true */

'use strict';

module.exports = function (grunt) {

    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-jslint');
    grunt.loadNpmTasks('grunt-mocha-test');
    grunt.loadNpmTasks('grunt-release');

    grunt.initConfig({

        pkg: grunt.file.readJSON('package.json'),

        jslint: {
            all: {
                src: 'snowman.js'
            }
        },

        mochaTest: {
            test: {
                src: 'test/*.js'
            }
        },

        release: {
            commitMessage: 'Release <%= version %>.',
            tagMessage: 'Version <%= version %>.',
            github: {
                repo: 'jacksonrayhamilton/snowman',
                usernameVar: 'GITHUB_USERNAME',
                passwordVar: 'GITHUB_PASSWORD'
            }
        },

        uglify: {
            dist: {
                options: {
                    preserveComments: 'some',
                    sourceMap: true
                },
                files: {
                    'dist/snowman.min.js': 'snowman.js'
                }
            }
        },

        watch: {
            test: {
                files: [
                    'snowman.js',
                    'test/*.js'
                ],
                tasks: 'test'
            }
        }

    });

    grunt.registerTask('test', ['mochaTest']);
    grunt.registerTask('build', ['uglify']);
    grunt.registerTask('default', ['jslint', 'test', 'build']);

};

@@ -577,24 +577,51 @@
  release: %7B%0A
+            options: %7B%0A    
             
@@ -674,16 +674,20 @@
         
+    
 tagMessa
@@ -729,16 +729,20 @@
         
+  
+  
 github: 
@@ -739,24 +739,28 @@
   github: %7B%0A
+    
             
@@ -815,16 +815,20 @@
         
+  
+  
 username
@@ -867,16 +867,20 @@
         
+    
 password
@@ -902,16 +902,34 @@
 SSWORD'%0A
+                %7D%0A
         

Fix grunt-release options.