This PR implements much of the static assets rework ADR [1], including: * `npm run build[-dev]`, and its subcommands, * `npm run webpack[-dev]` and * `npm run compile-sass[-dev]`. This is backwards-compatible. `paver update_assets` should not be affected. The new command warns that it is "experimental" for a few reasons: * `npm run build` will fail in the webpack phase unless you first run `xmodule_assets`. This will be changed soon [2]. * We have tested the new build, but not quite so thoroughly that we'd recommend it as the production default yet. Once the xmodule_assets work lands, we'll share this on the forums so early adopters can try it out. * The commands lack some top-level documentation. Once they stabilize more, we'll add a section to the README that explains how and when to use `npm run build` and its subcommands and its env vars. * `npm run watch` is not yet implemented. References: 1. https://github.com/openedx/edx-platform/blob/master/docs/decisions/0017-reimplement-asset-processing.rst 2. https://github.com/openedx/edx-platform/pull/32685 Part of: https://github.com/openedx/edx-platform/issues/31604
28 lines
1.7 KiB
Plaintext
28 lines
1.7 KiB
Plaintext
# Requirements to run and test Paver
|
|
#
|
|
# DON'T JUST ADD NEW DEPENDENCIES!!!
|
|
#
|
|
# If you open a pull request that adds a new dependency, you should:
|
|
# * verify that the dependency has a license compatible with AGPLv3
|
|
# * confirm that it has no system requirements beyond what we already install
|
|
# * run "make upgrade" to update the detailed requirements files
|
|
#
|
|
|
|
-c ../constraints.txt
|
|
|
|
edx-opaque-keys # Create and introspect course and xblock identities
|
|
lazy # Lazily-evaluated attributes for Python objects
|
|
libsass # Python bindings for the LibSass CSS compiler
|
|
markupsafe # XML/HTML/XHTML Markup safe strings
|
|
mock # Stub out code with mock objects and make assertions about how they have been used
|
|
path # Easier manipulation of filesystem paths
|
|
paver # Build, distribution and deployment scripting tool
|
|
psutil # Library for retrieving information on running processes and system utilization
|
|
pymongo # via edx-opaque-keys
|
|
python-memcached # Python interface to the memcached memory cache daemon
|
|
pymemcache # Python interface to the memcached memory cache daemon
|
|
requests # Simple interface for making HTTP requests
|
|
stevedore # Support for runtime plugins, used for XBlocks and edx-platform Django app plugins
|
|
watchdog # Used in paver watch_assets
|
|
wrapt # Decorator utilities used in the @timed paver task decorator
|