Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

I am unaware of any pain points at this time. There were initial issues around the need to run the watch command for Webpack, but improved communication/documentation has resolved those issues.

...

Andy Armstrong (Deactivated)

For edx-platform, I have comprehensive theming enabled and all white label themes (edx-themes) installed. A full update_assets is much too slow, so I use more targeted commands:

No Format
Full rebuild when switching branches:
paver devstack lms  (or studio)

Compile a single theme:
paver compile_sass --theme-dirs=/edx/app/edxapp/edx-platform/themes --themes=edx.org

Update all assets on a sandbox:
sudo /edx/bin/edxapp-update-assets-cms; sudo /edx/bin/edxapp-update-assets-lms; sudo /edx/bin/supervisorctl restart edxapp:

Here are some challenges I have with assets:

  • the various watchers don't understand themes so don't recompile when they are changed
  • Paver doesn't have access to Django configuration settings so you have to passĀ --theme-dirs every time
  • Karma tests are now cached so in debug mode I need to restart the whole test run on each change

...