-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ts
More file actions
29 lines (26 loc) · 689 Bytes
/
build.ts
File metadata and controls
29 lines (26 loc) · 689 Bytes
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
import { denoPlugin } from "jsr:@deno/esbuild-plugin@1.2.0";
import { emptyDir } from "jsr:@std/fs@1";
import * as esbuild from "npm:esbuild@0.25.8";
import packageJson from "./package.json" with { type: "json" };
await emptyDir("./dist");
const _result = await esbuild.build<esbuild.BuildOptions>({
plugins: [denoPlugin()],
platform: "browser",
entryPoints: { "docsify-kroki": "./src/index.ts" },
outdir: "./dist/",
bundle: true,
minify: true,
banner: {
js: `
/*!
* docsify-kroki
* v${packageJson.version}
* https://github.com/zuisong/docsify-kroki
* (c) 2020-${new Date().getFullYear()} zuisong
* MIT license
*/
`.trim(),
},
format: "esm",
});
esbuild.stop();