-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
61 lines (43 loc) · 1.43 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
51
52
53
54
55
56
57
58
59
60
61
.EXPORT_ALL_VARIABLES:
ENV ?= dev
PROJECT_NAME := metamask-web-utils
ROOT_DIR := $(CURDIR)
FRONTEND_DIR := ${ROOT_DIR}
DISABLE_ESLINT_PLUGIN=true
SKIP_PREFLIGHT_CHECK=true
DOKKU_SSH_PROFILE ?= dokku.greate
DOKKU_APP ?= ${PROJECT_NAME}-${ENV}
code/check:
@yarn run code:check
code/autofix:
@yarn run code:fix
code/generate:
@yarn run generate
icon/generate/%:
inkscape ./src/logo.svg --export-filename ./public/logo$*.png --export-height $* --export-width $*
icon/generate:
@make icon/generate/16
@make icon/generate/32
@make icon/generate/64
@make icon/generate/192
@make icon/generate/512
convert ./public/logo16.png ./public/logo32.png ./public/logo64.png ./public/logo192.png ./public/logo512.png ./public/favicon.ico
run:
@yarn run start
install:
@yarn install
dokku/init:
git remote add ${DOKKU_APP} ${DOKKU_SSH_PROFILE}:${DOKKU_APP} || true
ssh ${DOKKU_SSH_PROFILE} apps:create ${DOKKU_APP} || true
@echo "WARNING:be aware to link and GRAPHQL entpoint using the command 'make dokku/link/endpoint'"
dokku/link/endpoint:
@read -p "Enter GraphQL URL: " URI \
&& ssh ${DOKKU_SSH_PROFILE} config:set ${DOKKU_APP} REACT_APP_GQL_URI="$${URI}" --no-restart
dokku/enable/letsencrypt:
ssh ${DOKKU_SSH_PROFILE} letsencrypt:enable ${DOKKU_APP}
dokku/remove:
ssh ${DOKKU_SSH_PROFILE} apps:destroy ${DOKKU_APP} --force || true
dokku/logs:
ssh ${DOKKU_SSH_PROFILE} logs ${DOKKU_APP}
dokku/deploy:
git push ${DOKKU_APP} HEAD:master -f