Skip to content
Snippets Groups Projects
Verified Commit d97d2457 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Update docs and scripts for Vite

parent 3fd148ce
No related branches found
No related tags found
1 merge request!1132Resolve "Evaluate use of Vite instead of Webpack"
...@@ -9,6 +9,12 @@ and this project adheres to `Semantic Versioning`_. ...@@ -9,6 +9,12 @@ and this project adheres to `Semantic Versioning`_.
Unreleased Unreleased
---------- ----------
Deprecated
~~~~~~~~~~
* The `webpack_bundle` management command is replaced by the new `vite`
command. The `webpack_bundle` command will be removed in AlekSIS-Core 4.0.
Added Added
~~~~~ ~~~~~
...@@ -19,6 +25,8 @@ Changed ...@@ -19,6 +25,8 @@ Changed
~~~~~~~ ~~~~~~~
* Rewrite of frontend using Vuetify * Rewrite of frontend using Vuetify
* The runuwsgi dev server now starts a Vite dev server with HMR in the
background
* OIDC scope "profile" now exposes the avatar instead of the official photo * OIDC scope "profile" now exposes the avatar instead of the official photo
* Based on Django 4.0 * Based on Django 4.0
* Use built-in Redis cache backend * Use built-in Redis cache backend
...@@ -27,6 +35,7 @@ Changed ...@@ -27,6 +35,7 @@ Changed
requests requests
* Incorporate SPDX license list for app licenses on About page * Incorporate SPDX license list for app licenses on About page
* [Dev] The undocumented field `check` on `DataCheckResult` was renamed to `data_check` * [Dev] The undocumented field `check` on `DataCheckResult` was renamed to `data_check`
* Frontend bundling migrated from Webpack to Vite
Fixed Fixed
~~~~~ ~~~~~
......
...@@ -75,7 +75,7 @@ CMD ["/usr/local/bin/aleksis-docker-startup"] ...@@ -75,7 +75,7 @@ CMD ["/usr/local/bin/aleksis-docker-startup"]
# Install assets # Install assets
FROM core as assets FROM core as assets
RUN eatmydata aleksis-admin webpack_bundle; \ RUN eatmydata aleksis-admin vite build; \
eatmydata aleksis-admin collectstatic --no-input; \ eatmydata aleksis-admin collectstatic --no-input; \
rm -rf /usr/local/share/.cache rm -rf /usr/local/share/.cache
# FIXME Introduce deletion after we don't need materializecss anymore for SASS # FIXME Introduce deletion after we don't need materializecss anymore for SASS
...@@ -124,7 +124,7 @@ ONBUILD RUN set -e; \ ...@@ -124,7 +124,7 @@ ONBUILD RUN set -e; \
if [ -n "$APPS" ]; then \ if [ -n "$APPS" ]; then \
eatmydata pip install $APPS; \ eatmydata pip install $APPS; \
fi; \ fi; \
eatmydata aleksis-admin webpack_bundle; \ eatmydata aleksis-admin vite build; \
eatmydata aleksis-admin collectstatic --no-input; \ eatmydata aleksis-admin collectstatic --no-input; \
rm -rf /usr/local/share/.cache; \ rm -rf /usr/local/share/.cache; \
eatmydata apt-get remove --purge -y yarnpkg $BUILD_DEPS; \ eatmydata apt-get remove --purge -y yarnpkg $BUILD_DEPS; \
......
...@@ -144,7 +144,7 @@ After that, you can install the aleksis meta-package, or only `aleksis-core`: ...@@ -144,7 +144,7 @@ After that, you can install the aleksis meta-package, or only `aleksis-core`:
.. code-block:: shell .. code-block:: shell
pip3 install aleksis pip3 install aleksis
aleksis-admin webpack_bundle aleksis-admin vite build
aleksis-admin collectstatic aleksis-admin collectstatic
aleksis-admin migrate aleksis-admin migrate
aleksis-admin createinitialrevisions aleksis-admin createinitialrevisions
......
...@@ -11,7 +11,7 @@ skip_install = true ...@@ -11,7 +11,7 @@ skip_install = true
envdir = {toxworkdir}/globalenv envdir = {toxworkdir}/globalenv
commands_pre = commands_pre =
poetry install -E ldap poetry install -E ldap
poetry run aleksis-admin webpack_bundle poetry run aleksis-admin vite build
poetry run aleksis-admin collectstatic --no-input poetry run aleksis-admin collectstatic --no-input
commands = commands =
poetry run pytest --cov=. {posargs} aleksis/ poetry run pytest --cov=. {posargs} aleksis/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment