From e8aafef127ca8fc35095ea882b43cd90ff4d355c Mon Sep 17 00:00:00 2001 From: wgu-jesse-stewart Date: Tue, 29 Jul 2025 09:46:38 -0400 Subject: [PATCH] feat: add dev script to package.json (#1313) * fix: add dev script to package.json * docs: update readme with dev script --- README.rst | 6 ++++++ package.json | 1 + 2 files changed, 7 insertions(+) diff --git a/README.rst b/README.rst index 746829e..0500f29 100644 --- a/README.rst +++ b/README.rst @@ -104,6 +104,12 @@ Cloning and Startup ``npm start`` + Or for local development with custom configuration: + + ``npm run dev`` + + This runs the dev server with PUBLIC_PATH=/account/, MFE_CONFIG_API_URL pointing to localhost:8000, and hosts on apps.local.openedx.io. + Local module development ========================= diff --git a/package.json b/package.json index c495a42..22ead72 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "scripts": { "build": "fedx-scripts webpack", + "dev": "PUBLIC_PATH=/account/ MFE_CONFIG_API_URL='http://localhost:8000/api/mfe_config/v1' fedx-scripts webpack-dev-server --progress --host apps.local.openedx.io", "i18n_extract": "fedx-scripts formatjs extract", "lint": "fedx-scripts eslint --ext .js --ext .jsx .", "lint:fix": "npm run lint -- --fix",