@powerlines/plugin-image-compression 0.2.311 → 0.2.312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/_virtual/_rolldown/runtime.mjs +0 -3
- package/dist/index.cjs +0 -120
- package/dist/index.d.cts +0 -21
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -21
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -117
- package/dist/index.mjs.map +0 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -2
- package/dist/types/index.d.mts +0 -2
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +0 -74
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts +0 -74
- package/dist/types/plugin.d.mts.map +0 -1
- package/dist/types/plugin.mjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-image-compression",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.312",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to optimize images used by the project.",
|
|
6
6
|
"keywords": [
|
|
@@ -103,15 +103,15 @@
|
|
|
103
103
|
"chalk": "5.6.2",
|
|
104
104
|
"defu": "^6.1.4",
|
|
105
105
|
"jiti": "^2.6.1",
|
|
106
|
-
"powerlines": "^0.42.
|
|
106
|
+
"powerlines": "^0.42.4",
|
|
107
107
|
"sharp": "^0.34.5",
|
|
108
108
|
"svgo": "^4.0.1"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
111
|
+
"@powerlines/plugin-plugin": "^0.12.314",
|
|
112
112
|
"@storm-software/config": "^1.135.40",
|
|
113
113
|
"@types/node": "^25.5.0"
|
|
114
114
|
},
|
|
115
115
|
"publishConfig": { "access": "public" },
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "c3243c1ec0fbacb4afd4bd3db20432f443334076"
|
|
117
117
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|
package/dist/index.cjs
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
4
|
-
let _stryke_fs_list_files = require("@stryke/fs/list-files");
|
|
5
|
-
let _stryke_fs_read_file = require("@stryke/fs/read-file");
|
|
6
|
-
let _stryke_fs_write_file = require("@stryke/fs/write-file");
|
|
7
|
-
let _stryke_path_find = require("@stryke/path/find");
|
|
8
|
-
let _stryke_string_format_pretty_bytes = require("@stryke/string-format/pretty-bytes");
|
|
9
|
-
let chalk = require("chalk");
|
|
10
|
-
chalk = require_runtime.__toESM(chalk);
|
|
11
|
-
let node_buffer = require("node:buffer");
|
|
12
|
-
let node_fs_promises = require("node:fs/promises");
|
|
13
|
-
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
14
|
-
let svgo = require("svgo");
|
|
15
|
-
|
|
16
|
-
//#region src/index.ts
|
|
17
|
-
/**
|
|
18
|
-
* A Powerlines plugin to optimize image assets used by the project.
|
|
19
|
-
*
|
|
20
|
-
* @see https://sharp.pixelplumbing.com
|
|
21
|
-
*
|
|
22
|
-
* @param options - The plugin options.
|
|
23
|
-
* @returns A Powerlines plugin instance.
|
|
24
|
-
*/
|
|
25
|
-
const plugin = (options = {}) => {
|
|
26
|
-
return {
|
|
27
|
-
name: "image-compression",
|
|
28
|
-
config() {
|
|
29
|
-
return { imageCompression: {
|
|
30
|
-
filter: "{root}/**/*.{svg,jpg,jpeg,png,webp,avif,heif,gif,tiff,jp2,jxl}",
|
|
31
|
-
svg: {},
|
|
32
|
-
jpeg: {},
|
|
33
|
-
png: {},
|
|
34
|
-
webp: {},
|
|
35
|
-
avif: {},
|
|
36
|
-
heif: {},
|
|
37
|
-
tiff: {},
|
|
38
|
-
jp2: {},
|
|
39
|
-
jxl: {},
|
|
40
|
-
...options
|
|
41
|
-
} };
|
|
42
|
-
},
|
|
43
|
-
async configResolved() {
|
|
44
|
-
if (!this.config.imageCompression.filter) throw new Error("ImageCompression plugin requires a filter or glob pattern to be specified in the configuration.");
|
|
45
|
-
this.config.imageCompression.filter = (0, _stryke_convert_to_array.toArray)(this.config.imageCompression.filter).map((path) => (0, powerlines_plugin_utils.replacePathTokens)(this, path)).filter(Boolean);
|
|
46
|
-
},
|
|
47
|
-
async prepare() {
|
|
48
|
-
await Promise.all((0, _stryke_convert_to_array.toArray)(this.config.imageCompression.filter).map(async (path) => {
|
|
49
|
-
await Promise.all((await (0, _stryke_fs_list_files.listFiles)(path)).map(async (file) => {
|
|
50
|
-
const outputPath = this.config.imageCompression.outputPath ? (0, powerlines_plugin_utils.replacePathTokens)(this, this.config.imageCompression.outputPath).replace(/\{fileName\}/g, file.split("/").pop() || "output") : file;
|
|
51
|
-
const start = performance.now();
|
|
52
|
-
const originalSize = (await (0, node_fs_promises.stat)(file)).size;
|
|
53
|
-
let compressedSize = 0;
|
|
54
|
-
const extension = (0, _stryke_path_find.findFileExtensionSafe)(file).toLowerCase();
|
|
55
|
-
if (!extension) {
|
|
56
|
-
this.error(` ✘ Failed to optimize ${file} - Unable to determine file extension`);
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (extension === "svg") {
|
|
60
|
-
const result = (0, svgo.optimize)(await (0, _stryke_fs_read_file.readFile)(file), {
|
|
61
|
-
multipass: true,
|
|
62
|
-
path: file,
|
|
63
|
-
...this.config.imageCompression.svg
|
|
64
|
-
});
|
|
65
|
-
if (result.data) {
|
|
66
|
-
compressedSize = node_buffer.Buffer.byteLength(result.data, "utf8");
|
|
67
|
-
await (0, _stryke_fs_write_file.writeFile)(outputPath, result.data);
|
|
68
|
-
}
|
|
69
|
-
} else {
|
|
70
|
-
let image = await import("sharp").then((sharpModule) => sharpModule.default(file, { animated: extension === "gif" }));
|
|
71
|
-
switch (extension) {
|
|
72
|
-
case "jpeg":
|
|
73
|
-
case "jpg":
|
|
74
|
-
image = image.jpeg(this.config.imageCompression.jpeg);
|
|
75
|
-
break;
|
|
76
|
-
case "png":
|
|
77
|
-
image = image.png(this.config.imageCompression.png);
|
|
78
|
-
break;
|
|
79
|
-
case "webp":
|
|
80
|
-
image = image.webp(this.config.imageCompression.webp);
|
|
81
|
-
break;
|
|
82
|
-
case "avif":
|
|
83
|
-
image = image.avif(this.config.imageCompression.avif);
|
|
84
|
-
break;
|
|
85
|
-
case "gif":
|
|
86
|
-
image = image.gif(this.config.imageCompression.gif);
|
|
87
|
-
break;
|
|
88
|
-
case "heif":
|
|
89
|
-
image = image.heif(this.config.imageCompression.heif);
|
|
90
|
-
break;
|
|
91
|
-
case "tiff":
|
|
92
|
-
image = image.tiff(this.config.imageCompression.tiff);
|
|
93
|
-
break;
|
|
94
|
-
case "jp2":
|
|
95
|
-
image = image.jp2(this.config.imageCompression.jp2);
|
|
96
|
-
break;
|
|
97
|
-
case "jxl":
|
|
98
|
-
image = image.jxl(this.config.imageCompression.jxl);
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
compressedSize = (await image.toFile(outputPath)).size;
|
|
102
|
-
}
|
|
103
|
-
if (!compressedSize) {
|
|
104
|
-
this.error(` ✘ Failed to optimize ${file} - No data returned`);
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
if (compressedSize >= originalSize) {
|
|
108
|
-
this.error(` ✘ Failed to optimize ${file} - Compression output was not smaller than the original`);
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
this.info(` ✔ Successfully optimized ${file}: ${chalk.default.redBright((0, _stryke_string_format_pretty_bytes.prettyBytes)(originalSize))} -> ${chalk.default.greenBright((0, _stryke_string_format_pretty_bytes.prettyBytes)(compressedSize))} (${chalk.default.green((100 - compressedSize / originalSize * 100).toFixed(2))}%) in ${(performance.now() - start).toFixed(2)} ms`);
|
|
112
|
-
}));
|
|
113
|
-
}));
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
//#endregion
|
|
119
|
-
exports.default = plugin;
|
|
120
|
-
exports.plugin = plugin;
|
package/dist/index.d.cts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
-
import { Plugin } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/index.d.ts
|
|
5
|
-
declare module "powerlines" {
|
|
6
|
-
interface Config {
|
|
7
|
-
imageCompression?: ImageCompressionPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A Powerlines plugin to optimize image assets used by the project.
|
|
12
|
-
*
|
|
13
|
-
* @see https://sharp.pixelplumbing.com
|
|
14
|
-
*
|
|
15
|
-
* @param options - The plugin options.
|
|
16
|
-
* @returns A Powerlines plugin instance.
|
|
17
|
-
*/
|
|
18
|
-
declare const plugin: <TContext extends ImageCompressionPluginContext = ImageCompressionPluginContext>(options?: ImageCompressionPluginOptions) => Plugin<TContext>;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig, plugin as default, plugin };
|
|
21
|
-
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAsCY,MAAA;IACR,gBAAA,GAAmB,6BAAA;EAAA;AAAA;;;;;;;;AAYvB;cAAa,MAAA,oBACM,6BAAA,GAAgC,6BAAA,EAEjD,OAAA,GAAS,6BAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
-
import { Plugin } from "powerlines";
|
|
3
|
-
|
|
4
|
-
//#region src/index.d.ts
|
|
5
|
-
declare module "powerlines" {
|
|
6
|
-
interface Config {
|
|
7
|
-
imageCompression?: ImageCompressionPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A Powerlines plugin to optimize image assets used by the project.
|
|
12
|
-
*
|
|
13
|
-
* @see https://sharp.pixelplumbing.com
|
|
14
|
-
*
|
|
15
|
-
* @param options - The plugin options.
|
|
16
|
-
* @returns A Powerlines plugin instance.
|
|
17
|
-
*/
|
|
18
|
-
declare const plugin: <TContext extends ImageCompressionPluginContext = ImageCompressionPluginContext>(options?: ImageCompressionPluginOptions) => Plugin<TContext>;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig, plugin as default, plugin };
|
|
21
|
-
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAsCY,MAAA;IACR,gBAAA,GAAmB,6BAAA;EAAA;AAAA;;;;;;;;AAYvB;cAAa,MAAA,oBACM,6BAAA,GAAgC,6BAAA,EAEjD,OAAA,GAAS,6BAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { toArray } from "@stryke/convert/to-array";
|
|
2
|
-
import { listFiles } from "@stryke/fs/list-files";
|
|
3
|
-
import { readFile } from "@stryke/fs/read-file";
|
|
4
|
-
import { writeFile } from "@stryke/fs/write-file";
|
|
5
|
-
import { findFileExtensionSafe } from "@stryke/path/find";
|
|
6
|
-
import { prettyBytes } from "@stryke/string-format/pretty-bytes";
|
|
7
|
-
import chalk from "chalk";
|
|
8
|
-
import { Buffer } from "node:buffer";
|
|
9
|
-
import { stat } from "node:fs/promises";
|
|
10
|
-
import { replacePathTokens } from "powerlines/plugin-utils";
|
|
11
|
-
import { optimize } from "svgo";
|
|
12
|
-
|
|
13
|
-
//#region src/index.ts
|
|
14
|
-
/**
|
|
15
|
-
* A Powerlines plugin to optimize image assets used by the project.
|
|
16
|
-
*
|
|
17
|
-
* @see https://sharp.pixelplumbing.com
|
|
18
|
-
*
|
|
19
|
-
* @param options - The plugin options.
|
|
20
|
-
* @returns A Powerlines plugin instance.
|
|
21
|
-
*/
|
|
22
|
-
const plugin = (options = {}) => {
|
|
23
|
-
return {
|
|
24
|
-
name: "image-compression",
|
|
25
|
-
config() {
|
|
26
|
-
return { imageCompression: {
|
|
27
|
-
filter: "{root}/**/*.{svg,jpg,jpeg,png,webp,avif,heif,gif,tiff,jp2,jxl}",
|
|
28
|
-
svg: {},
|
|
29
|
-
jpeg: {},
|
|
30
|
-
png: {},
|
|
31
|
-
webp: {},
|
|
32
|
-
avif: {},
|
|
33
|
-
heif: {},
|
|
34
|
-
tiff: {},
|
|
35
|
-
jp2: {},
|
|
36
|
-
jxl: {},
|
|
37
|
-
...options
|
|
38
|
-
} };
|
|
39
|
-
},
|
|
40
|
-
async configResolved() {
|
|
41
|
-
if (!this.config.imageCompression.filter) throw new Error("ImageCompression plugin requires a filter or glob pattern to be specified in the configuration.");
|
|
42
|
-
this.config.imageCompression.filter = toArray(this.config.imageCompression.filter).map((path) => replacePathTokens(this, path)).filter(Boolean);
|
|
43
|
-
},
|
|
44
|
-
async prepare() {
|
|
45
|
-
await Promise.all(toArray(this.config.imageCompression.filter).map(async (path) => {
|
|
46
|
-
await Promise.all((await listFiles(path)).map(async (file) => {
|
|
47
|
-
const outputPath = this.config.imageCompression.outputPath ? replacePathTokens(this, this.config.imageCompression.outputPath).replace(/\{fileName\}/g, file.split("/").pop() || "output") : file;
|
|
48
|
-
const start = performance.now();
|
|
49
|
-
const originalSize = (await stat(file)).size;
|
|
50
|
-
let compressedSize = 0;
|
|
51
|
-
const extension = findFileExtensionSafe(file).toLowerCase();
|
|
52
|
-
if (!extension) {
|
|
53
|
-
this.error(` ✘ Failed to optimize ${file} - Unable to determine file extension`);
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
if (extension === "svg") {
|
|
57
|
-
const result = optimize(await readFile(file), {
|
|
58
|
-
multipass: true,
|
|
59
|
-
path: file,
|
|
60
|
-
...this.config.imageCompression.svg
|
|
61
|
-
});
|
|
62
|
-
if (result.data) {
|
|
63
|
-
compressedSize = Buffer.byteLength(result.data, "utf8");
|
|
64
|
-
await writeFile(outputPath, result.data);
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
let image = await import("sharp").then((sharpModule) => sharpModule.default(file, { animated: extension === "gif" }));
|
|
68
|
-
switch (extension) {
|
|
69
|
-
case "jpeg":
|
|
70
|
-
case "jpg":
|
|
71
|
-
image = image.jpeg(this.config.imageCompression.jpeg);
|
|
72
|
-
break;
|
|
73
|
-
case "png":
|
|
74
|
-
image = image.png(this.config.imageCompression.png);
|
|
75
|
-
break;
|
|
76
|
-
case "webp":
|
|
77
|
-
image = image.webp(this.config.imageCompression.webp);
|
|
78
|
-
break;
|
|
79
|
-
case "avif":
|
|
80
|
-
image = image.avif(this.config.imageCompression.avif);
|
|
81
|
-
break;
|
|
82
|
-
case "gif":
|
|
83
|
-
image = image.gif(this.config.imageCompression.gif);
|
|
84
|
-
break;
|
|
85
|
-
case "heif":
|
|
86
|
-
image = image.heif(this.config.imageCompression.heif);
|
|
87
|
-
break;
|
|
88
|
-
case "tiff":
|
|
89
|
-
image = image.tiff(this.config.imageCompression.tiff);
|
|
90
|
-
break;
|
|
91
|
-
case "jp2":
|
|
92
|
-
image = image.jp2(this.config.imageCompression.jp2);
|
|
93
|
-
break;
|
|
94
|
-
case "jxl":
|
|
95
|
-
image = image.jxl(this.config.imageCompression.jxl);
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
compressedSize = (await image.toFile(outputPath)).size;
|
|
99
|
-
}
|
|
100
|
-
if (!compressedSize) {
|
|
101
|
-
this.error(` ✘ Failed to optimize ${file} - No data returned`);
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
if (compressedSize >= originalSize) {
|
|
105
|
-
this.error(` ✘ Failed to optimize ${file} - Compression output was not smaller than the original`);
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
this.info(` ✔ Successfully optimized ${file}: ${chalk.redBright(prettyBytes(originalSize))} -> ${chalk.greenBright(prettyBytes(compressedSize))} (${chalk.green((100 - compressedSize / originalSize * 100).toFixed(2))}%) in ${(performance.now() - start).toFixed(2)} ms`);
|
|
109
|
-
}));
|
|
110
|
-
}));
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
//#endregion
|
|
116
|
-
export { plugin as default, plugin };
|
|
117
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { listFiles } from \"@stryke/fs/list-files\";\nimport { readFile } from \"@stryke/fs/read-file\";\nimport { writeFile } from \"@stryke/fs/write-file\";\nimport { findFileExtensionSafe } from \"@stryke/path/find\";\nimport { prettyBytes } from \"@stryke/string-format/pretty-bytes\";\nimport chalk from \"chalk\";\nimport { Buffer } from \"node:buffer\";\nimport { stat } from \"node:fs/promises\";\nimport type { Plugin } from \"powerlines\";\nimport { replacePathTokens } from \"powerlines/plugin-utils\";\nimport { optimize } from \"svgo\";\nimport {\n ImageCompressionPluginContext,\n ImageCompressionPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n imageCompression?: ImageCompressionPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to optimize image assets used by the project.\n *\n * @see https://sharp.pixelplumbing.com\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends ImageCompressionPluginContext = ImageCompressionPluginContext\n>(\n options: ImageCompressionPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"image-compression\",\n config() {\n return {\n imageCompression: {\n filter:\n \"{root}/**/*.{svg,jpg,jpeg,png,webp,avif,heif,gif,tiff,jp2,jxl}\",\n svg: {},\n jpeg: {},\n png: {},\n webp: {},\n avif: {},\n heif: {},\n tiff: {},\n jp2: {},\n jxl: {},\n ...options\n }\n };\n },\n async configResolved() {\n if (!this.config.imageCompression.filter) {\n throw new Error(\n \"ImageCompression plugin requires a filter or glob pattern to be specified in the configuration.\"\n );\n }\n\n this.config.imageCompression.filter = toArray(\n this.config.imageCompression.filter\n )\n .map(path => replacePathTokens(this, path))\n .filter(Boolean);\n },\n async prepare() {\n await Promise.all(\n toArray(this.config.imageCompression.filter).map(async path => {\n await Promise.all(\n (await listFiles(path)).map(async file => {\n const outputPath = this.config.imageCompression.outputPath\n ? replacePathTokens(\n this,\n this.config.imageCompression.outputPath\n ).replace(/\\{fileName\\}/g, file.split(\"/\").pop() || \"output\")\n : file;\n\n const start = performance.now();\n const originalSize = (await stat(file)).size;\n let compressedSize = 0;\n\n const extension = findFileExtensionSafe(file).toLowerCase();\n if (!extension) {\n this.error(\n ` ✘ Failed to optimize ${file} - Unable to determine file extension`\n );\n return;\n }\n\n if (extension === \"svg\") {\n const result = optimize(await readFile(file), {\n multipass: true,\n path: file,\n ...this.config.imageCompression.svg\n });\n if (result.data) {\n compressedSize = Buffer.byteLength(result.data, \"utf8\");\n await writeFile(outputPath, result.data);\n }\n } else {\n let image = await import(\"sharp\").then(sharpModule =>\n sharpModule.default(file, { animated: extension === \"gif\" })\n );\n\n switch (extension) {\n case \"jpeg\":\n case \"jpg\":\n image = image.jpeg(this.config.imageCompression.jpeg);\n break;\n case \"png\":\n image = image.png(this.config.imageCompression.png);\n break;\n case \"webp\":\n image = image.webp(this.config.imageCompression.webp);\n break;\n case \"avif\":\n image = image.avif(this.config.imageCompression.avif);\n break;\n case \"gif\":\n image = image.gif(this.config.imageCompression.gif);\n break;\n case \"heif\":\n image = image.heif(this.config.imageCompression.heif);\n break;\n case \"tiff\":\n image = image.tiff(this.config.imageCompression.tiff);\n break;\n case \"jp2\":\n image = image.jp2(this.config.imageCompression.jp2);\n break;\n case \"jxl\":\n image = image.jxl(this.config.imageCompression.jxl);\n break;\n }\n\n const result = await image.toFile(outputPath);\n compressedSize = result.size;\n }\n\n if (!compressedSize) {\n this.error(` ✘ Failed to optimize ${file} - No data returned`);\n return;\n }\n\n if (compressedSize >= originalSize) {\n this.error(\n ` ✘ Failed to optimize ${file} - Compression output was not smaller than the original`\n );\n return;\n }\n\n this.info(\n ` ✔ Successfully optimized ${\n file\n }: ${chalk.redBright(prettyBytes(originalSize))} -> ${chalk.greenBright(\n prettyBytes(compressedSize)\n )} (${chalk.green(\n (100 - (compressedSize / originalSize) * 100).toFixed(2)\n )}%) in ${(performance.now() - start).toFixed(2)} ms`\n );\n })\n );\n })\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"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"}
|
package/dist/types/index.cjs
DELETED
|
File without changes
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig } from "./plugin.cjs";
|
|
2
|
-
export { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig };
|
package/dist/types/index.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig } from "./plugin.mjs";
|
|
2
|
-
export { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig };
|
package/dist/types/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types/plugin.cjs
DELETED
|
File without changes
|
package/dist/types/plugin.d.cts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
-
import { AvifOptions, GifOptions, HeifOptions, Jp2Options, JpegOptions, JxlOptions, PngOptions, TiffOptions, WebpOptions } from "sharp";
|
|
3
|
-
import { Config } from "svgo";
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
interface ImageCompressionPluginOptions {
|
|
7
|
-
/**
|
|
8
|
-
* A path or glob pattern (or an array of paths and glob patterns) to image files to optimize during Powerlines processing.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue "\{root\}/**\/*.\{svg,jpg,jpeg,png,webp,avif,heif,gif,tiff,jp2,jxl\}"
|
|
11
|
-
*/
|
|
12
|
-
filter?: string | string[];
|
|
13
|
-
/**
|
|
14
|
-
* The output directory for the optimized images.
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* By default, it will generate the output files alongside each input image file.
|
|
18
|
-
*/
|
|
19
|
-
outputPath?: string;
|
|
20
|
-
/**
|
|
21
|
-
* These SVGO options used for SVG optimization
|
|
22
|
-
*/
|
|
23
|
-
svg?: Config;
|
|
24
|
-
/**
|
|
25
|
-
* These JPEG options used for output image
|
|
26
|
-
*/
|
|
27
|
-
jpeg?: JpegOptions;
|
|
28
|
-
/**
|
|
29
|
-
* These JP2 (JPEG 2000) options used for output image
|
|
30
|
-
*/
|
|
31
|
-
jp2?: Jp2Options;
|
|
32
|
-
/**
|
|
33
|
-
* These JPEG-XL (JXL) options used for output image
|
|
34
|
-
*/
|
|
35
|
-
jxl?: JxlOptions;
|
|
36
|
-
/**
|
|
37
|
-
* These PNG options used for output image
|
|
38
|
-
*/
|
|
39
|
-
png?: PngOptions;
|
|
40
|
-
/**
|
|
41
|
-
* These WebP options used for output image
|
|
42
|
-
*/
|
|
43
|
-
webp?: WebpOptions;
|
|
44
|
-
/**
|
|
45
|
-
* These GIF options used for output image
|
|
46
|
-
*/
|
|
47
|
-
gif?: GifOptions;
|
|
48
|
-
/**
|
|
49
|
-
* These AVIF options used for output image
|
|
50
|
-
*/
|
|
51
|
-
avif?: AvifOptions;
|
|
52
|
-
/**
|
|
53
|
-
* These HEIF options used for output image
|
|
54
|
-
*/
|
|
55
|
-
heif?: HeifOptions;
|
|
56
|
-
/**
|
|
57
|
-
* These TIFF options used for output image
|
|
58
|
-
*/
|
|
59
|
-
tiff?: TiffOptions;
|
|
60
|
-
}
|
|
61
|
-
interface ImageCompressionPluginUserConfig extends UserConfig {
|
|
62
|
-
imageCompression?: ImageCompressionPluginOptions;
|
|
63
|
-
}
|
|
64
|
-
interface ImageCompressionPluginResolvedConfig extends ResolvedConfig {
|
|
65
|
-
imageCompression: Omit<ImageCompressionPluginOptions, "filter" | "svg" | "jpeg" | "png" | "webp" | "avif" | "heif" | "tiff" | "jp2" | "jxl" | "gif"> & Required<Pick<ImageCompressionPluginOptions, "filter" | "svg" | "jpeg" | "png" | "webp" | "avif" | "heif" | "tiff" | "jp2" | "jxl" | "gif">>;
|
|
66
|
-
}
|
|
67
|
-
type ImageCompressionPluginContext<TResolvedConfig extends ImageCompressionPluginResolvedConfig = ImageCompressionPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
68
|
-
declare type __ΩImageCompressionPluginOptions = any[];
|
|
69
|
-
declare type __ΩImageCompressionPluginUserConfig = any[];
|
|
70
|
-
declare type __ΩImageCompressionPluginResolvedConfig = any[];
|
|
71
|
-
declare type __ΩImageCompressionPluginContext = any[];
|
|
72
|
-
//#endregion
|
|
73
|
-
export { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig };
|
|
74
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;UAgCiB,6BAAA;;AAAjB;;;;EAME,MAAA;EAuBM;;;;;;EAfN,UAAA;EAkDO;;;EA7CP,GAAA,GAAM,MAAA;EALN;;;EAUA,IAAA,GAAO,WAAA;EAAA;;;EAKP,GAAA,GAAM,UAAA;EAKA;;;EAAN,GAAA,GAAM,UAAA;EAUC;;;EALP,GAAA,GAAM,UAAA;EAeC;;;EAVP,IAAA,GAAO,WAAA;EAoBA;;;EAfP,GAAA,GAAM,UAAA;EAkB0C;;;EAbhD,IAAA,GAAO,WAAA;EAcP;;;EATA,IAAA,GAAO,WAAA;EAYQ;;;EAPf,IAAA,GAAO,WAAA;AAAA;AAAA,UAGQ,gCAAA,SAAyC,UAAA;EACxD,gBAAA,GAAmB,6BAAA;AAAA;AAAA,UAGJ,oCAAA,SAA6C,cAAA;EAC5D,gBAAA,EAAkB,IAAA,CAChB,6BAAA,mGAaA,QAAA,CACE,IAAA,CACE,6BAAA;AAAA;AAAA,KAgBI,6BAAA,yBACc,oCAAA,GACtB,oCAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/dist/types/plugin.d.mts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Config } from "svgo";
|
|
2
|
-
import { AvifOptions, GifOptions, HeifOptions, Jp2Options, JpegOptions, JxlOptions, PngOptions, TiffOptions, WebpOptions } from "sharp";
|
|
3
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
interface ImageCompressionPluginOptions {
|
|
7
|
-
/**
|
|
8
|
-
* A path or glob pattern (or an array of paths and glob patterns) to image files to optimize during Powerlines processing.
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue "\{root\}/**\/*.\{svg,jpg,jpeg,png,webp,avif,heif,gif,tiff,jp2,jxl\}"
|
|
11
|
-
*/
|
|
12
|
-
filter?: string | string[];
|
|
13
|
-
/**
|
|
14
|
-
* The output directory for the optimized images.
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* By default, it will generate the output files alongside each input image file.
|
|
18
|
-
*/
|
|
19
|
-
outputPath?: string;
|
|
20
|
-
/**
|
|
21
|
-
* These SVGO options used for SVG optimization
|
|
22
|
-
*/
|
|
23
|
-
svg?: Config;
|
|
24
|
-
/**
|
|
25
|
-
* These JPEG options used for output image
|
|
26
|
-
*/
|
|
27
|
-
jpeg?: JpegOptions;
|
|
28
|
-
/**
|
|
29
|
-
* These JP2 (JPEG 2000) options used for output image
|
|
30
|
-
*/
|
|
31
|
-
jp2?: Jp2Options;
|
|
32
|
-
/**
|
|
33
|
-
* These JPEG-XL (JXL) options used for output image
|
|
34
|
-
*/
|
|
35
|
-
jxl?: JxlOptions;
|
|
36
|
-
/**
|
|
37
|
-
* These PNG options used for output image
|
|
38
|
-
*/
|
|
39
|
-
png?: PngOptions;
|
|
40
|
-
/**
|
|
41
|
-
* These WebP options used for output image
|
|
42
|
-
*/
|
|
43
|
-
webp?: WebpOptions;
|
|
44
|
-
/**
|
|
45
|
-
* These GIF options used for output image
|
|
46
|
-
*/
|
|
47
|
-
gif?: GifOptions;
|
|
48
|
-
/**
|
|
49
|
-
* These AVIF options used for output image
|
|
50
|
-
*/
|
|
51
|
-
avif?: AvifOptions;
|
|
52
|
-
/**
|
|
53
|
-
* These HEIF options used for output image
|
|
54
|
-
*/
|
|
55
|
-
heif?: HeifOptions;
|
|
56
|
-
/**
|
|
57
|
-
* These TIFF options used for output image
|
|
58
|
-
*/
|
|
59
|
-
tiff?: TiffOptions;
|
|
60
|
-
}
|
|
61
|
-
interface ImageCompressionPluginUserConfig extends UserConfig {
|
|
62
|
-
imageCompression?: ImageCompressionPluginOptions;
|
|
63
|
-
}
|
|
64
|
-
interface ImageCompressionPluginResolvedConfig extends ResolvedConfig {
|
|
65
|
-
imageCompression: Omit<ImageCompressionPluginOptions, "filter" | "svg" | "jpeg" | "png" | "webp" | "avif" | "heif" | "tiff" | "jp2" | "jxl" | "gif"> & Required<Pick<ImageCompressionPluginOptions, "filter" | "svg" | "jpeg" | "png" | "webp" | "avif" | "heif" | "tiff" | "jp2" | "jxl" | "gif">>;
|
|
66
|
-
}
|
|
67
|
-
type ImageCompressionPluginContext<TResolvedConfig extends ImageCompressionPluginResolvedConfig = ImageCompressionPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
68
|
-
declare type __ΩImageCompressionPluginOptions = any[];
|
|
69
|
-
declare type __ΩImageCompressionPluginUserConfig = any[];
|
|
70
|
-
declare type __ΩImageCompressionPluginResolvedConfig = any[];
|
|
71
|
-
declare type __ΩImageCompressionPluginContext = any[];
|
|
72
|
-
//#endregion
|
|
73
|
-
export { ImageCompressionPluginContext, ImageCompressionPluginOptions, ImageCompressionPluginResolvedConfig, ImageCompressionPluginUserConfig, __ΩImageCompressionPluginContext, __ΩImageCompressionPluginOptions, __ΩImageCompressionPluginResolvedConfig, __ΩImageCompressionPluginUserConfig };
|
|
74
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;UAgCiB,6BAAA;;AAAjB;;;;EAME,MAAA;EAuBM;;;;;;EAfN,UAAA;EAkDO;;;EA7CP,GAAA,GAAM,MAAA;EALN;;;EAUA,IAAA,GAAO,WAAA;EAAA;;;EAKP,GAAA,GAAM,UAAA;EAKA;;;EAAN,GAAA,GAAM,UAAA;EAUC;;;EALP,GAAA,GAAM,UAAA;EAeC;;;EAVP,IAAA,GAAO,WAAA;EAoBA;;;EAfP,GAAA,GAAM,UAAA;EAkB0C;;;EAbhD,IAAA,GAAO,WAAA;EAcP;;;EATA,IAAA,GAAO,WAAA;EAYQ;;;EAPf,IAAA,GAAO,WAAA;AAAA;AAAA,UAGQ,gCAAA,SAAyC,UAAA;EACxD,gBAAA,GAAmB,6BAAA;AAAA;AAAA,UAGJ,oCAAA,SAA6C,cAAA;EAC5D,gBAAA,EAAkB,IAAA,CAChB,6BAAA,mGAaA,QAAA,CACE,IAAA,CACE,6BAAA;AAAA;AAAA,KAgBI,6BAAA,yBACc,oCAAA,GACtB,oCAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/dist/types/plugin.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|