Skip to content

build: support use as an npm workspace package - #4442

Open
arbrandes wants to merge 4 commits into
openedx:release-23.xfrom
arbrandes:arbrandes/workspace-package-support
Open

build: support use as an npm workspace package#4442
arbrandes wants to merge 4 commits into
openedx:release-23.xfrom
arbrandes:arbrandes/workspace-package-support

Conversation

@arbrandes

@arbrandes arbrandes commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Description

Paragon cannot currently be developed as a packages/ workspace of a site built on frontend-base, which is how frontend-base and the MFEs themselves are developed. Three small things get in the way, all fixed here. Closes #4440.

The Makefile called ./node_modules/.bin/babel directly, which does not exist under workspace hoisting. It now resolves babel from PATH, the way the tsc line above it already does.

A clean target plus clean and watch:build scripts give npm run clean:packages and npm run dev:packages something to call, instead of silently no-opping for Paragon.

The checked-in version becomes 0.0.0-dev, like every other Open edX frontend repo, leaving the real version to the release process. 20.18.1 on release-23.x is stale regardless, since semantic-release never commits the bump back.

Compiling the stylesheets takes about three minutes here, against four seconds for everything else, so the build is now split into build-js and build-scss, with the latter keyed on its scss and theme inputs. build still cleans and does everything; watch:build uses build-incremental, which skips the stylesheets unless they changed.

LLM usage notice

Built with assistance from Claude.

@netlify

netlify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploy Preview for paragon-openedx-v23 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e392b0b
🔍 Latest deploy log https://app.netlify.com/projects/paragon-openedx-v23/deploys/6a98a059db6e050008f0367c
😎 Deploy Preview https://deploy-preview-4442--paragon-openedx-v23.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.25%. Comparing base (99eda14) to head (e392b0b).
⚠️ Report is 3 commits behind head on release-23.x.

Additional details and impacted files
@@              Coverage Diff              @@
##           release-23.x    #4442   +/-   ##
=============================================
  Coverage         94.25%   94.25%           
=============================================
  Files               242      242           
  Lines              4301     4301           
  Branches            992     1031   +39     
=============================================
  Hits               4054     4054           
+ Misses              243      238    -5     
- Partials              4        9    +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Resolve babel from PATH, add clean and watch:build, and report 0.0.0-dev
as the checked-in version.

Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes
arbrandes force-pushed the arbrandes/workspace-package-support branch 2 times, most recently from 2aeb09c to 2a7da1f Compare September 2, 2026 19:37
Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes
arbrandes force-pushed the arbrandes/workspace-package-support branch 2 times, most recently from 159889a to 7496a5e Compare September 2, 2026 21:42
arbrandes and others added 2 commits September 2, 2026 19:01
Co-Authored-By: Claude <noreply@anthropic.com>
Split the build into build-js and build-scss, the latter keyed on its
scss and theme inputs, and point watch:build at the incremental target.
Compiling the stylesheets takes minutes; the JavaScript takes seconds.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support developing Paragon as a workspace package

1 participant