-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export type { Type as Action } from "./Interface/Action.js"; | ||
export type { Type as Buffer } from "./Interface/Buffer.js"; | ||
export type { Type as Dir } from "./Interface/Dir.js"; | ||
export type { Type as Exclude } from "./Interface/Exclude.js"; | ||
export type { Type as File } from "./Interface/File.js"; | ||
export type { Type as Logger } from "./Interface/Logger.js"; | ||
export type { Type as Option } from "./Interface/Option.js"; | ||
export type { Type as Path } from "./Interface/Path.js"; | ||
export { default as Files } from "./Class/Files.js"; | ||
export { default as Apply } from "./Fn/Apply.js"; | ||
export { default as By } from "./Fn/By.js"; | ||
export { default as Bytes } from "./Fn/Bytes.js"; | ||
export { default as In } from "./Fn/In.js"; | ||
export { default as Merge } from "./Fn/Merge.js"; | ||
export { default as Not } from "./Fn/Not.js"; | ||
export { default as Pipe } from "./Fn/Pipe.js"; | ||
export { default as Default } from "./Object/Option.js"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import f from"fast-glob";var p=async(a,e,t)=>{for(const[o,n]of e)for(const r of await f(a,{cwd:o,onlyFiles:!0}))t.set(`${n}${r}`,`${o}${r}`);return t};export{p as default}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import type { Type as Buffer } from "./Buffer.js"; | ||
import type { Type as Cache } from "./Cache.js"; | ||
import type { Type as File } from "./File.js"; | ||
import type { Type as Plan } from "./Plan.js"; | ||
/** | ||
* Represents the execution configuration for specific actions on files. | ||
*/ | ||
export interface Type { | ||
/** | ||
* Attaches a callback for the fulfillment of the Action. | ||
* @param Plan The execution plan to be fulfilled. | ||
* @returns A Promise that resolves to either a string or false. | ||
*/ | ||
Fulfilled?: boolean | ((Plan: Plan) => Promise<false | string>); | ||
/** | ||
* Attaches a callback for handling failures in the Action. | ||
* @param Input The input file being processed. | ||
* @param _Error The error encountered during execution. | ||
* @returns A Promise that resolves to either a string or false. | ||
*/ | ||
Failed?: boolean | ((Input: File, _Error: unknown) => Promise<false | string>); | ||
/** | ||
* Attaches a callback for actions that are accomplished. | ||
* @param On The file on which an action was accomplished. | ||
* @returns A Promise that resolves to either a string or false. | ||
*/ | ||
Accomplished?: boolean | ((On: File) => Promise<false | string>); | ||
/** | ||
* Attaches a callback for actions that result in changes to the plan. | ||
* @param Plan The execution plan to be changed. | ||
* @returns A Promise that resolves to the modified execution plan. | ||
*/ | ||
Changed?: (Plan: Plan) => Promise<Plan>; | ||
/** | ||
* Attaches a callback for actions that check if a file can pass through the pipe. | ||
* @param On The file on which the action is being checked. | ||
* @returns A Promise that resolves to a boolean value indicating if the file has passed the checks. | ||
*/ | ||
Passed?: (On: File) => Promise<Boolean>; | ||
/** | ||
* Attaches a callback for reading from a file. | ||
* @param On The file to be read. | ||
* @returns A Promise that resolves to the buffer read from the file. | ||
*/ | ||
Read?: (On: File) => Promise<Buffer>; | ||
/** | ||
* Attaches a callback for writing to a file. | ||
* @param On The file to be written to. | ||
* @returns A Promise that resolves to the buffer written to the file. | ||
*/ | ||
Wrote?: (On: File, Cache: Cache) => Promise<Buffer>; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import type { Type as Action } from "./Action.js"; | ||
import type { Type as Cache } from "./Cache.js"; | ||
import type { Type as Exclude } from "./Exclude.js"; | ||
import type { Type as Logger } from "./Logger.js"; | ||
import type { Type as Path } from "./Path.js"; | ||
import type { Pattern } from "fast-glob"; | ||
/** | ||
* Represents options for configuring the behavior of the program. | ||
*/ | ||
export interface Type { | ||
[key: string]: any; | ||
/** | ||
* Configuration for the target cache. | ||
* | ||
* @default "./Cache" | ||
*/ | ||
Cache?: Cache; | ||
/** | ||
* Configuration for the target path(s). | ||
* | ||
* @default "./Target" | ||
*/ | ||
Path?: Path | Path[] | Set<Path>; | ||
/** | ||
* Criteria for excluding files. | ||
*/ | ||
Exclude?: Exclude | Exclude[] | Set<Exclude>; | ||
/** | ||
* File patterns to be matched. | ||
*/ | ||
Files?: Pattern | Pattern[]; | ||
/** | ||
* Action pipe configuration. | ||
*/ | ||
Action?: Action; | ||
/** | ||
* Debugging level. | ||
* | ||
* @default 2 | ||
*/ | ||
Logger?: Logger; | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* Default configuration object. | ||
*/ | ||
declare const _default: { | ||
Cache: string; | ||
Path: string; | ||
Logger: 2; | ||
Action: { | ||
Read: (On: import("../Export.ts").File) => Promise<string>; | ||
Wrote: (On: import("../Export.ts").File) => Promise<import("../Export.ts").Buffer>; | ||
Passed: (On: import("../Export.ts").File) => Promise<boolean>; | ||
Failed: (On: import("../Export.ts").File) => Promise<string>; | ||
Accomplished: (On: import("../Export.ts").File) => Promise<string>; | ||
Fulfilled: (Plan: import("../Interface/Plan.ts").Type) => Promise<string | false>; | ||
Changed: (Plan: import("../Interface/Plan.ts").Type) => Promise<import("../Interface/Plan.ts").Type>; | ||
}; | ||
}; | ||
export default _default; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.