feat: add dev script to package.json (#1313)

* fix: add dev script to package.json

* docs: update readme with dev script
This commit is contained in:
wgu-jesse-stewart
2025-07-29 09:46:38 -04:00
committed by GitHub
parent cf451770ed
commit e8aafef127
2 changed files with 7 additions and 0 deletions

View File

@@ -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
=========================

View File

@@ -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",