Skip to content

Commit 327bcba

Browse files
committed
Grunt: Add grunt-esformatter, formats all source files (no validation)
1 parent 6a483fd commit 327bcba

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Gruntfile.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ grunt.loadNpmTasks( "grunt-jscs-checker" );
110110
grunt.loadNpmTasks( "grunt-html" );
111111
grunt.loadNpmTasks( "grunt-compare-size" );
112112
grunt.loadNpmTasks( "grunt-git-authors" );
113+
grunt.loadNpmTasks( "grunt-esformatter" );
113114
// local testswarm and build tasks
114115
grunt.loadTasks( "build/tasks" );
115116

@@ -202,6 +203,21 @@ grunt.initConfig({
202203
csslintrc: ".csslintrc"
203204
}
204205
}
206+
},
207+
208+
esformatter: {
209+
options: {
210+
preset: "jquery"
211+
},
212+
ui: "ui/*.js",
213+
tests: "tests/unit/**/*.js",
214+
build: {
215+
options: {
216+
skipHashbang: true
217+
},
218+
src: "build/**/*.js"
219+
},
220+
grunt: "Gruntfile.js"
205221
}
206222
});
207223

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"grunt-jscs-checker": "0.2.0",
6767
"grunt-html": "0.3.3",
6868
"grunt-git-authors": "1.2.0",
69+
"grunt-esformatter": "0.2.0",
6970
"rimraf": "2.1.4",
7071
"testswarm": "1.1.0"
7172
},

0 commit comments

Comments
 (0)