-
Notifications
You must be signed in to change notification settings - Fork 189
/
Makefile
55 lines (37 loc) · 870 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
51
52
53
54
55
# Installation commands
.PHONY: yarn docker-start docker-stop init develop
# Commands to use remix
.PHONY: remix
# Test commands
.PHONY: test coverage
# Linting commands
.PHONY: test-lint lint
# Executables
NODE_MODULES=./node_modules
BIN=$(NODE_MODULES)/.bin
TRUFFLE=$(BIN)/truffle
yarn:
@yarn install
start-ganache:
docker run -p 7545:8545 --name ganache-cli --rm -d trufflesuite/ganache-cli:latest -d -e 1000 -g 0xfffffffffff
stop-ganache:
docker stop ganache-cli
init: yarn start-ganache
develop: start-ganache
stop-develop: stop-ganache
start-remixd:
@yarn run remixd
open-remix-ide:
@open http://localhost:8080
remix:
@yarn run remix
test:
@$(TRUFFLE) test --network development
run-coverage:
@yarn run coverage
coverage: run-coverage
@python -mwebbrowser coverage/index.html
test-lint:
@yarn run lint:all
lint:
@yarn run lint:all:fix