Retrospring/app/javascript/retrospring/common.ts

17 lines
480 B
TypeScript
Raw Normal View History

2022-09-04 05:33:51 -07:00
import '@hotwired/turbo-rails';
2023-01-05 23:35:02 -08:00
import initializeBootstrap from './initializers/bootstrap';
2023-02-07 14:57:36 -08:00
import initializeHotkey from './initializers/hotkey';
import initializeServiceWorker from './initializers/serviceWorker';
2023-01-05 23:35:02 -08:00
import initializeStimulus from './initializers/stimulus';
export default function start(): void {
try {
2023-01-05 23:35:02 -08:00
initializeBootstrap();
2023-02-07 14:57:36 -08:00
initializeHotkey();
initializeServiceWorker();
2023-01-05 23:35:02 -08:00
initializeStimulus();
} catch (e) {
// initialization errors
}
2023-01-05 23:35:02 -08:00
}