aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-03-06 16:35:10 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2015-03-06 16:35:10 +0100
commitea999e4776bb0fe67b1eff702f09fc5cb878bfe0 (patch)
tree54e50796fb3b9a57bbee6d6a740340fd08f05c44 /build/tasks
parentac2a1113bbc179884b22070c36c64331a7c53218 (diff)
downloadjquery-ui-ea999e4776bb0fe67b1eff702f09fc5cb878bfe0.tar.gz
jquery-ui-ea999e4776bb0fe67b1eff702f09fc5cb878bfe0.zip
Build: Style fixes
Diffstat (limited to 'build/tasks')
-rw-r--r--build/tasks/build.js10
-rw-r--r--build/tasks/testswarm.js46
2 files changed, 28 insertions, 28 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js
index 13e6fad14..77ae2545d 100644
--- a/build/tasks/build.js
+++ b/build/tasks/build.js
@@ -4,12 +4,12 @@ module.exports = function( grunt ) {
grunt.registerTask( "clean", function() {
require( "rimraf" ).sync( "dist" );
-});
+} );
grunt.registerTask( "asciilint", function() {
var valid = true,
- files = grunt.file.expand({ filter: "isFile" }, "ui/*.js" );
- files.forEach(function( filename ) {
+ files = grunt.file.expand( { filter: "isFile" }, "ui/*.js" );
+ files.forEach( function( filename ) {
var i, c,
text = grunt.file.read( filename );
@@ -32,11 +32,11 @@ grunt.registerTask( "asciilint", function() {
}
valid = false;
}
- });
+ } );
if ( valid ) {
grunt.log.ok( files.length + " files lint free." );
}
return valid;
-});
+} );
};
diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js
index 5f872e901..73817abfa 100644
--- a/build/tasks/testswarm.js
+++ b/build/tasks/testswarm.js
@@ -48,26 +48,26 @@ function submit( commit, runs, configFile, extra, done ) {
runs[ testName ] = config.testUrl + commit + "/tests/unit/" + runs[ testName ];
}
- testswarm.createClient({
+ testswarm.createClient( {
url: config.swarmUrl
- })
- .addReporter( testswarm.reporters.cli )
- .auth({
- id: config.authUsername,
- token: config.authToken
- })
- .addjob({
- name: "Commit <a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
- runs: runs,
- runMax: config.runMax,
- browserSets: config.browserSets,
- timeout: 1000 * 60 * 30
- }, function( error, passed ) {
- if ( error ) {
- grunt.log.error( error );
- }
- done( passed );
- });
+ } )
+ .addReporter( testswarm.reporters.cli )
+ .auth( {
+ id: config.authUsername,
+ token: config.authToken
+ } )
+ .addjob( {
+ name: "Commit <a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
+ runs: runs,
+ runMax: config.runMax,
+ browserSets: config.browserSets,
+ timeout: 1000 * 60 * 30
+ }, function( error, passed ) {
+ if ( error ) {
+ grunt.log.error( error );
+ }
+ done( passed );
+ } );
}
grunt.registerTask( "testswarm", function( commit, configFile ) {
@@ -77,16 +77,16 @@ grunt.registerTask( "testswarm", function( commit, configFile ) {
latestTests[ test ] = tests[ test ] + "?nojshint=true";
}
submit( commit, latestTests, configFile, "", this.async() );
-});
+} );
grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile, minor ) {
var allTests = {};
- versions[ minor ].split(" ").forEach(function( version ) {
+ versions[ minor ].split( " " ).forEach( function( version ) {
for ( var test in tests ) {
allTests[ test + "-" + version ] = tests[ test ] + "?nojshint=true&jquery=" + version;
}
- });
+ } );
submit( commit, allTests, configFile, "core " + minor, this.async() );
-});
+} );
};