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.
build: switch to new edx-platform asset build
BREAKING CHANGE: `openedx-assets` is replaed with `npm run` subcommands. For details, see the changelog entry, or the Open edX DEPR ticket: openedx/edx-platform#31895
- Loading branch information
1 parent
4c723df
commit e359032
Showing
7 changed files
with
43 additions
and
242 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,24 @@ | ||
<!-- | ||
Create a changelog entry for every new user-facing change. Please respect the following instructions: | ||
- Indicate breaking changes by prepending an explosion 💥 character. | ||
- Prefix your changes with either [Bugfix], [Improvement], [Feature], [Security], [Deprecation]. | ||
- You may optionally append "(by @<author>)" at the end of the line, where "<author>" is either one (just one) | ||
of your GitHub username, real name or affiliated organization. These affiliations will be displayed in | ||
the release notes for every release. | ||
--> | ||
|
||
- 💥[Feature] Within LMS and CMS containers, the `openedx-assets` command is replaced with `npm run` subcommands. | ||
This will slightly reduce build time for edx-platform assets and 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 collecstatic --noinput ARGS && ./manage.py cms collectstatic ARGS` | ||
| `openedx-assets watch-themes ARGS` | `npm run watch-themes -- ARGS` |
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 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
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