Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» (makefile) add command to run storybook locally
Browse files Browse the repository at this point in the history
It helps new contributors to find out how to run the storybook locally.
  • Loading branch information
RaoufCherif committed May 11, 2023
1 parent 9756dda commit bb926f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).

### Added

- Add command to run storybook in the Makefile
- Upgrade docker compose to latest version
- Enable CORS Headers
- Add Multilingual
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ COMPOSE_EXEC = $(COMPOSE) exec
COMPOSE_EXEC_APP = $(COMPOSE_EXEC) app
COMPOSE_EXEC_NODE = $(COMPOSE_EXEC) node
COMPOSE_RUN_APP = $(COMPOSE_RUN) app
COMPOSE_RUN_NODE = $(COMPOSE_RUN) node
COMPOSE_RUN_CROWDIN = $(COMPOSE_RUN) crowdin crowdin
COMPOSE_TEST_RUN = $(COMPOSE) run --rm -e DJANGO_CONFIGURATION=Test
COMPOSE_TEST_RUN_APP = $(COMPOSE_TEST_RUN) app
Expand Down Expand Up @@ -124,6 +125,11 @@ test-front:
@$(COMPOSE_RUN) -e HOME="/tmp" -w /app/src/frontend node yarn test
.PHONY:test-front

dev-storybook: ## Run the storybook locally
dev-storybook:
@$(COMPOSE_RUN_NODE) bash -c "cd magnify/packages/components && yarn install && yarn storybook"
.PHONY: dev-storybook

lint-front: ## run all front-end "linters"
lint-front: \
lint-front-eslint \
Expand Down

0 comments on commit bb926f5

Please sign in to comment.