From ae0a4a84b93dcb2d08a24ed7406ea96a49cf2178 Mon Sep 17 00:00:00 2001 From: codephenix4 Date: Thu, 11 May 2023 10:30:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB(makefile)=20a?= =?UTF-8?q?dd=20command=20to=20run=20storybook=20locally?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It helps new contributors to find out how to run the storybook locally. --- CHANGELOG.md | 1 + Makefile | 6 ++++++ 2 files changed, 7 insertions(+) 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 \