mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Grunt: Add grunt-esformatter, formats all source files (no validation)
This commit is contained in:
parent
6a483fd143
commit
327bcbae8c
16
Gruntfile.js
16
Gruntfile.js
@ -110,6 +110,7 @@ grunt.loadNpmTasks( "grunt-jscs-checker" );
|
||||
grunt.loadNpmTasks( "grunt-html" );
|
||||
grunt.loadNpmTasks( "grunt-compare-size" );
|
||||
grunt.loadNpmTasks( "grunt-git-authors" );
|
||||
grunt.loadNpmTasks( "grunt-esformatter" );
|
||||
// local testswarm and build tasks
|
||||
grunt.loadTasks( "build/tasks" );
|
||||
|
||||
@ -202,6 +203,21 @@ grunt.initConfig({
|
||||
csslintrc: ".csslintrc"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
esformatter: {
|
||||
options: {
|
||||
preset: "jquery"
|
||||
},
|
||||
ui: "ui/*.js",
|
||||
tests: "tests/unit/**/*.js",
|
||||
build: {
|
||||
options: {
|
||||
skipHashbang: true
|
||||
},
|
||||
src: "build/**/*.js"
|
||||
},
|
||||
grunt: "Gruntfile.js"
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -66,6 +66,7 @@
|
||||
"grunt-jscs-checker": "0.2.0",
|
||||
"grunt-html": "0.3.3",
|
||||
"grunt-git-authors": "1.2.0",
|
||||
"grunt-esformatter": "0.2.0",
|
||||
"rimraf": "2.1.4",
|
||||
"testswarm": "1.1.0"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user