Skip to content

Commit 1feafa6

Browse files
committed
Remove custom deploy alias, whitespace
1 parent 9a01a8d commit 1feafa6

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

grunt.js

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ var // modules
77
pygmentize = require( "pygmentize" ),
88
rimraf = require( "rimraf" ),
99
spawn = require( "child_process" ).spawn,
10-
10+
1111
// files
1212
pageFiles = grunt.file.expandFiles( "pages/*.html" ),
1313
entryFiles = grunt.file.expandFiles( "entries/*.xml" ),
1414
noteFiles = grunt.file.expandFiles( "notes/*.xml" ),
1515
resourceFiles = grunt.file.expandFiles( "resources/*" ),
16-
16+
1717
xmlFiles = [].concat( entryFiles, noteFiles, "cat2tax.xsl", "categories.xml", "entries2html.xsl", "xml2json.xsl" );
18-
18+
1919
function pathSlug( fileName ) {
2020
return path.basename( fileName, path.extname( fileName ) );
2121
}
@@ -35,7 +35,7 @@ grunt.initConfig({
3535
},
3636
wordpress: grunt.utils._.extend({
3737
dir: "dist/wordpress"
38-
}, grunt.file.readJSON( "config.json" ) )
38+
}, grunt.file.readJSON( "config-stage.json" ) )
3939
});
4040

4141
grunt.registerTask( "xmllint", function() {
@@ -71,9 +71,9 @@ grunt.registerTask( "build-pages", function() {
7171
var task = this,
7272
taskDone = task.async(),
7373
targetDir = grunt.config( "wordpress.dir" ) + "/posts/page/";
74-
74+
7575
grunt.file.mkdir( targetDir );
76-
76+
7777
grunt.utils.async.forEachSeries( pageFiles, function( fileName, fileDone ) {
7878
var targetFileName = targetDir + path.basename( fileName );
7979
grunt.verbose.write( "Reading " + fileName + "..." );
@@ -90,7 +90,7 @@ grunt.registerTask( "build-pages", function() {
9090

9191
grunt.file.write( targetFileName, data );
9292

93-
fileDone();
93+
fileDone();
9494
});
9595
}, function() {
9696
if ( task.errorCount ) {
@@ -99,7 +99,7 @@ grunt.registerTask( "build-pages", function() {
9999
return;
100100
}
101101
grunt.log.writeln( "Built " + pageFiles.length + " pages." );
102-
taskDone();
102+
taskDone();
103103
});
104104
});
105105

@@ -124,11 +124,11 @@ grunt.registerTask( "build-entries", function() {
124124
return;
125125
}
126126
grunt.verbose.ok();
127-
127+
128128
var targetXMLFileName = "entries_tmp/" + path.basename( fileName );
129-
129+
130130
grunt.file.write( targetXMLFileName, pass1result );
131-
131+
132132
grunt.verbose.write( "Transforming (pass 2: entries2html.xsl) " + fileName + "..." );
133133
grunt.utils.spawn({
134134
cmd: "xsltproc",
@@ -157,9 +157,9 @@ grunt.registerTask( "build-entries", function() {
157157

158158
grunt.file.write( targetHTMLFileName, data );
159159

160-
fileDone();
160+
fileDone();
161161
});
162-
});
162+
});
163163
});
164164
}, function() {
165165
if ( task.errorCount ) {
@@ -231,7 +231,7 @@ grunt.registerTask( "xmltidy", function() {
231231
var task = this,
232232
taskDone = task.async(),
233233
filesToTidy = [].concat( entryFiles, noteFiles, "categories.xml" );
234-
234+
235235
// Only tidy files that are lint free
236236
task.requires( "xmllint" );
237237

@@ -251,7 +251,7 @@ grunt.registerTask( "xmltidy", function() {
251251

252252
grunt.file.write( fileName, result );
253253

254-
fileDone();
254+
fileDone();
255255
});
256256
}, function() {
257257
if ( task.errorCount ) {
@@ -267,6 +267,5 @@ grunt.registerTask( "xmltidy", function() {
267267
grunt.registerTask( "default", "build-wordpress" );
268268
grunt.registerTask( "build-wordpress", "clean lint xmllint build-pages build-entries build-categories build-resources" );
269269
grunt.registerTask( "tidy", "xmllint xmltidy" );
270-
grunt.registerTask( "deploy", "wordpress-deploy" );
271270

272271
};

0 commit comments

Comments
 (0)