forked from overhangio/tutor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: remove dependency on Paver scripts (overhangio#1042)
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: openedx/edx-platform#31895
- Loading branch information
1 parent
c7b4327
commit c84a741
Showing
15 changed files
with
49 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
- 💥[Feature] The `openedx-assets` command is replaced with `npm 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 the `lms` or `cms` 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](https://github.com/openedx/edx-platform/issues/34467) | ||
and the [static assets reference](https://github.com/openedx/edx-platform/tree/open-release/redwood.master/docs/references/static-assets.rst) | ||
in edx-platform. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{% include "build/openedx/settings/partials/assets.py" %} | ||
|
||
STATIC_ROOT = path(STATIC_ROOT_BASE) / 'studio' | ||
WEBPACK_LOADER['DEFAULT']['STATS_FILE'] = STATIC_ROOT / "webpack-stats.json" | ||
WEBPACK_LOADER['DEFAULT']['STATS_FILE'] = path(STATIC_ROOT) / "webpack-stats.json" | ||
|
||
derive_settings(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{% include "build/openedx/settings/partials/assets.py" %} | ||
|
||
STATIC_ROOT = path(STATIC_ROOT_BASE) | ||
WEBPACK_LOADER['DEFAULT']['STATS_FILE'] = STATIC_ROOT / "webpack-stats.json" | ||
WEBPACK_LOADER['DEFAULT']['STATS_FILE'] = path(STATIC_ROOT) / "webpack-stats.json" | ||
|
||
derive_settings(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.