@openedx/frontend-base 1.0.0-alpha.10 → 1.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +27 -0
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -67,6 +67,33 @@ npm run dev
67
67
 
68
68
  The development site will be available at `http://apps.local.openedx.io:8080`.
69
69
 
70
+ ### Developing an app and `frontend-base` concurrently
71
+
72
+ Concurrent development with `frontend-base` uses a tarball-based workflow rather than traditional local linking approaches. See [test-site/tools/autoinstall/README.md](./test-site/tools/autoinstall/README.md) for details.
73
+
74
+ #### In `frontend-base`
75
+
76
+ This watches for changes in `frontend-base` and rebuilds the packaged tarball on each change.
77
+
78
+ ```sh
79
+ nvm use
80
+ npm ci
81
+ npm run dev:pack
82
+ ```
83
+
84
+ #### In the consuming application
85
+
86
+ > [!NOTE]
87
+ > This assumes the consuming application has the same tooling as [test-site/tools/autoinstall/](./test-site/tools/autoinstall/)
88
+
89
+ This watches for changes to the generated .tgz, installs the updated package, and restarts the dev server.
90
+
91
+ ```sh
92
+ nvm use
93
+ npm ci
94
+ npm run dev:autoinstall
95
+ ```
96
+
70
97
  ## Migrating an MFE to `frontend-base`
71
98
 
72
99
  See the [Frontend App Migration How To](./docs/how_tos/migrate-frontend-app.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/frontend-base",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.11",
4
4
  "description": "Build tools, setup and config for frontend apps",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -26,7 +26,10 @@
26
26
  "docs:watch": "nodemon -w runtime -w docs/template -w README.md -e js,jsx,ts,tsx --exec npm run docs",
27
27
  "lint": "eslint .; npm run lint:tools; npm --prefix ./test-site run lint",
28
28
  "lint:tools": "cd ./tools && eslint . && cd ..",
29
- "test": "jest"
29
+ "test": "jest",
30
+ "pack:local": "mkdir -p pack && npm pack --silent --pack-destination pack >/dev/null && mv \"$(ls -t pack/*.tgz | head -n 1)\" pack/openedx-frontend-base.tgz",
31
+ "build:pack": "make build && npm run pack:local",
32
+ "dev:pack": "nodemon --config nodemon.pack.json"
30
33
  },
31
34
  "repository": {
32
35
  "type": "git",