-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
48 lines (43 loc) · 1 KB
/
build.js
File metadata and controls
48 lines (43 loc) · 1 KB
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
45
46
47
48
import { build } from "esbuild";
build({
entryPoints: ["src/Typescript/spmIndex.ts"],
bundle: true,
minify: false,
outfile: "dist/spm.esm.js",
platform: "neutral",
format: "esm",
});
build({
entryPoints: ["src/Typescript/spmIndex.ts"],
bundle: true,
minify: false,
outfile: "dist/spm.cjs.js",
platform: "neutral",
format: "cjs",
});
build({
entryPoints: ["src/Typescript/spmIndex.ts"],
bundle: true,
minify: false,
outfile: "dist/spm.iife.js",
platform: "browser",
format: "iife",
});
build({
entryPoints: ["src/Typescript/spmHtmlwidget.ts"],
bundle: true,
minify: false,
external: ["Shiny", "HTMLWidgets"],
outfile: "htmlwidget/spm/inst/htmlwidgets/scatterPlotMatrix.js",
platform: "browser",
format: "iife"
});
build({
entryPoints: ["src/Typescript/mspHtmlwidget.ts"],
bundle: true,
minify: false,
external: ["Shiny", "HTMLWidgets"],
outfile: "htmlwidget/msp/inst/htmlwidgets/multipleScatterPlot.js",
platform: "browser",
format: "iife"
});