Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 21, 2024
1 parent 9591273 commit 93a5a93
Show file tree
Hide file tree
Showing 30 changed files with 339 additions and 451 deletions.
1 change: 0 additions & 1 deletion Target/Function/Directory.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type Interface from "../Interface/Directory.js";

/**
* @module Directory
*
Expand Down
1 change: 0 additions & 1 deletion Target/Function/Image/Writesharp.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type Interface from "../../Interface/Image/Writesharp.js";

/**
* @module Image
*
Expand Down
2 changes: 1 addition & 1 deletion Target/Function/Image/Writesharp.js

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

213 changes: 92 additions & 121 deletions Target/Function/Integration.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type Action from "@playform/pipe/Target/Interface/Action.js";

import type Interface from "../Interface/Integration.js";

/**
* @module Integration
*
Expand All @@ -10,125 +8,98 @@ export declare let System: string;
declare const _default: Interface;
export default _default;
export declare const Default: {
Path: string;
Cache: {
Search: string;
Folder: string;
};
Logger: 2;
Action: {
Failed: ({
Input,
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
Passed: ({
Before,
Buffer,
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<boolean>;
Accomplished: ({
Input,
Before,
After,
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
Changed: (
Plan: import("@playform/pipe/Target/Interface/Plan.js").default,
) => Promise<any>;
Read: ({
Input,
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
Wrote: ({
Buffer,
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<
import("@playform/pipe/Target/Type/Buffer.js").Type
>;
Fulfilled: ({
File,
}: import("@playform/pipe/Target/Interface/Plan.js").default) => Promise<
string | false
>;
};
File: string;
Exclude: false;
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;
};
};
Image: {
sharp: import("../Interface/Image/sharp.js").default;
};
JavaScript: {
terser: {
ecma: 5;
enclose: false;
keep_classnames: false;
keep_fnames: false;
ie8: false;
module: false;
safari10: false;
toplevel: false;
format: {
comments: false;
};
};
};
SVG: {
svgo: {
multipass: true;
js2svg: {
indent: number;
pretty: false;
};
plugins: "preset-default"[];
};
};
Map: import("../Interface/Map.js").default;
Parser: import("../Interface/Parser.js").default;
Path: string;
Cache: {
Search: string;
Folder: string;
};
Logger: 2;
Action: {
Failed: ({ Input }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
Passed: ({ Before, Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<boolean>;
Accomplished: ({ Input, Before, After }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
Changed: (Plan: import("@playform/pipe/Target/Interface/Plan.js").default) => Promise<any>;
Read: ({ Input }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
Wrote: ({ Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<import("@playform/pipe/Target/Type/Buffer.js").Type>;
Fulfilled: ({ File }: import("@playform/pipe/Target/Interface/Plan.js").default) => Promise<string | false>;
};
File: string;
Exclude: false;
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;
};
};
Image: {
sharp: import("../Interface/Image/sharp.js").default;
};
JavaScript: {
terser: {
ecma: 5;
enclose: false;
keep_classnames: false;
keep_fnames: false;
ie8: false;
module: false;
safari10: false;
toplevel: false;
format: {
comments: false;
};
};
};
SVG: {
svgo: {
multipass: true;
js2svg: {
indent: number;
pretty: false;
};
plugins: "preset-default"[];
};
};
Map: import("../Interface/Map.js").default;
Parser: import("../Interface/Parser.js").default;
};
export declare const Search: string;
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 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;
2 changes: 1 addition & 1 deletion Target/Function/Integration.js

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

28 changes: 11 additions & 17 deletions Target/Function/Merge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,15 @@
* @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>>>;
}>
>;
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;
3 changes: 1 addition & 2 deletions Target/Interface/CLI.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Pattern } from "fast-glob";

/**
* @module CLI
*
*/
export default interface Interface {
(File: Pattern[], Compress?: Pattern): Promise<void>;
(File: Pattern[], Compress?: Pattern): Promise<void>;
}
51 changes: 25 additions & 26 deletions Target/Interface/CSS/csso.d.ts
Original file line number Diff line number Diff line change
@@ -1,33 +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;
/**
* 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;
}
35 changes: 15 additions & 20 deletions Target/Interface/CSS/lightningcss.d.ts
Original file line number Diff line number Diff line change
@@ -1,26 +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 false
* @default lightningcss undefined
*/
unusedSymbols?: string[] | boolean;
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 false
* @default lightningcss undefined
*/
unusedSymbols?: string[] | boolean;
}
3 changes: 1 addition & 2 deletions Target/Interface/Directory.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { ParsedPath } from "path";

/**
* @module Directory
*
*/
export default interface Interface {
(Path: string): Promise<ParsedPath["dir"]>;
(Path: string): Promise<ParsedPath["dir"]>;
}
Loading

0 comments on commit 93a5a93

Please sign in to comment.