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
TODO: * Test dev & prod builds one last time * Test watching again Part of: openedx/edx-platform#31895
- Loading branch information
1 parent
eb69d3e
commit f497ef0
Showing
7 changed files
with
48 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,29 @@ | ||
<!-- | ||
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] The `openedx-assets` command has been replaced with `npm run` commands. | ||
This will slightly speed up edx-platform static asset & theme build, and in the future, | ||
it will allow the edx-platform image to be cached more effectively. | ||
Here is a migration guide, where each command is to be run in the `lms` or `cms` container. | ||
Note that most of these commands are run in the Dockerfile for you, so you may not need to change anything: | ||
| **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 ci` 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` | ||
For example, if you previously executed `tutor dev run lms openedx-assets build --env=dev --theme=mytheme`, | ||
you should now execute `tutor dev run lms npm run build-dev -- --theme=mytheme`. | ||
|
||
|
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