Skip to content

Commit bb926f5

Browse files
committed
πŸ§‘β€πŸ’» (makefile) add command to run storybook locally
It helps new contributors to find out how to run the storybook locally.
1 parent 9756dda commit bb926f5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

β€ŽCHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).
1010

1111
### Added
1212

13+
- Add command to run storybook in the Makefile
1314
- Upgrade docker compose to latest version
1415
- Enable CORS Headers
1516
- Add Multilingual

β€ŽMakefile

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ COMPOSE_EXEC = $(COMPOSE) exec
4848
COMPOSE_EXEC_APP = $(COMPOSE_EXEC) app
4949
COMPOSE_EXEC_NODE = $(COMPOSE_EXEC) node
5050
COMPOSE_RUN_APP = $(COMPOSE_RUN) app
51+
COMPOSE_RUN_NODE = $(COMPOSE_RUN) node
5152
COMPOSE_RUN_CROWDIN = $(COMPOSE_RUN) crowdin crowdin
5253
COMPOSE_TEST_RUN = $(COMPOSE) run --rm -e DJANGO_CONFIGURATION=Test
5354
COMPOSE_TEST_RUN_APP = $(COMPOSE_TEST_RUN) app
@@ -124,6 +125,11 @@ test-front:
124125
@$(COMPOSE_RUN) -e HOME="/tmp" -w /app/src/frontend node yarn test
125126
.PHONY:test-front
126127

128+
dev-storybook: ## Run the storybook locally
129+
dev-storybook:
130+
@$(COMPOSE_RUN_NODE) bash -c "cd magnify/packages/components && yarn install && yarn storybook"
131+
.PHONY: dev-storybook
132+
127133
lint-front: ## run all front-end "linters"
128134
lint-front: \
129135
lint-front-eslint \

0 commit comments

Comments
Β (0)