aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 63573eb5..60203d7e 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -403,8 +403,12 @@ gulp.task('build-zip', function () {
});
gulp.task('build-jekyll', function (cb) {
- cp.exec('bundle exec jekyll build', function () {
- cb();
+ const jekyll = cp.spawn("bundle", ["exec", "jekyll", "build"], { stdio: 'inherit' });
+ jekyll.on("close", function (code) {
+ console.log(`Jekyll build exited with code ${code}`);
+ if (!code) {
+ cb();
+ }
});
});
@@ -717,7 +721,7 @@ const setVersions = function(version, files) {
if(!svgFile.match(/version: ([0-9.]+)/i)) {
svgFile = svgFile.replace(/---\n<svg>/i, function(m){
- return `version: "${version}\n${m}"`;
+ return `version: "${version}"\n${m}`;
});
fs.writeFileSync(`src/_icons/${file}.svg`, svgFile);