forked from Election-Tech-Initiative/electionguard-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (34 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.PHONY: install build start test lint storybook build-storybook docker-dev-app docker-dev-storybook docker-dev-all
install:
yarn install
yarn bootstrap
build:
yarn build
start:
yarn start
start-with-storybook:
yarn start-with-storybook
test:
yarn test
lint:
yarn lint
storybook:
yarn storybook
build-storybook:
yarn build-storybook
npm-version:
yarn npm-version
npm-publish:
yarn npm-publish
# Docker
docker-dev-app:
@echo 🐳 Running app in Docker with live reload 🚀
# COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose build --no-cache app
# COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up app
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up --build app
docker-dev-storybook:
@echo 🐳 Running storybook in Docker with live reload 📚
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up --build storybook
docker-dev-all:
@echo 🐳 Running app and storybook in Docker with live reload 🚀📚
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up --build