Skip to content

Commit

Permalink
refactor: Reformat gulp file
Browse files Browse the repository at this point in the history
  • Loading branch information
azizur committed Aug 31, 2024
1 parent bc07fc2 commit b9c2a83
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,10 @@ gulp.task(
var envs = Object.create(process.env);
envs.JEKYLL_ENV = config.JEKYLL_ENV;

return spawn(
'bundle',
[
'exec',
'jekyll',
'build',
!isProduction() ? '--drafts' : '',
isProduction() ? '--profile' : '',
'--incremental',
],
{ stdio: 'inherit', env: envs }
).on('exit', function (code) {
return spawn('bundle', ['exec', 'jekyll', 'build', !isProduction() ? '--drafts' : '', isProduction() ? '--profile' : '', '--incremental'], {
stdio: 'inherit',
env: envs,
}).on('exit', function (code) {
next(code === 0 ? null : 'ERROR: Jekyll process exited with code: ' + code);
});
})
Expand Down Expand Up @@ -155,15 +147,7 @@ gulp.task('html-proofer', gulp.series('jekyll-compile', 'images', 'styles', 'scr
function doHTMLProof(next) {
var proofer = spawn(
'bundle',
[
'exec',
'htmlproofer',
'--url-swap',
'.*' + config.domains.default + '/:/',
'--internal-domains',
config.domains.alias.join(','),
'./_site',
],
['exec', 'htmlproofer', '--url-swap', '.*' + config.domains.default + '/:/', '--internal-domains', config.domains.alias.join(','), './_site'],
{ stdio: 'inherit' }
);

Expand Down

0 comments on commit b9c2a83

Please sign in to comment.