Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed May 18, 2023
1 parent 411602a commit 7eaed20
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Any BREAKING CHANGE between minor versions will be documented here in upper case
(Previouly, each plugin had it's own instance).
- Cache the remote files using Web Cache API.

### Fixed
- Ignore `/.git` folder by the watcher.
- Don't show the full path of the files in the output.

## [1.17.3] - 2023-05-10
### Fixed
- The `lume/` import is not correctly generated with `lume init`.
Expand Down
6 changes: 5 additions & 1 deletion core/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ export default class Writer {
} else {
await Deno.copyFile(entry.src, pathTo);
}
this.logger.log(`🔥 ${file.outputPath} <dim>${entry.src}</dim>`);
this.logger.log(
`🔥 ${file.outputPath} <dim>${
entry.flags.has("remote") ? entry.src : entry.path
}</dim>`,
);
return true;
} catch {
// Ignored
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function lume(
const site = new Site(options as Partial<SiteOptions>);

// Ignore the .git folder and .DS_Store (macOS) files by the watcher
site.options.watcher.ignore.push(".git");
site.options.watcher.ignore.push("/.git");
site.options.watcher.ignore.push((path) => path.endsWith("/.DS_Store"));

return site
Expand Down

0 comments on commit 7eaed20

Please sign in to comment.