aboutsummaryrefslogtreecommitdiffstats
path: root/web/esinstall.js
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2021-10-03 12:42:11 +0300
committerTulir Asokan <tulir@maunium.net>2021-10-03 12:42:11 +0300
commitef844a0ff8c6bcabfff14b9cb9cc99fc36c77d24 (patch)
tree1e9fcad37c1fdbf47e6a9082e3fe5a21f6e61cd3 /web/esinstall.js
parent502d91fc75239af541e64b2284cb2b9950f3ec22 (diff)
Update dependencies
Diffstat (limited to 'web/esinstall.js')
-rw-r--r--web/esinstall.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/web/esinstall.js b/web/esinstall.js
new file mode 100644
index 0000000..8cb5682
--- /dev/null
+++ b/web/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