forked from casper-network/casper-blockexplorer-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (40 loc) · 1.25 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
.PHONY: dev-build dev-start clean
DEV_DC = docker-compose -p casperexplorer -f docker/docker-compose.yml -f docker/docker-compose.dev.yml --env-file ./.env
TEST_DC = docker-compose -p cypress-blockexplorer -f docker/docker-compose.yml -f docker/docker-compose.dev.yml -f docker/docker-compose.cy-test.yml --env-file ./.env
PROD_DC = docker-compose -f docker/docker-compose.yml --env-file ./.env
dev-build:
$(DEV_DC) build
dev-start:
$(DEV_DC) up
cy-test:
$(TEST_DC) up --exit-code-from cypress
cy-build:
$(TEST_DC) build
prod-build:
$(PROD_DC) build
prod-start:
$(PROD_DC) up
clean:
$(PROD_DC) stop
$(DEV_DC) stop
frontend-all: frontend-install frontend-audit frontend-lint frontend-test
frontend-install:
cd frontend && npm install
frontend-audit:
cd frontend && npm audit
frontend-lint:
cd frontend && npm run lint
frontend-test:
cd frontend && npm run test
middleware-all: middleware-install middleware-audit middleware-lint middleware-test
middleware-install:
cd middleware && npm install
middleware-audit:
cd middleware && npm audit
middleware-lint:
cd middleware && npm run lint
middleware-test:
cd middleware && npm run test
nightly-npm-install: frontend-install middleware-install
nightly-npm-tests: frontend-test middleware-test