-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rollup.config.js
204 lines (203 loc) · 6.93 KB
/
.rollup.config.js
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
import { babel } from "@rollup/plugin-babel";
import resolve from "@rollup/plugin-node-resolve";
import { terser } from "rollup-plugin-terser";
import cleanup from "rollup-plugin-cleanup";
export default [
{
input: "./rollup.js",
plugins: [babel({ babelHelpers: "inline" }), resolve(), cleanup()],
output: [
{
name: "AccessibleMenuBootstrap4",
format: "iife",
sourcemap: true,
file: "dist/accessible-menu-bs4.js",
globals: {
"accessible-menu/src/disclosureMenu.js": "DisclosureMenu",
"accessible-menu/src/disclosureMenuItem.js": "DisclosureMenuItem",
"accessible-menu/src/disclosureMenuToggle.js": "DisclosureMenuToggle",
"accessible-menu/src/menubar.js": "Menubar",
"accessible-menu/src/menubarItem.js": "MenubarItem",
"accessible-menu/src/menubarToggle.js": "MenubarToggle",
"accessible-menu/src/treeview.js": "Treeview",
"accessible-menu/src/treeviewItem.js": "TreeviewItem",
"accessible-menu/src/treeviewToggle.js": "TreeviewToggle",
},
},
{
name: "AccessibleMenuBootstrap4",
format: "iife",
sourcemap: true,
file: "dist/accessible-menu-bs4.min.js",
globals: {
"accessible-menu/src/disclosureMenu.js": "DisclosureMenu",
"accessible-menu/src/disclosureMenuItem.js": "DisclosureMenuItem",
"accessible-menu/src/disclosureMenuToggle.js": "DisclosureMenuToggle",
"accessible-menu/src/menubar.js": "Menubar",
"accessible-menu/src/menubarItem.js": "MenubarItem",
"accessible-menu/src/menubarToggle.js": "MenubarToggle",
"accessible-menu/src/treeview.js": "Treeview",
"accessible-menu/src/treeviewItem.js": "TreeviewItem",
"accessible-menu/src/treeviewToggle.js": "TreeviewToggle",
},
plugins: [terser()],
},
],
},
{
input: "./src/bootstrap4DisclosureMenu.js",
plugins: [babel({ babelHelpers: "inline" }), resolve(), cleanup()],
output: [
{
name: "Bootstrap4DisclosureMenu",
format: "iife",
sourcemap: true,
file: "dist/disclosure-menu-bs4.js",
globals: {
"accessible-menu/src/disclosureMenu.js": "DisclosureMenu",
"accessible-menu/src/disclosureMenuItem.js": "DisclosureMenuItem",
"accessible-menu/src/disclosureMenuToggle.js": "DisclosureMenuToggle",
},
},
{
name: "Bootstrap4DisclosureMenu",
format: "iife",
sourcemap: true,
file: "dist/disclosure-menu-bs4.min.js",
globals: {
"accessible-menu/src/disclosureMenu.js": "DisclosureMenu",
"accessible-menu/src/disclosureMenuItem.js": "DisclosureMenuItem",
"accessible-menu/src/disclosureMenuToggle.js": "DisclosureMenuToggle",
},
plugins: [terser()],
},
{
name: "Bootstrap4DisclosureMenu",
format: "esm",
sourcemap: true,
file: "dist/disclosure-menu-bs4.esm.js",
globals: {
"accessible-menu/src/disclosureMenu.js": "DisclosureMenu",
"accessible-menu/src/disclosureMenuItem.js": "DisclosureMenuItem",
"accessible-menu/src/disclosureMenuToggle.js": "DisclosureMenuToggle",
},
},
{
name: "Bootstrap4DisclosureMenu",
format: "esm",
sourcemap: true,
file: "dist/disclosure-menu-bs4.esm.min.js",
globals: {
"accessible-menu/src/disclosureMenu.js": "DisclosureMenu",
"accessible-menu/src/disclosureMenuItem.js": "DisclosureMenuItem",
"accessible-menu/src/disclosureMenuToggle.js": "DisclosureMenuToggle",
},
plugins: [terser()],
},
],
},
{
input: "./src/bootstrap4Menubar.js",
plugins: [babel({ babelHelpers: "inline" }), resolve(), cleanup()],
output: [
{
name: "Bootstrap4Menubar",
format: "iife",
sourcemap: true,
file: "dist/menubar-bs4.js",
globals: {
"accessible-menu/src/menubar.js": "Menubar",
"accessible-menu/src/menubarItem.js": "MenubarItem",
"accessible-menu/src/menubarToggle.js": "MenubarToggle",
},
},
{
name: "Bootstrap4Menubar",
format: "iife",
sourcemap: true,
file: "dist/menubar-bs4.min.js",
globals: {
"accessible-menu/src/menubar.js": "Menubar",
"accessible-menu/src/menubarItem.js": "MenubarItem",
"accessible-menu/src/menubarToggle.js": "MenubarToggle",
},
plugins: [terser()],
},
{
name: "Bootstrap4Menubar",
format: "esm",
sourcemap: true,
file: "dist/menubar-bs4.esm.js",
globals: {
"accessible-menu/src/menubar.js": "Menubar",
"accessible-menu/src/menubarItem.js": "MenubarItem",
"accessible-menu/src/menubarToggle.js": "MenubarToggle",
},
},
{
name: "Bootstrap4Menubar",
format: "esm",
sourcemap: true,
file: "dist/menubar-bs4.esm.min.js",
globals: {
"accessible-menu/src/menubar.js": "Menubar",
"accessible-menu/src/menubarItem.js": "MenubarItem",
"accessible-menu/src/menubarToggle.js": "MenubarToggle",
},
plugins: [terser()],
},
],
},
{
input: "./src/bootstrap4Treeview.js",
plugins: [babel({ babelHelpers: "inline" }), resolve(), cleanup()],
output: [
{
name: "Bootstrap4Treeview",
format: "iife",
sourcemap: true,
file: "dist/treeview-bs4.js",
globals: {
"accessible-menu/src/treeview.js": "Treeview",
"accessible-menu/src/treeviewItem.js": "TreeviewItem",
"accessible-menu/src/treeviewToggle.js": "TreeviewToggle",
},
},
{
name: "Bootstrap4Treeview",
format: "iife",
sourcemap: true,
file: "dist/treeview-bs4.min.js",
globals: {
"accessible-menu/src/treeview.js": "Treeview",
"accessible-menu/src/treeviewItem.js": "TreeviewItem",
"accessible-menu/src/treeviewToggle.js": "TreeviewToggle",
},
plugins: [terser()],
},
{
name: "Bootstrap4Treeview",
format: "esm",
sourcemap: true,
file: "dist/treeview-bs4.esm.js",
globals: {
"accessible-menu/src/treeview.js": "Treeview",
"accessible-menu/src/treeviewItem.js": "TreeviewItem",
"accessible-menu/src/treeviewToggle.js": "TreeviewToggle",
},
},
{
name: "Bootstrap4Treeview",
format: "esm",
sourcemap: true,
file: "dist/treeview-bs4.esm.min.js",
globals: {
"accessible-menu/src/treeview.js": "Treeview",
"accessible-menu/src/treeviewItem.js": "TreeviewItem",
"accessible-menu/src/treeviewToggle.js": "TreeviewToggle",
},
plugins: [terser()],
},
],
},
];