Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Jan 8, 2025
1 parent 82d183a commit 46d5e12
Show file tree
Hide file tree
Showing 71 changed files with 603 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Target/Function/Directory.d.ts
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;
1 change: 1 addition & 0 deletions Target/Function/Directory.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Target/Function/Image/Writesharp.d.ts
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;
1 change: 1 addition & 0 deletions Target/Function/Image/Writesharp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 103 additions & 0 deletions Target/Function/Integration.d.ts
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;
1 change: 1 addition & 0 deletions Target/Function/Integration.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions Target/Function/Merge.d.ts
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;
1 change: 1 addition & 0 deletions Target/Function/Merge.js
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};
8 changes: 8 additions & 0 deletions Target/Interface/CLI.d.ts
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 added Target/Interface/CLI.js
Empty file.
32 changes: 32 additions & 0 deletions Target/Interface/CSS/csso.d.ts
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 added Target/Interface/CSS/csso.js
Empty file.
21 changes: 21 additions & 0 deletions Target/Interface/CSS/lightningcss.d.ts
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.
8 changes: 8 additions & 0 deletions Target/Interface/Directory.d.ts
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 added Target/Interface/Directory.js
Empty file.
11 changes: 11 additions & 0 deletions Target/Interface/Image/Onsharp.d.ts
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.
9 changes: 9 additions & 0 deletions Target/Interface/Image/Writesharp.d.ts
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.
16 changes: 16 additions & 0 deletions Target/Interface/Image/sharp.d.ts
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 added Target/Interface/Image/sharp.js
Empty file.
9 changes: 9 additions & 0 deletions Target/Interface/Integration.d.ts
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 added Target/Interface/Integration.js
Empty file.
7 changes: 7 additions & 0 deletions Target/Interface/Map.d.ts
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 added Target/Interface/Map.js
Empty file.
61 changes: 61 additions & 0 deletions Target/Interface/Option.d.ts
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 added Target/Interface/Option.js
Empty file.
17 changes: 17 additions & 0 deletions Target/Interface/Parser.d.ts
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 added Target/Interface/Parser.js
Empty file.
7 changes: 7 additions & 0 deletions Target/Type/HTML/html-minifier-terser.d.ts
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.
7 changes: 7 additions & 0 deletions Target/Type/Image/Filesharp.d.ts
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;
1 change: 1 addition & 0 deletions Target/Type/Image/Filesharp.js
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};
7 changes: 7 additions & 0 deletions Target/Type/JavaScript/terser.d.ts
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.
6 changes: 6 additions & 0 deletions Target/Type/Parser/CSS.d.ts
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 added Target/Type/Parser/CSS.js
Empty file.
6 changes: 6 additions & 0 deletions Target/Type/Parser/HTML.d.ts
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 added Target/Type/Parser/HTML.js
Empty file.
Loading

0 comments on commit 46d5e12

Please sign in to comment.