...
- Our preference is to install all JavaScript libraries using npm
- See if it can be found here: https://www.npmjs.com/
- If so, update edx-platform's
package.json
file to reference the library- Be sure to use the "~" prefix for the version to allow patches to be picked up automatically
- For more details about versioning, see: http://semver.org/
Execute the following to have your library installed:
No Format paver install_prereqs
- Add your new library to the list of NPM-installed libraries:
Execute the following to have your library available as a Django static asset (choose LMS or Studio or both as appropriate):
No Format paver update_assets lms --settings=devstack
Run `paver update_assets`
To add to LMS:
- Add to the `lms/env/common.py` at https://github.com/edx/edx-platform/blob/master/lms/envs/common.py#L1246
- Add to the `lms/static/js/require-config.js` at https://github.com/edx/edx-platform/blob/master/lms/static/lms/js/require-config.js#L51
...