-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (33 loc) · 971 Bytes
/
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
export
.PHONY: dev-build dev-start clean
DEV_DC = docker-compose -p casperexplorer -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.prod.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 app && npm install
frontend-ci-install:
cd app && npm ci
frontend-audit:
cd app && npm run audit
frontend-lint:
cd app && npm run lint
frontend-test:
cd app && npm run test
nightly-npm-install: frontend-ci-install
nightly-npm-tests: frontend-test