summaryrefslogtreecommitdiffstats
path: root/sticker.pinapelz.com/esinstall.js
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-05-27 00:53:18 -0700
committerPinapelz <yukais@pinapelz.com>2026-05-27 00:55:26 -0700
commit36e053f4f0a2f63c08f7c28b9492c067f1ca42bc (patch)
treec28973073c8e26775ee4d18d1016df44afdfeceb /sticker.pinapelz.com/esinstall.js
parenta01e0666fd66c367745cdaff76fcd6ea7568c31c (diff)
migrate pinapelz.moe -> pinapelz.com
Diffstat (limited to 'sticker.pinapelz.com/esinstall.js')
-rw-r--r--sticker.pinapelz.com/esinstall.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/sticker.pinapelz.com/esinstall.js b/sticker.pinapelz.com/esinstall.js
new file mode 100644
index 0000000..8cb5682
--- /dev/null
+++ b/sticker.pinapelz.com/esinstall.js
@@ -0,0 +1,23 @@
+const { install, printStats } = require("esinstall")
+
+install(
+ [{
+ specifier: "htm/preact",
+ all: false,
+ default: false,
+ namespace: false,
+ named: ["html", "render", "Component"],
+ }],
+ {
+ dest: "./lib",
+ sourceMap: false,
+ treeshake: true,
+ verbose: true,
+ }
+).then(data => {
+ const oldPrefix = "web_modules/"
+ const newPrefix = "lib/"
+ const spaces = " ".repeat(oldPrefix.length - newPrefix.length)
+ console.log("Installation complete")
+ console.log(printStats(data.stats).replace(oldPrefix, newPrefix + spaces))
+})
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage