Skip to content

Commit

Permalink
Add debug logs for nojekyll/cname creation as recommended by @paymand
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBAnders committed Dec 21, 2023
1 parent 81ac719 commit 1c60556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,15 @@ exports.publish = function publish(basePath, config, callback) {
}
})
.then((git) => {
log('Copying files');
if (options.nojekyll) {
log('Creating .nojekyll');
fs.createFileSync(path.join(git.cwd, '.nojekyll'));
}
if (options.cname) {
log('Creating CNAME for %s', options.cname);
fs.writeFileSync(path.join(git.cwd, 'CNAME'), options.cname);
}
log('Copying files');
return copy(files, basePath, path.join(git.cwd, options.dest)).then(
function () {
return git;
Expand Down

0 comments on commit 1c60556

Please sign in to comment.