mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-10 00:37:54 +00:00
c84a741edc
BREAKING CHANGE: `openedx-assets` is replaed with `npm run` subcommands. For details, see the changelog entry. For further details and rationale, see the upstream DEPR ticket: https://github.com/openedx/edx-platform/issues/31895
2.1 KiB
2.1 KiB
-
💥[Feature] The
openedx-assets
command is replaced withnpm run
subcommands. This will slightly reduce the build time for edx-platform assets and comprehensive themes. It will also open up the door for more significant build time reductions in the future. Here is a migration guide, where each command is to be run in thelms
orcms
container.Before After openedx-assets build --env=prod ARGS
npm run build -- ARGS
openedx-assets build --env=dev ARGS
npm run build-dev -- ARGS
openedx-assets common --env=prod ARGS
npm run compile-sass -- --skip-themes ARGS
openedx-assets common --env=dev ARGS
npm run compile-sass-dev -- --skip-themes ARGS
openedx-assets webpack --env=prod ARGS
npm run webpack -- ARGS
openedx-assets webpack --env=dev ARGS
npm run webpack-dev -- ARGS
openedx-assets npm
npm run postinstall
(npm clean-install
runs this automatically)openedx-assets xmodule
(no longer necessary) openedx-assets collect ARGS
./manage.py lms collectstatic --noinput ARGS && ./manage.py cms collectstatic ARGS
openedx-assets watch-themes ARGS
npm run watch-themes -- ARGS
For more details, see the deprecation notice for paver and the static assets reference in edx-platform.