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 a0a2adf
Showing 1 changed file with 6 additions and 0 deletions.
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 a0a2adf

Please sign in to comment.