-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ts
44 lines (40 loc) · 973 Bytes
/
build.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
const minify = true;
{
const { logs, outputs, success } = await Bun.build({
entrypoints: ["lit"],
outdir: "./public/built",
minify,
});
console.log({ logs, outputs, success });
}
{
const lit_files = [
"async-directive.js",
"decorators.js",
"directive.js",
"directives/repeat.js",
"html.js",
];
const { logs, outputs, success } = await Bun.build({
entrypoints: lit_files.map((entrypoint) =>
Bun.resolveSync(`lit/${entrypoint}`, process.cwd()),
),
outdir: `./public/built/node_modules/lit`,
minify,
});
console.log({ logs, outputs, success });
}
{
const { logs, outputs, success } = await Bun.build({
entrypoints: [
"./packages/~/app/layout/src/_client/nprogress.ts",
"./packages/~/welcome/api/src/_client/hyyypertitle.ts",
],
external: ["lit", "@~/app.core/config"],
minify,
outdir: "./public/built",
});
console.log({ logs, outputs, success });
}
export {};