-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-config.ts
31 lines (30 loc) · 944 Bytes
/
build-config.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
import type { ReactComponentBuildConfig, WebComponentBuildConfig } from "../../tasks/build/builder/src/types.ts";
export const webComponentList: WebComponentBuildConfig[] = [
{
name: "jb-number-input",
path: "./lib/jb-number-input.ts",
outputPath: "./dist/jb-number-input.js",
umdName: "JBNumberInput",
external: ["jb-input", "jb-validation"],
globals: {
"jb-input": "JBInput",
"jb-validation": "JBValidation"
},
},
];
export const reactComponentList: ReactComponentBuildConfig[] = [
{
name: "jb-number-input-react",
path: "./react/lib/JBNumberInput.tsx",
outputPath: "./react/dist/JBNumberInput.js",
external: ["jb-number-input", "jb-input/react", "jb-input", "react"],
globals: {
react: "React",
"jb-number-input": "JBNumberInput",
"jb-input": "JBInput",
"jb-input/react": "JBInputReact"
},
umdName: "JBNumberReact",
dir: "./react"
},
];