-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild-config.ts
29 lines (28 loc) · 1.09 KB
/
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
import type { ReactComponentBuildConfig, WebComponentBuildConfig } from "../../tasks/build/builder/src/types.ts";
export const webComponentList: WebComponentBuildConfig[] = [
{
name: "jb-date-input",
path: "./lib/jb-date-input.ts",
outputPath: "./dist/jb-date-input.js",
umdName: "JBDateInput",
external: ["date-fns", "date-fns-jalali", "jb-calendar", "jb-input", "jb-popover", "jb-validation"],
//because date-fns dont have any umd module export i have to do this so it doesn't exclude in umd build
umdIncludes: ["date-fns", "date-fns-jalali", "jb-calendar", "jb-input", "jb-popover", "jb-validation"],
},
];
export const reactComponentList: ReactComponentBuildConfig[] = [
{
name: "jb-date-input-react",
path: "./react/lib/JBDateInput.tsx",
outputPath: "./react/dist/JBDateInput.js",
external: ["react", "prop-types", "jb-date-input", "jb-validation"],
globals: {
react: "React",
"prop-types": "PropTypes",
"jb-date-input": "JBDateInput",
"jb-validation": "JBValidation",
},
umdName: "JBDateInputReact",
dir: "./react"
},
];