Grunt: Add grunt-esformatter, formats all source files (no validation)

This commit is contained in:
Jörn Zaefferer 2013-11-15 13:38:38 +01:00
parent 6a483fd143
commit 327bcbae8c
2 changed files with 17 additions and 0 deletions

View File

@ -110,6 +110,7 @@ grunt.loadNpmTasks( "grunt-jscs-checker" );
grunt.loadNpmTasks( "grunt-html" ); grunt.loadNpmTasks( "grunt-html" );
grunt.loadNpmTasks( "grunt-compare-size" ); grunt.loadNpmTasks( "grunt-compare-size" );
grunt.loadNpmTasks( "grunt-git-authors" ); grunt.loadNpmTasks( "grunt-git-authors" );
grunt.loadNpmTasks( "grunt-esformatter" );
// local testswarm and build tasks // local testswarm and build tasks
grunt.loadTasks( "build/tasks" ); grunt.loadTasks( "build/tasks" );
@ -202,6 +203,21 @@ grunt.initConfig({
csslintrc: ".csslintrc" csslintrc: ".csslintrc"
} }
} }
},
esformatter: {
options: {
preset: "jquery"
},
ui: "ui/*.js",
tests: "tests/unit/**/*.js",
build: {
options: {
skipHashbang: true
},
src: "build/**/*.js"
},
grunt: "Gruntfile.js"
} }
}); });

View File

@ -66,6 +66,7 @@
"grunt-jscs-checker": "0.2.0", "grunt-jscs-checker": "0.2.0",
"grunt-html": "0.3.3", "grunt-html": "0.3.3",
"grunt-git-authors": "1.2.0", "grunt-git-authors": "1.2.0",
"grunt-esformatter": "0.2.0",
"rimraf": "2.1.4", "rimraf": "2.1.4",
"testswarm": "1.1.0" "testswarm": "1.1.0"
}, },