-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
82d183a
commit 46d5e12
Showing
71 changed files
with
603 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type Interface from "../Interface/Directory.js"; | ||
/** | ||
* @module Directory | ||
* | ||
*/ | ||
declare const _default: Interface; | ||
export default _default; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type Interface from "../../Interface/Image/Writesharp.js"; | ||
/** | ||
* @module Image | ||
* | ||
*/ | ||
declare const _default: Interface; | ||
export default _default; | ||
export declare const _Map: import("../../Interface/Map.js").default; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
import type Action from "@playform/pipe/Target/Interface/Action.js"; | ||
import type Interface from "../Interface/Integration.js"; | ||
/** | ||
* @module Integration | ||
* | ||
*/ | ||
export declare let System: string; | ||
declare const _default: Interface; | ||
export default _default; | ||
export declare const Default: { | ||
CSS: { | ||
csso: import("../Interface/CSS/csso.js").default; | ||
lightningcss: import("../Interface/CSS/lightningcss.js").default; | ||
}; | ||
HTML: { | ||
"html-minifier-terser": { | ||
caseSensitive: true; | ||
collapseInlineTagWhitespace: false; | ||
collapseWhitespace: true; | ||
continueOnParseError: true; | ||
html5: true; | ||
ignoreCustomComments: RegExp[]; | ||
ignoreCustomFragments: never[]; | ||
includeAutoGeneratedTags: true; | ||
keepClosingSlash: true; | ||
minifyCSS: true; | ||
minifyJS: true; | ||
minifyURLs: false; | ||
noNewlinesBeforeTagClose: true; | ||
preventAttributesEscaping: false; | ||
processConditionalComments: false; | ||
processScripts: string[]; | ||
quoteCharacter: string; | ||
removeAttributeQuotes: true; | ||
removeComments: true; | ||
removeScriptTypeAttributes: true; | ||
removeStyleLinkTypeAttributes: true; | ||
removeTagWhitespace: false; | ||
sortAttributes: true; | ||
sortClassName: true; | ||
trimCustomFragments: true; | ||
useShortDoctype: false; | ||
}; | ||
}; | ||
JavaScript: { | ||
terser: { | ||
ecma: 5; | ||
enclose: false; | ||
keep_classnames: false; | ||
keep_fnames: false; | ||
ie8: false; | ||
module: false; | ||
safari10: false; | ||
toplevel: false; | ||
format: { | ||
comments: false; | ||
}; | ||
}; | ||
}; | ||
Image: { | ||
sharp: import("../Interface/Image/sharp.js").default; | ||
}; | ||
SVG: { | ||
svgo: { | ||
multipass: true; | ||
js2svg: { | ||
indent: number; | ||
pretty: false; | ||
}; | ||
plugins: "preset-default"[]; | ||
}; | ||
}; | ||
Map: import("../Interface/Map.js").default; | ||
Parser: import("../Interface/Parser.js").default; | ||
Action: { | ||
Failed: ({ Input }: { | ||
Input: any; | ||
}) => Promise<string>; | ||
Passed: ({ Before, Buffer }: { | ||
Before: any; | ||
Buffer: any; | ||
}) => Promise<boolean>; | ||
Accomplished: ({ Input, Before, After }: { | ||
Input: any; | ||
Before: any; | ||
After: any; | ||
}) => Promise<string>; | ||
Changed: (Plan: any) => Promise<any>; | ||
}; | ||
}; | ||
export declare const Search: any; | ||
export declare const Merge: <Ts extends readonly unknown[]>(...objects: Ts) => import("deepmerge-ts").DeepMergeHKT<Ts, Readonly<{ | ||
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI"; | ||
DeepMergeArraysURI: "DeepMergeArraysDefaultURI"; | ||
DeepMergeSetsURI: "DeepMergeSetsDefaultURI"; | ||
DeepMergeMapsURI: "DeepMergeMapsDefaultURI"; | ||
DeepMergeOthersURI: "DeepMergeLeafURI"; | ||
DeepMergeFilterValuesURI: "DeepMergeFilterValuesDefaultURI"; | ||
}>, Readonly<{ | ||
key: PropertyKey; | ||
parents: ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>; | ||
}>>; | ||
export declare let _Action: Action; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* @module Merge | ||
* | ||
*/ | ||
declare const _default: <Ts extends readonly unknown[]>(...objects: Ts) => import("deepmerge-ts").DeepMergeHKT<Ts, Readonly<{ | ||
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI"; | ||
DeepMergeArraysURI: "DeepMergeArraysDefaultURI"; | ||
DeepMergeSetsURI: "DeepMergeSetsDefaultURI"; | ||
DeepMergeMapsURI: "DeepMergeMapsDefaultURI"; | ||
DeepMergeOthersURI: "DeepMergeLeafURI"; | ||
DeepMergeFilterValuesURI: "DeepMergeFilterValuesDefaultURI"; | ||
}>, Readonly<{ | ||
key: PropertyKey; | ||
parents: ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>; | ||
}>>; | ||
export default _default; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
var r=(await import("deepmerge-ts")).deepmergeCustom({mergeArrays:!1});export{r as default}; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { Pattern } from "fast-glob"; | ||
/** | ||
* @module CLI | ||
* | ||
*/ | ||
export default interface Interface { | ||
(File: Pattern[], Compress?: Pattern): Promise<void>; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { CompressOptions, MinifyOptions } from "csso"; | ||
/** | ||
* @module CSS | ||
* | ||
*/ | ||
export default interface Interface extends MinifyOptions, CompressOptions { | ||
/** | ||
* Specify what comments to leave: | ||
* - 'exclamation' or true – leave all exclamation comments | ||
* - 'first-exclamation' – remove every comment except first one | ||
* - false – remove all comments | ||
* | ||
* @default Compress false | ||
* @default csso true | ||
*/ | ||
comments?: boolean; | ||
/** | ||
* Enables merging of @media rules with the same media query by splitted by other rules. | ||
* The optimisation is unsafe in general, but should work fine in most cases. Use it on your own risk. | ||
* | ||
* @default Compress true | ||
* @default csso false | ||
*/ | ||
forceMediaMerge?: boolean; | ||
/** | ||
* Disable or enable a structure optimisations. | ||
* | ||
* @default CompressAstro false | ||
* @default csso true | ||
*/ | ||
restructure?: boolean; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { CustomAtRules, TransformOptions } from "lightningcss"; | ||
/** | ||
* @module CSS | ||
* | ||
*/ | ||
export default interface Interface extends Omit<TransformOptions<CustomAtRules>, "filename" | "code" | "unusedSymbols"> { | ||
/** | ||
* Whether to enable minification | ||
* | ||
* @default Compress true | ||
* @default lightningcss false | ||
*/ | ||
minify?: boolean; | ||
/** | ||
* Whether to remove unused selectors or keywords. | ||
* | ||
* @default Compress [] | ||
* @default lightningcss undefined | ||
*/ | ||
unusedSymbols?: string[]; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { ParsedPath } from "path"; | ||
/** | ||
* @module Directory | ||
* | ||
*/ | ||
export default interface Interface { | ||
(Path: string): Promise<ParsedPath["dir"]>; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type File from "@playform/pipe/Target/Interface/File.js"; | ||
import type { Sharp } from "sharp"; | ||
/** | ||
* @module Image | ||
* | ||
*/ | ||
export default interface Interface extends Omit<File, "Buffer"> { | ||
Buffer: { | ||
[key: string]: any; | ||
} & Sharp; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type On from "../../Interface/Image/Onsharp.js"; | ||
import type Option from "../../Interface/Image/sharp.js"; | ||
/** | ||
* @module Image | ||
* | ||
*/ | ||
export default interface Interface { | ||
(Option: Option, On: On): Promise<any>; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { AvifOptions, GifOptions, HeifOptions, JpegOptions, PngOptions, SharpOptions, TiffOptions, WebpOptions } from "sharp"; | ||
/** | ||
* @module Image | ||
* | ||
*/ | ||
export default interface Interface { | ||
[key: string]: AvifOptions | GifOptions | HeifOptions | JpegOptions | PngOptions | SharpOptions | TiffOptions | WebpOptions | boolean | undefined; | ||
avif?: boolean | AvifOptions; | ||
gif?: boolean | GifOptions; | ||
heif?: boolean | HeifOptions; | ||
jpeg?: boolean | JpegOptions; | ||
png?: boolean | PngOptions; | ||
tiff?: boolean | TiffOptions; | ||
webp?: boolean | WebpOptions; | ||
sharp?: boolean | SharpOptions; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { AstroIntegration } from "astro"; | ||
import type Option from "../Interface/Option.js"; | ||
/** | ||
* @module Integration | ||
* | ||
*/ | ||
export default interface Interface { | ||
(Option?: Option): AstroIntegration; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* @module Map | ||
* | ||
*/ | ||
export default interface Interface { | ||
[key: string]: string; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import type Option from "@playform/pipe/Target/Interface/Option.js"; | ||
import type csso from "../Interface/CSS/csso.js"; | ||
import type lightningcss from "../Interface/CSS/lightningcss.js"; | ||
import type sharp from "../Interface/Image/sharp.js"; | ||
import type _Map from "../Interface/Map.js"; | ||
import type Parser from "../Interface/Parser.js"; | ||
import type html_minifier_terser from "../Type/HTML/html-minifier-terser.js"; | ||
import type terser from "../Type/JavaScript/terser.js"; | ||
import type svgo from "../Type/SVG/svgo.js"; | ||
/** | ||
* @module Option | ||
* | ||
*/ | ||
export default interface Interface extends Option { | ||
/** | ||
* csso, lightningcss option properties | ||
* | ||
*/ | ||
CSS?: boolean | { | ||
csso?: csso; | ||
lightningcss?: lightningcss; | ||
}; | ||
/** | ||
* html-minifier-terser option properties | ||
* | ||
*/ | ||
HTML?: boolean | { | ||
"html-minifier-terser"?: html_minifier_terser; | ||
}; | ||
/** | ||
* sharp option properties | ||
* | ||
*/ | ||
Image?: boolean | { | ||
sharp?: sharp; | ||
}; | ||
/** | ||
* terser option properties | ||
* | ||
*/ | ||
JavaScript?: boolean | { | ||
terser?: terser; | ||
}; | ||
/** | ||
* svgo option properties | ||
* | ||
*/ | ||
SVG?: boolean | { | ||
svgo?: svgo; | ||
}; | ||
/** | ||
* Map to different file paths | ||
* | ||
*/ | ||
Map?: boolean | _Map; | ||
/** | ||
* Parsers for different file types | ||
* | ||
*/ | ||
Parser?: Parser; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type CSS from "../Type/Parser/CSS.js"; | ||
import type HTML from "../Type/Parser/HTML.js"; | ||
import type Image from "../Type/Parser/Image.js"; | ||
import type JavaScript from "../Type/Parser/JavaScript.js"; | ||
import type SVG from "../Type/Parser/SVG.js"; | ||
/** | ||
* @module Parser | ||
* | ||
*/ | ||
export default interface Interface { | ||
[key: string]: any; | ||
CSS?: CSS | CSS[]; | ||
HTML?: HTML | HTML[]; | ||
Image?: Image | Image[]; | ||
JavaScript?: JavaScript | JavaScript[]; | ||
SVG?: SVG | SVG[]; | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { Options } from "html-minifier-terser"; | ||
/** | ||
* @module HTML | ||
* | ||
*/ | ||
export type Type = Options; | ||
export type { Type as default }; |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* @module File | ||
* | ||
*/ | ||
export type Type = keyof typeof _Map; | ||
export type { Type as default }; | ||
export declare const _Map: import("../../Interface/Map").default; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
const{default:p}=await import("../../Variable/Image/Mapsharp.js");export{p as _Map}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { MinifyOptions } from "terser"; | ||
/** | ||
* @module JavaScript | ||
* | ||
*/ | ||
export type Type = MinifyOptions; | ||
export type { Type as default }; |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* @module Parser | ||
* | ||
*/ | ||
export type Type = "csso" | "lightningcss"; | ||
export type { Type as default }; |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* @module Parser | ||
* | ||
*/ | ||
export type Type = "html-minifier-terser"; | ||
export type { Type as default }; |
Empty file.
Oops, something went wrong.