-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dafcd8c
commit c896716
Showing
13 changed files
with
120 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
import { Plugin as ESBuildPlugin } from "esbuild"; | ||
|
||
export declare const downwind: (opts?: { | ||
scannedExtension?: string; | ||
scanRegex?: RegExp; | ||
/** | ||
* Pass to esbuild to reduce the number of file read from the disk | ||
* @default: /\.tsx?$/ | ||
**/ | ||
filter?: RegExp; | ||
/** | ||
* Used to reduce the number of scanned files. | ||
* @default (path, code) => path.endsWith("x") || code.includes("@downwind-scan") | ||
*/ | ||
shouldScan?: (path: string, code: string) => boolean; | ||
/** | ||
* Number of millisecond without new scan to wait before generating utils | ||
* @default 50 | ||
*/ | ||
intervalCheckMs?: number; | ||
}) => ESBuildPlugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import { Plugin as VitePlugin } from "vite"; | ||
|
||
export declare const downwind: (opts?: { | ||
scannedExtension?: string; | ||
/** | ||
* Used to reduce the number of scanned files. | ||
* @default (id, code) => | ||
* id.endsWith(".tsx") || | ||
* (id.endsWith(".ts") && code.includes("@downwind-scan")), | ||
*/ | ||
shouldScan?: (id: string, code: string) => boolean; | ||
/** | ||
* Number of millisecond without new scan to wait before generating utils | ||
* @default 200 | ||
*/ | ||
buildIntervalCheckMs?: number; | ||
}) => VitePlugin[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.