Added grunt task for jsfmt

This commit is contained in:
Yusuf Simonson 2014-12-18 17:26:35 -05:00
parent 4def679b2b
commit bc821622a8
2 changed files with 12 additions and 0 deletions

View file

@ -182,6 +182,16 @@ module.exports = function(grunt) {
clean: {
options: {force: true},
generated: [tempFolder]
},
jsfmt: {
default: {
files: [{
expand: true,
src: ['mithril.js'],
cwd: '.',
dest: '.'
}]
}
}
});
@ -196,6 +206,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"]);

View file

@ -18,6 +18,7 @@
"grunt-contrib-qunit": "*",
"grunt-contrib-connect": "*",
"grunt-zip": "*",
"grunt-jsfmt": "git://github.com/ysimonson/grunt-jsfmt",
"grunt-contrib-connect": "~0.7.1",
"grunt-contrib-jshint": "~0.10.0",