Skip to content

Commit ea999e4

Browse files
committed
Build: Style fixes
1 parent ac2a111 commit ea999e4

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

build/release.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function replaceAtVersion() {
99
var matches = [];
1010

1111
function recurse( folder ) {
12-
fs.readdirSync( folder ).forEach(function( fileName ) {
12+
fs.readdirSync( folder ).forEach( function( fileName ) {
1313
var content,
1414
fullPath = folder + "/" + fileName;
1515
if ( fs.statSync( fullPath ).isDirectory() ) {
@@ -18,13 +18,13 @@ function replaceAtVersion() {
1818
}
1919
content = fs.readFileSync( fullPath, {
2020
encoding: "utf-8"
21-
});
21+
} );
2222
if ( !/@VERSION/.test( content ) ) {
2323
return;
2424
}
2525
matches.push( fullPath );
2626
fs.writeFileSync( fullPath, content.replace( /@VERSION/g, Release.newVersion ) );
27-
});
27+
} );
2828
}
2929

3030
[ "ui", "themes" ].forEach( recurse );
@@ -41,7 +41,7 @@ function buildCDNPackage( callback ) {
4141
builder = new downloadBuilder.Builder( jqueryUi, ":all:" ),
4242
packer = new downloadBuilder.ThemesPacker( builder, {
4343
includeJs: true
44-
}),
44+
} ),
4545
target = "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version + "-cdn.zip";
4646

4747
// Zip dir structure must be flat, override default base folder
@@ -51,30 +51,30 @@ function buildCDNPackage( callback ) {
5151
Release.abort( "Failed to zip CDN package", error );
5252
}
5353
callback();
54-
});
54+
} );
5555
}
5656

57-
Release.define({
57+
Release.define( {
5858
issueTracker: "trac",
5959
contributorReportId: 22,
6060
changelogShell: function() {
6161
var monthNames = [ "January", "February", "March", "April", "May", "June", "July",
62-
"August", "September", "October", "November", "December" ],
62+
"August", "September", "October", "November", "December" ],
6363
now = new Date();
6464
return "<script>{\n\t\"title\": \"jQuery UI " + Release.newVersion + " Changelog\"\n" +
6565
"}</script>\n\nReleased on " + monthNames[ now.getMonth() ] + " " + now.getDate() + ", " + now.getFullYear() + "\n\n";
6666
},
6767
generateArtifacts: function( fn ) {
6868
var files = replaceAtVersion();
6969

70-
buildCDNPackage(function copyCdnFiles() {
70+
buildCDNPackage( function copyCdnFiles() {
7171
var zipFile = shell.ls( "../jquery*-cdn.zip" )[ 0 ],
7272
tmpFolder = "../tmp-zip-output",
7373
unzipCommand = "unzip -o " + zipFile + " -d " + tmpFolder;
7474

7575
console.log( "Unzipping for dist/cdn copies" );
7676
shell.mkdir( "-p", tmpFolder );
77-
Release.exec({
77+
Release.exec( {
7878
command: unzipCommand,
7979
silent: true
8080
}, "Failed to unzip cdn files" );
@@ -83,9 +83,9 @@ Release.define({
8383
shell.cp( tmpFolder + "/jquery-ui*.js", "dist/cdn" );
8484
shell.cp( "-r", tmpFolder + "/themes", "dist/cdn" );
8585
fn( files );
86-
});
86+
} );
8787
}
88-
});
88+
} );
8989

9090
};
9191

build/tasks/build.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ module.exports = function( grunt ) {
44

55
grunt.registerTask( "clean", function() {
66
require( "rimraf" ).sync( "dist" );
7-
});
7+
} );
88

99
grunt.registerTask( "asciilint", function() {
1010
var valid = true,
11-
files = grunt.file.expand({ filter: "isFile" }, "ui/*.js" );
12-
files.forEach(function( filename ) {
11+
files = grunt.file.expand( { filter: "isFile" }, "ui/*.js" );
12+
files.forEach( function( filename ) {
1313
var i, c,
1414
text = grunt.file.read( filename );
1515

@@ -32,11 +32,11 @@ grunt.registerTask( "asciilint", function() {
3232
}
3333
valid = false;
3434
}
35-
});
35+
} );
3636
if ( valid ) {
3737
grunt.log.ok( files.length + " files lint free." );
3838
}
3939
return valid;
40-
});
40+
} );
4141

4242
};

build/tasks/testswarm.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,26 @@ function submit( commit, runs, configFile, extra, done ) {
4848
runs[ testName ] = config.testUrl + commit + "/tests/unit/" + runs[ testName ];
4949
}
5050

51-
testswarm.createClient({
51+
testswarm.createClient( {
5252
url: config.swarmUrl
53-
})
54-
.addReporter( testswarm.reporters.cli )
55-
.auth({
56-
id: config.authUsername,
57-
token: config.authToken
58-
})
59-
.addjob({
60-
name: "Commit <a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
61-
runs: runs,
62-
runMax: config.runMax,
63-
browserSets: config.browserSets,
64-
timeout: 1000 * 60 * 30
65-
}, function( error, passed ) {
66-
if ( error ) {
67-
grunt.log.error( error );
68-
}
69-
done( passed );
70-
});
53+
} )
54+
.addReporter( testswarm.reporters.cli )
55+
.auth( {
56+
id: config.authUsername,
57+
token: config.authToken
58+
} )
59+
.addjob( {
60+
name: "Commit <a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
61+
runs: runs,
62+
runMax: config.runMax,
63+
browserSets: config.browserSets,
64+
timeout: 1000 * 60 * 30
65+
}, function( error, passed ) {
66+
if ( error ) {
67+
grunt.log.error( error );
68+
}
69+
done( passed );
70+
} );
7171
}
7272

7373
grunt.registerTask( "testswarm", function( commit, configFile ) {
@@ -77,16 +77,16 @@ grunt.registerTask( "testswarm", function( commit, configFile ) {
7777
latestTests[ test ] = tests[ test ] + "?nojshint=true";
7878
}
7979
submit( commit, latestTests, configFile, "", this.async() );
80-
});
80+
} );
8181

8282
grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile, minor ) {
8383
var allTests = {};
84-
versions[ minor ].split(" ").forEach(function( version ) {
84+
versions[ minor ].split( " " ).forEach( function( version ) {
8585
for ( var test in tests ) {
8686
allTests[ test + "-" + version ] = tests[ test ] + "?nojshint=true&jquery=" + version;
8787
}
88-
});
88+
} );
8989
submit( commit, allTests, configFile, "core " + minor, this.async() );
90-
});
90+
} );
9191

9292
};

0 commit comments

Comments
 (0)