Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
lint: Ensure non-dev templates entrypoint name doesn't start with `dev`.
Riken Shahc3601d7e3e6c
diff --git a/templates/zerver/development/email_log.html b/templates/zerver/development/email_log.htmlindex a1db16c29f0..60dfc0e5794 100644--- a/templates/zerver/development/email_log.html+++ b/templates/zerver/development/email_log.html@@ -1,5 +1,5 @@{% extends "zerver/base.html" %}-{% set entrypoint = "email-log" %}+{% set entrypoint = "dev-email-log" %}{% block content %}<div class="container"><div style="position: fixed">diff --git a/templates/zerver/development/integrations_dev_panel.html b/templates/zerver/development/integrations_dev_panel.htmlindex 0b7d29d0694..8f81320596c 100644--- a/templates/zerver/development/integrations_dev_panel.html+++ b/templates/zerver/development/integrations_dev_panel.html@@ -1,5 +1,5 @@{% extends "zerver/portico.html" %}-{% set entrypoint = "integrations-dev-panel" %}+{% set entrypoint = "dev-integrations-panel" %}{% block customhead %}diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex c9b14b84998..27e1ad10fcc 100644--- a/tools/linter_lib/custom_check.py+++ b/tools/linter_lib/custom_check.py@@ -754,6 +754,11 @@ jinja2_rules = RuleList("pattern": r"{{ _(.+) }}[\.\?!]","description": "Period should be part of the translatable string.",},+ {+ "pattern": r'{% set entrypoint = "dev-',+ "exclude": {"templates/zerver/development/"},+ "description": "Development entrypoints (dev-) must not be imported in production.",+ },],)diff --git a/tools/webpack.assets.json b/tools/webpack.assets.jsonindex dbe0d6a295c..5883c59ff81 100644--- a/tools/webpack.assets.json+++ b/tools/webpack.assets.json@@ -90,14 +90,14 @@"dev-login": ["./static/js/bundles/portico", "./static/js/portico/dev-login"],"desktop-login": ["./static/js/bundles/portico", "./static/js/portico/desktop-login"],"desktop-redirect": ["./static/js/bundles/portico", "./static/js/portico/desktop-redirect"],- "integrations-dev-panel": [+ "dev-integrations-panel": ["./static/js/bundles/portico","./static/js/portico/integrations_dev_panel","./static/styles/portico/integrations_dev_panel.css","./static/js/reload_state","./static/js/channel"],- "email-log": [+ "dev-email-log": ["./static/js/bundles/common","./static/js/portico/email_log","./static/js/reload_state",