* Upgrade Stimulus to 3.0 * Remove unused variable * Bump postcss from 8.3.8 to 8.3.9 (#14956) Bumps [postcss](https://github.com/postcss/postcss) from 8.3.8 to 8.3.9. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.3.8...8.3.9) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
15 lines
683 B
JavaScript
15 lines
683 B
JavaScript
import { Application } from '@hotwired/stimulus';
|
|
import { definitionsFromContext } from '@hotwired/stimulus-webpack-helpers';
|
|
import { LocalTimeElement } from '@github/time-elements'; // eslint-disable-line no-unused-vars
|
|
import Rails from '@rails/ujs';
|
|
|
|
// Initialize Rails unobtrusive scripting adapter
|
|
// https://github.com/rails/rails/blob/main/actionview/app/assets/javascripts/README.md#es2015
|
|
Rails.start();
|
|
|
|
// This loads all the Stimulus controllers at the same time for the admin
|
|
// section of the application.
|
|
|
|
const application = Application.start();
|
|
const context = require.context('admin/controllers', true, /.js$/);
|
|
application.load(definitionsFromContext(context));
|