mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
33a2624f09
When `EMBER_CLI_PLUGIN_ASSETS=1`, plugin application JS will be compiled via Ember CLI. In this mode, the existing `register_asset` API will cause any registered JS files to be made available in `/plugins/{plugin-name}_extra.js`. These 'extra' files will be loaded immediately after the plugin app JS file, so this should not affect functionality. Plugin compilation in Ember CLI is implemented as an addon, similar to the existing 'admin' addon. We bypass the normal Ember CLI compilation process (which would add the JS to the main app bundle), and reroute the addon Broccoli tree into a separate JS file per-plugin. Previously, Sprockets would add compiled templates directly to `Ember.TEMPLATES`. Under Ember CLI, they are compiled into es6 modules. Some new logic in `discourse-boot.js` takes care of remapping the new module names into the old-style `Ember.TEMPLATES`. This change has been designed to be a like-for-like replacement of the old plugin compilation system, so we do not expect any breakage. Even so, the environment variable flag will allow us to test this in a range of environments before enabling it by default. A manual silence implementation is added for the build-time `ember-glimmer.link-to.positional-arguments` deprecation while we work on a better story for plugins. |
||
---|---|---|
.. | ||
000-development_reload_warnings.rb | ||
000-mini_sql.rb | ||
000-post_migration.rb | ||
000-trace_pg_connections.rb | ||
000-zeitwerk.rb | ||
001-redis.rb | ||
002-freedom_patches.rb | ||
002-rails_failover.rb | ||
004-message_bus.rb | ||
005-site_settings.rb | ||
006-ensure_login_hint.rb | ||
006-mini_profiler.rb | ||
008-rack-cors.rb | ||
009-omniauth.rb | ||
012-web_hook_events.rb | ||
013-excon_defaults.rb | ||
014-track-setting-changes.rb | ||
099-anon-cache.rb | ||
099-drain_pool.rb | ||
100-i18n.rb | ||
100-logster.rb | ||
100-oj.rb | ||
100-onebox_options.rb | ||
100-push-notifications.rb | ||
100-quiet_logger.rb | ||
100-secret_token.rb | ||
100-session_store.rb | ||
100-sidekiq.rb | ||
100-silence_logger.rb | ||
100-strong_parameters.rb | ||
100-verify_config.rb | ||
100-wrap_parameters.rb | ||
101-lograge.rb | ||
200-first_middlewares.rb | ||
300-perf.rb | ||
400-deprecations.rb | ||
assets.rb | ||
filter_parameter_logging.rb | ||
new_framework_defaults_7_0.rb |