diff --git a/CHANGELOG.md b/CHANGELOG.md index d30f9f678..e940da8f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Makefile b/Makefile index 9810e4120..18e881b12 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 \