mirror of
https://github.com/wah-su/mstickers.git
synced 2025-05-07 21:39:35 +05:00
Initial Commit
This commit is contained in:
commit
e50589906c
38 changed files with 3645 additions and 0 deletions
23
stickerpicker/esinstall.js
Normal file
23
stickerpicker/esinstall.js
Normal 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))
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue