Skip to content

Commit

Permalink
remove copyRemainingFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 21, 2025
1 parent a3700f0 commit 1889fe5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOGv3.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Go to the `v1` branch to see the changelog of Lume 1.

### Removed
- `jsx_preact` plugin. Use `jsx` instead.
- `site.copyRemainingFiles()`.

### Changed
- Refactor source.build function to give priority to load over copy statically.
Expand Down
8 changes: 0 additions & 8 deletions core/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,6 @@ export default class Site {
return this;
}

/** Copy the remaining files */
copyRemainingFiles(
filter: (path: string) => string | boolean = () => true,
): this {
this.source.copyRemainingFiles = filter;
return this;
}

/** Ignore one or several files or directories */
ignore(...paths: (string | ScopeFilter)[]): this {
paths.forEach((path) => {
Expand Down
3 changes: 0 additions & 3 deletions core/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export default class Source {
{ dest: string | ((path: string) => string) | undefined; dirOnly: boolean }
>();

/** List of static files and folders to copy */
copyRemainingFiles?: (path: string) => string | boolean;

/** Extra code generated by the components */
extraCode = new Map<string, Map<string, string>>();

Expand Down

0 comments on commit 1889fe5

Please sign in to comment.