-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
21 lines (16 loc) · 891 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Load and export all of the stimulus controllers
import { application } from "./controllers/application"
// Import all controller files
import ModalController from "./controllers/modal_controller"
import CommandController from "./controllers/command_controller"
import PopoverController from "./controllers/popover_controller"
// Register all controllers
application.register("protos--modal", ModalController)
application.register("protos--command", CommandController)
application.register("protos--popover", PopoverController)
// Export all controllers so user of npm package can lazy load controllers
export { default as ModalController } from "./controllers/modal_controller"
export { default as CommandController } from "./controllers/command_controller"
export { default as PopoverController } from "./controllers/popover_controller"
// Export application
export { application }