From 73744a9c6840fb0ba6f285ca81f9fba75ec22d5f Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 4 May 2021 17:55:28 -0400 Subject: Initial draft of timer setup, with results outputting and items being awarded --- app/javascript/packs/application.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/javascript/packs') diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index 856724b..a18528e 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -13,3 +13,10 @@ Turbolinks.start() ActiveStorage.start() require("stylesheets/application.css") + +// Stimulus +import { Application } from "stimulus" +import { definitionsFromContext } from "stimulus/webpack-helpers" +const application = Application.start() +const context = require.context("../controllers", true, /\.js$/) +application.load(definitionsFromContext(context)) -- cgit v1.2.3