mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
web: Move web app to ‘web’ directory.
Ever since we started bundling the app with webpack, there’s been less and less overlap between our ‘static’ directory (files belonging to the frontend app) and Django’s interpretation of the ‘static’ directory (files served directly to the web). Split the app out to its own ‘web’ directory outside of ‘static’, and remove all the custom collectstatic --ignore rules. This makes it much clearer what’s actually being served to the web, and what’s being bundled by webpack. It also shrinks the release tarball by 3%. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -50,23 +50,25 @@ templating systems.
|
||||
- `templates/zerver/` For [Jinja2](http://jinja.pocoo.org/) templates
|
||||
for the backend (for zerver app; logged-in content is in `templates/zerver/app`).
|
||||
|
||||
- `static/templates/` [Handlebars](https://handlebarsjs.com/) templates for the frontend.
|
||||
- `web/templates/` [Handlebars](https://handlebarsjs.com/) templates for the frontend.
|
||||
|
||||
---
|
||||
|
||||
### JavaScript, TypeScript, and other static assets
|
||||
### JavaScript, TypeScript, and other frontend assets
|
||||
|
||||
- `static/js/` Zulip's own JavaScript and TypeScript sources.
|
||||
- `web/src/` Zulip's own JavaScript and TypeScript sources.
|
||||
|
||||
- `static/styles/` Zulip's own CSS.
|
||||
- `web/styles/` Zulip's own CSS.
|
||||
|
||||
- `static/images/` Zulip's images.
|
||||
- `web/images/` Images bundled with webpack.
|
||||
|
||||
- `static/third/` Third-party JavaScript and CSS that has been vendored.
|
||||
- `static/images/` Images served directly to the web.
|
||||
|
||||
- `web/third/` Third-party JavaScript and CSS that has been vendored.
|
||||
|
||||
- `node_modules/` Third-party JavaScript installed via `yarn`.
|
||||
|
||||
- `static/shared/icons/` Icons placed in this directory are compiled
|
||||
- `web/shared/icons/` Icons placed in this directory are compiled
|
||||
into an icon font.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user