@@ -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 ( ! / @ V E R S I O N / . test ( content ) ) {
2323 return ;
2424 }
2525 matches . push ( fullPath ) ;
2626 fs . writeFileSync ( fullPath , content . replace ( / @ V E R S I O N / 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
0 commit comments