Move entrypoint to app/javascript/

This commit is contained in:
Andreas Nedbal 2023-01-06 08:34:41 +01:00 committed by Andreas Nedbal
parent 20e01d3a3f
commit ce067a2d57
1 changed files with 1 additions and 6 deletions

View File

@ -1,6 +1,3 @@
import { Application } from '@hotwired/stimulus';
import { definitionsFromContext } from '@hotwired/stimulus-webpack-helpers';
import start from 'retrospring/common'; import start from 'retrospring/common';
import initAnswerbox from 'retrospring/features/answerbox/index'; import initAnswerbox from 'retrospring/features/answerbox/index';
import initCapabilities from 'retrospring/features/capabilities'; import initCapabilities from 'retrospring/features/capabilities';
@ -31,6 +28,4 @@ document.addEventListener('turbo:load', initFront);
document.addEventListener('DOMContentLoaded', initWebpush); document.addEventListener('DOMContentLoaded', initWebpush);
document.addEventListener('turbo:load', initWebpushSettingsButtons); document.addEventListener('turbo:load', initWebpushSettingsButtons);
window['Stimulus'] = Application.start();
const context = require.context('../retrospring/controllers', true, /\.ts$/);
window['Stimulus'].load(definitionsFromContext(context));