Added grunt task for jsfmt
This commit is contained in:
parent
4def679b2b
commit
bc821622a8
2 changed files with 12 additions and 0 deletions
11
Gruntfile.js
11
Gruntfile.js
|
|
@ -182,6 +182,16 @@ module.exports = function(grunt) {
|
||||||
clean: {
|
clean: {
|
||||||
options: {force: true},
|
options: {force: true},
|
||||||
generated: [tempFolder]
|
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-qunit');
|
||||||
grunt.loadNpmTasks('grunt-contrib-connect');
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
||||||
grunt.loadNpmTasks('grunt-saucelabs');
|
grunt.loadNpmTasks('grunt-saucelabs');
|
||||||
|
grunt.loadNpmTasks('grunt-jsfmt');
|
||||||
|
|
||||||
grunt.registerTask("build", ["test", "uglify", "zip", "md2html", "replace", "copy", "clean"]);
|
grunt.registerTask("build", ["test", "uglify", "zip", "md2html", "replace", "copy", "clean"]);
|
||||||
grunt.registerTask("testall", ["test", "teste2e"]);
|
grunt.registerTask("testall", ["test", "teste2e"]);
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
"grunt-contrib-qunit": "*",
|
"grunt-contrib-qunit": "*",
|
||||||
"grunt-contrib-connect": "*",
|
"grunt-contrib-connect": "*",
|
||||||
"grunt-zip": "*",
|
"grunt-zip": "*",
|
||||||
|
"grunt-jsfmt": "git://github.com/ysimonson/grunt-jsfmt",
|
||||||
|
|
||||||
"grunt-contrib-connect": "~0.7.1",
|
"grunt-contrib-connect": "~0.7.1",
|
||||||
"grunt-contrib-jshint": "~0.10.0",
|
"grunt-contrib-jshint": "~0.10.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue