diff --git a/Gruntfile.js b/Gruntfile.js index 636d5b6b..18aaf603 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -184,6 +184,16 @@ module.exports = function(grunt) { clean: { options: {force: true}, generated: [tempFolder] + }, + jsfmt: { + default: { + files: [{ + expand: true, + src: ['mithril.js'], + cwd: '.', + dest: '.' + }] + } } }); @@ -198,6 +208,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-qunit'); grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-saucelabs'); + grunt.loadNpmTasks('grunt-jsfmt'); grunt.registerTask("build", ["test", "uglify", "zip", "md2html", "replace", "copy", "clean"]); grunt.registerTask("testall", ["test", "teste2e"]); diff --git a/package.json b/package.json index e0ac65f0..c4655986 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "grunt-replace": "*", "grunt-contrib-qunit": "*", "grunt-zip": "*", + "grunt-jsfmt": "git://github.com/ysimonson/grunt-jsfmt", "grunt-contrib-connect": "~0.7.1", "grunt-contrib-jshint": "~0.10.0",