Initial Commit

This commit is contained in:
Kentai Radiquum 2024-12-28 21:30:03 +05:00
commit e50589906c
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
38 changed files with 3645 additions and 0 deletions

View file

@ -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))
})