Skip to content

Latest commit

 

History

3,328 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Open edX frontend framework

This library is part of a project to create a reference implementation of OEP-65: Frontend Composability.

In practice, it's a replacement for some of the foundational libraries in the Open edX frontend. In particular:

It takes over responsibility for the functionality of those libraries, and also includes a "shell" application.

Furthermore, it enables Open edX frontends to be loaded as "direct plugins" as part of a single, unified application, while also supporting creation of "site" repositories as a central place to check in an Open edX instance's frontend customizations and extensions.

Migrating an MFE to frontend-base

For a step-by-step guide on converting an MFE into a frontend-base app, refer to the Frontend App Migration How To. It is the authoritative reference on the conversion process.

Note that the existing Open edX MFEs are being ported over to frontend-base gradually. For an up-to-date reference of the apps that have already undergone the process, see the app dependencies in frontend-template-site's package.json.

Development

For prototyping changes to the library, this repository includes a self-contained dev mode. Run npm run dev to build frontend-base and start its bundled dev shell, which serves a minimal site from the source files directly, so you can iterate without a separate site checkout. The dev site will be available at http://apps.local.openedx.io:8080.

Once the change matures, we recommend moving over to the pre-configured npm workspaces in a local checkout of frontend-template-site. This will allow you to test changes against multiple real-world apps.

To do so, check this repository out into the site's packages/ directory. Then, run npm run dev:packages from the site's root directory: this will watch-build any workspace check-outs and start the dev server, picking up changes automatically. If any apps (such as frontend-app-instructor-dashboard) require corresponding changes, you can check them out into the packages/ directory as siblings to frontend-base. See Local development with workspaces for full setup details.

Continuous integration

In addition to running lint and the test suite, Github CI builds the included test-site against a packed tarball of frontend-base. This verifies that the library still works end-to-end as a real dependency of a consuming site.

If a change requires corresponding updates to a consuming site (for example, new or changed configuration, exports, or APIs), update test-site as part of your pull request so that CI continues to pass.

Releases

This library is published to npm by semantic-release, and its branches follow OEP-10 ADR 0002: Frontend Stable Branches:

  • main is unstable. Every merge publishes a prerelease on the alpha dist-tag. Breaking changes land here with no DEPR process and no warning, so it is not supported in production. All changes, including bug fixes, should target this branch first.
  • stable carries the newest stable major and owns the latest dist-tag. Changes arrive here as backports from main, and no breaking change lands after publication.
  • n.x and n.m.x are maintenance branches for majors and minors that stable has moved past. Each owns the dist-tag matching its own name, so consumers select a maintained line by semver range, for example "1.x".

Both .releaserc and the Release CI workflow already know the whole layout, including the maintenance branch patterns, so a new line starts publishing as soon as it is pushed.

This repository is not branched or tagged for Open edX releases in its own right. It participates by published version instead, per OEP-10 ADR 0003: Frontend Release Strategy.

Further reading

Communication

You can follow ongoing progress on the project's Github project board.

Feel free to reach out in #wg-frontend on Slack with any questions.

Releases

Packages

Used by

Contributors

Languages