Skip to content

Commit 319695f

Browse files
arbrandesclaude
andcommitted
feat: support npm workspaces for local development
Add workspaces configuration and workspace-aware scripts for developing with a local frontend-base. Decouple clean from build in the Makefile so watch mode can rebuild without wiping dist/. Part of openedx/frontend-base#184 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9734e01 commit 319695f

5 files changed

Lines changed: 325 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ npm-debug.log
33
coverage
44
module.config.js
55
dist/
6+
packages/
67
/*.tgz
78

89
### i18n ###

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ requirements: ## install ci requirements
3232
clean:
3333
rm -rf dist
3434

35-
build: clean
35+
build:
3636
tsc --project tsconfig.build.json
3737
find src -type f \( -name '*.scss' -o \( \( -name '*.png' -o -name '*.svg' \) -path '*/assets/*' \) \) -exec sh -c '\
3838
for f in "$$@"; do \

nodemon.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"watch": [
3+
"src"
4+
],
5+
"ext": "js,jsx,ts,tsx,scss,png,svg"
6+
}

0 commit comments

Comments
 (0)