Skip to content

Commit 93a5a93

Browse files
1 parent 9591273 commit 93a5a93

30 files changed

+339
-451
lines changed

Target/Function/Directory.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type Interface from "../Interface/Directory.js";
2-
32
/**
43
* @module Directory
54
*

Target/Function/Image/Writesharp.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type Interface from "../../Interface/Image/Writesharp.js";
2-
32
/**
43
* @module Image
54
*

Target/Function/Image/Writesharp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Target/Function/Integration.d.ts

Lines changed: 92 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import type Action from "@playform/pipe/Target/Interface/Action.js";
2-
32
import type Interface from "../Interface/Integration.js";
4-
53
/**
64
* @module Integration
75
*
@@ -10,125 +8,98 @@ export declare let System: string;
108
declare const _default: Interface;
119
export default _default;
1210
export declare const Default: {
13-
Path: string;
14-
Cache: {
15-
Search: string;
16-
Folder: string;
17-
};
18-
Logger: 2;
19-
Action: {
20-
Failed: ({
21-
Input,
22-
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
23-
Passed: ({
24-
Before,
25-
Buffer,
26-
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<boolean>;
27-
Accomplished: ({
28-
Input,
29-
Before,
30-
After,
31-
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
32-
Changed: (
33-
Plan: import("@playform/pipe/Target/Interface/Plan.js").default,
34-
) => Promise<any>;
35-
Read: ({
36-
Input,
37-
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
38-
Wrote: ({
39-
Buffer,
40-
}: import("@playform/pipe/Target/Interface/File.js").default) => Promise<
41-
import("@playform/pipe/Target/Type/Buffer.js").Type
42-
>;
43-
Fulfilled: ({
44-
File,
45-
}: import("@playform/pipe/Target/Interface/Plan.js").default) => Promise<
46-
string | false
47-
>;
48-
};
49-
File: string;
50-
Exclude: false;
51-
CSS: {
52-
csso: import("../Interface/CSS/csso.js").default;
53-
lightningcss: import("../Interface/CSS/lightningcss.js").default;
54-
};
55-
HTML: {
56-
"html-minifier-terser": {
57-
caseSensitive: true;
58-
collapseInlineTagWhitespace: false;
59-
collapseWhitespace: true;
60-
continueOnParseError: true;
61-
html5: true;
62-
ignoreCustomComments: RegExp[];
63-
ignoreCustomFragments: never[];
64-
includeAutoGeneratedTags: true;
65-
keepClosingSlash: true;
66-
minifyCSS: true;
67-
minifyJS: true;
68-
minifyURLs: false;
69-
noNewlinesBeforeTagClose: true;
70-
preventAttributesEscaping: false;
71-
processConditionalComments: false;
72-
processScripts: string[];
73-
quoteCharacter: string;
74-
removeAttributeQuotes: true;
75-
removeComments: true;
76-
removeScriptTypeAttributes: true;
77-
removeStyleLinkTypeAttributes: true;
78-
removeTagWhitespace: false;
79-
sortAttributes: true;
80-
sortClassName: true;
81-
trimCustomFragments: true;
82-
useShortDoctype: false;
83-
};
84-
};
85-
Image: {
86-
sharp: import("../Interface/Image/sharp.js").default;
87-
};
88-
JavaScript: {
89-
terser: {
90-
ecma: 5;
91-
enclose: false;
92-
keep_classnames: false;
93-
keep_fnames: false;
94-
ie8: false;
95-
module: false;
96-
safari10: false;
97-
toplevel: false;
98-
format: {
99-
comments: false;
100-
};
101-
};
102-
};
103-
SVG: {
104-
svgo: {
105-
multipass: true;
106-
js2svg: {
107-
indent: number;
108-
pretty: false;
109-
};
110-
plugins: "preset-default"[];
111-
};
112-
};
113-
Map: import("../Interface/Map.js").default;
114-
Parser: import("../Interface/Parser.js").default;
11+
Path: string;
12+
Cache: {
13+
Search: string;
14+
Folder: string;
15+
};
16+
Logger: 2;
17+
Action: {
18+
Failed: ({ Input }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
19+
Passed: ({ Before, Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<boolean>;
20+
Accomplished: ({ Input, Before, After }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
21+
Changed: (Plan: import("@playform/pipe/Target/Interface/Plan.js").default) => Promise<any>;
22+
Read: ({ Input }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<string>;
23+
Wrote: ({ Buffer }: import("@playform/pipe/Target/Interface/File.js").default) => Promise<import("@playform/pipe/Target/Type/Buffer.js").Type>;
24+
Fulfilled: ({ File }: import("@playform/pipe/Target/Interface/Plan.js").default) => Promise<string | false>;
25+
};
26+
File: string;
27+
Exclude: false;
28+
CSS: {
29+
csso: import("../Interface/CSS/csso.js").default;
30+
lightningcss: import("../Interface/CSS/lightningcss.js").default;
31+
};
32+
HTML: {
33+
"html-minifier-terser": {
34+
caseSensitive: true;
35+
collapseInlineTagWhitespace: false;
36+
collapseWhitespace: true;
37+
continueOnParseError: true;
38+
html5: true;
39+
ignoreCustomComments: RegExp[];
40+
ignoreCustomFragments: never[];
41+
includeAutoGeneratedTags: true;
42+
keepClosingSlash: true;
43+
minifyCSS: true;
44+
minifyJS: true;
45+
minifyURLs: false;
46+
noNewlinesBeforeTagClose: true;
47+
preventAttributesEscaping: false;
48+
processConditionalComments: false;
49+
processScripts: string[];
50+
quoteCharacter: string;
51+
removeAttributeQuotes: true;
52+
removeComments: true;
53+
removeScriptTypeAttributes: true;
54+
removeStyleLinkTypeAttributes: true;
55+
removeTagWhitespace: false;
56+
sortAttributes: true;
57+
sortClassName: true;
58+
trimCustomFragments: true;
59+
useShortDoctype: false;
60+
};
61+
};
62+
Image: {
63+
sharp: import("../Interface/Image/sharp.js").default;
64+
};
65+
JavaScript: {
66+
terser: {
67+
ecma: 5;
68+
enclose: false;
69+
keep_classnames: false;
70+
keep_fnames: false;
71+
ie8: false;
72+
module: false;
73+
safari10: false;
74+
toplevel: false;
75+
format: {
76+
comments: false;
77+
};
78+
};
79+
};
80+
SVG: {
81+
svgo: {
82+
multipass: true;
83+
js2svg: {
84+
indent: number;
85+
pretty: false;
86+
};
87+
plugins: "preset-default"[];
88+
};
89+
};
90+
Map: import("../Interface/Map.js").default;
91+
Parser: import("../Interface/Parser.js").default;
11592
};
11693
export declare const Search: string;
117-
export declare const Merge: <Ts extends readonly unknown[]>(
118-
...objects: Ts
119-
) => import("deepmerge-ts").DeepMergeHKT<
120-
Ts,
121-
Readonly<{
122-
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
123-
DeepMergeArraysURI: "DeepMergeArraysDefaultURI";
124-
DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
125-
DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
126-
DeepMergeOthersURI: "DeepMergeLeafURI";
127-
DeepMergeFilterValuesURI: "DeepMergeFilterValuesDefaultURI";
128-
}>,
129-
Readonly<{
130-
key: PropertyKey;
131-
parents: ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>;
132-
}>
133-
>;
94+
export declare const Merge: <Ts extends readonly unknown[]>(...objects: Ts) => import("deepmerge-ts").DeepMergeHKT<Ts, Readonly<{
95+
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
96+
DeepMergeArraysURI: "DeepMergeArraysDefaultURI";
97+
DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
98+
DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
99+
DeepMergeOthersURI: "DeepMergeLeafURI";
100+
DeepMergeFilterValuesURI: "DeepMergeFilterValuesDefaultURI";
101+
}>, Readonly<{
102+
key: PropertyKey;
103+
parents: ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>;
104+
}>>;
134105
export declare let _Action: Action;

Target/Function/Integration.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Target/Function/Merge.d.ts

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,15 @@
22
* @module Merge
33
*
44
*/
5-
declare const _default: <Ts extends readonly unknown[]>(
6-
...objects: Ts
7-
) => import("deepmerge-ts").DeepMergeHKT<
8-
Ts,
9-
Readonly<{
10-
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
11-
DeepMergeArraysURI: "DeepMergeArraysDefaultURI";
12-
DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
13-
DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
14-
DeepMergeOthersURI: "DeepMergeLeafURI";
15-
DeepMergeFilterValuesURI: "DeepMergeFilterValuesDefaultURI";
16-
}>,
17-
Readonly<{
18-
key: PropertyKey;
19-
parents: ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>;
20-
}>
21-
>;
5+
declare const _default: <Ts extends readonly unknown[]>(...objects: Ts) => import("deepmerge-ts").DeepMergeHKT<Ts, Readonly<{
6+
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
7+
DeepMergeArraysURI: "DeepMergeArraysDefaultURI";
8+
DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
9+
DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
10+
DeepMergeOthersURI: "DeepMergeLeafURI";
11+
DeepMergeFilterValuesURI: "DeepMergeFilterValuesDefaultURI";
12+
}>, Readonly<{
13+
key: PropertyKey;
14+
parents: ReadonlyArray<Readonly<Record<PropertyKey, unknown>>>;
15+
}>>;
2216
export default _default;

Target/Interface/CLI.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import type { Pattern } from "fast-glob";
2-
32
/**
43
* @module CLI
54
*
65
*/
76
export default interface Interface {
8-
(File: Pattern[], Compress?: Pattern): Promise<void>;
7+
(File: Pattern[], Compress?: Pattern): Promise<void>;
98
}

Target/Interface/CSS/csso.d.ts

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
import type { CompressOptions, MinifyOptions } from "csso";
2-
32
/**
43
* @module CSS
54
*
65
*/
76
export default interface Interface extends MinifyOptions, CompressOptions {
8-
/**
9-
* Specify what comments to leave:
10-
* - 'exclamation' or true – leave all exclamation comments
11-
* - 'first-exclamation' – remove every comment except first one
12-
* - false – remove all comments
13-
*
14-
* @default Compress false
15-
* @default csso true
16-
*/
17-
comments?: boolean;
18-
/**
19-
* Enables merging of @media rules with the same media query by splitted by other rules.
20-
* The optimisation is unsafe in general, but should work fine in most cases. Use it on your own risk.
21-
*
22-
* @default Compress true
23-
* @default csso false
24-
*/
25-
forceMediaMerge?: boolean;
26-
/**
27-
* Disable or enable a structure optimisations.
28-
*
29-
* @default CompressAstro false
30-
* @default csso true
31-
*/
32-
restructure?: boolean;
7+
/**
8+
* Specify what comments to leave:
9+
* - 'exclamation' or true – leave all exclamation comments
10+
* - 'first-exclamation' – remove every comment except first one
11+
* - false – remove all comments
12+
*
13+
* @default Compress false
14+
* @default csso true
15+
*/
16+
comments?: boolean;
17+
/**
18+
* Enables merging of @media rules with the same media query by splitted by other rules.
19+
* The optimisation is unsafe in general, but should work fine in most cases. Use it on your own risk.
20+
*
21+
* @default Compress true
22+
* @default csso false
23+
*/
24+
forceMediaMerge?: boolean;
25+
/**
26+
* Disable or enable a structure optimisations.
27+
*
28+
* @default CompressAstro false
29+
* @default csso true
30+
*/
31+
restructure?: boolean;
3332
}
Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
import type { CustomAtRules, TransformOptions } from "lightningcss";
2-
32
/**
43
* @module CSS
54
*
65
*/
7-
export default interface Interface
8-
extends Omit<
9-
TransformOptions<CustomAtRules>,
10-
"filename" | "code" | "unusedSymbols"
11-
> {
12-
/**
13-
* Whether to enable minification
14-
*
15-
* @default Compress true
16-
* @default lightningcss false
17-
*/
18-
minify?: boolean;
19-
/**
20-
* Whether to remove unused selectors or keywords.
21-
*
22-
* @default Compress false
23-
* @default lightningcss undefined
24-
*/
25-
unusedSymbols?: string[] | boolean;
6+
export default interface Interface extends Omit<TransformOptions<CustomAtRules>, "filename" | "code" | "unusedSymbols"> {
7+
/**
8+
* Whether to enable minification
9+
*
10+
* @default Compress true
11+
* @default lightningcss false
12+
*/
13+
minify?: boolean;
14+
/**
15+
* Whether to remove unused selectors or keywords.
16+
*
17+
* @default Compress false
18+
* @default lightningcss undefined
19+
*/
20+
unusedSymbols?: string[] | boolean;
2621
}

Target/Interface/Directory.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import type { ParsedPath } from "path";
2-
32
/**
43
* @module Directory
54
*
65
*/
76
export default interface Interface {
8-
(Path: string): Promise<ParsedPath["dir"]>;
7+
(Path: string): Promise<ParsedPath["dir"]>;
98
}

0 commit comments

Comments
 (0)