@@ -9,7 +9,7 @@ function replaceAtVersion() {
9
9
var matches = [ ] ;
10
10
11
11
function recurse ( folder ) {
12
- fs . readdirSync ( folder ) . forEach ( function ( fileName ) {
12
+ fs . readdirSync ( folder ) . forEach ( function ( fileName ) {
13
13
var content ,
14
14
fullPath = folder + "/" + fileName ;
15
15
if ( fs . statSync ( fullPath ) . isDirectory ( ) ) {
@@ -18,13 +18,13 @@ function replaceAtVersion() {
18
18
}
19
19
content = fs . readFileSync ( fullPath , {
20
20
encoding : "utf-8"
21
- } ) ;
21
+ } ) ;
22
22
if ( ! / @ V E R S I O N / . test ( content ) ) {
23
23
return ;
24
24
}
25
25
matches . push ( fullPath ) ;
26
26
fs . writeFileSync ( fullPath , content . replace ( / @ V E R S I O N / g, Release . newVersion ) ) ;
27
- } ) ;
27
+ } ) ;
28
28
}
29
29
30
30
[ "ui" , "themes" ] . forEach ( recurse ) ;
@@ -41,7 +41,7 @@ function buildCDNPackage( callback ) {
41
41
builder = new downloadBuilder . Builder ( jqueryUi , ":all:" ) ,
42
42
packer = new downloadBuilder . ThemesPacker ( builder , {
43
43
includeJs : true
44
- } ) ,
44
+ } ) ,
45
45
target = "../" + jqueryUi . pkg . name + "-" + jqueryUi . pkg . version + "-cdn.zip" ;
46
46
47
47
// Zip dir structure must be flat, override default base folder
@@ -51,30 +51,30 @@ function buildCDNPackage( callback ) {
51
51
Release . abort ( "Failed to zip CDN package" , error ) ;
52
52
}
53
53
callback ( ) ;
54
- } ) ;
54
+ } ) ;
55
55
}
56
56
57
- Release . define ( {
57
+ Release . define ( {
58
58
issueTracker : "trac" ,
59
59
contributorReportId : 22 ,
60
60
changelogShell : function ( ) {
61
61
var monthNames = [ "January" , "February" , "March" , "April" , "May" , "June" , "July" ,
62
- "August" , "September" , "October" , "November" , "December" ] ,
62
+ "August" , "September" , "October" , "November" , "December" ] ,
63
63
now = new Date ( ) ;
64
64
return "<script>{\n\t\"title\": \"jQuery UI " + Release . newVersion + " Changelog\"\n" +
65
65
"}</script>\n\nReleased on " + monthNames [ now . getMonth ( ) ] + " " + now . getDate ( ) + ", " + now . getFullYear ( ) + "\n\n" ;
66
66
} ,
67
67
generateArtifacts : function ( fn ) {
68
68
var files = replaceAtVersion ( ) ;
69
69
70
- buildCDNPackage ( function copyCdnFiles ( ) {
70
+ buildCDNPackage ( function copyCdnFiles ( ) {
71
71
var zipFile = shell . ls ( "../jquery*-cdn.zip" ) [ 0 ] ,
72
72
tmpFolder = "../tmp-zip-output" ,
73
73
unzipCommand = "unzip -o " + zipFile + " -d " + tmpFolder ;
74
74
75
75
console . log ( "Unzipping for dist/cdn copies" ) ;
76
76
shell . mkdir ( "-p" , tmpFolder ) ;
77
- Release . exec ( {
77
+ Release . exec ( {
78
78
command : unzipCommand ,
79
79
silent : true
80
80
} , "Failed to unzip cdn files" ) ;
@@ -83,9 +83,9 @@ Release.define({
83
83
shell . cp ( tmpFolder + "/jquery-ui*.js" , "dist/cdn" ) ;
84
84
shell . cp ( "-r" , tmpFolder + "/themes" , "dist/cdn" ) ;
85
85
fn ( files ) ;
86
- } ) ;
86
+ } ) ;
87
87
}
88
- } ) ;
88
+ } ) ;
89
89
90
90
} ;
91
91
0 commit comments