-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (64 loc) · 2.21 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
all: build
.PHONY: install
install:
@npm install
.PHONY: bootstrap
bootstrap:
@lerna bootstrap
.PHONY: build
build:
@npm run build
.PHONY: build/client/loopback/demo3a
build/client/loopback/demo3a:
@(cd packages/sc-app-server-demo3a && npm run build:client) && cp packages/sc-app-server-demo3a/client/build/loopback.bundle.js packages/sc-app-frontend-demo3a/public/js/
.PHONY: build/client/loopback/demo4
build/client/loopback/demo4:
@(cd packages/sc-hub-demo4 && npm run build:client) && cp packages/sc-hub-demo4/client/build/loopback.bundle.js packages/sc-app-frontend-demo4/public/js/
.PHONY: build/client/loopback/demo5
build/client/loopback/demo5:
@(cd packages/sc-hub && npm run build:client) && cp packages/sc-hub/client/build/loopback.bundle.js packages/sc-app-frontend-demo5/public/js/
.PHONY: start
start:
@npm run start
.PHONY: start/frontend/demo3a
start/frontend/demo3a:
@(cd packages/sc-app-frontend-demo3a && PORT=8080 npm start)
.PHONY: start/frontend/demo4
start/frontend/demo4:
@(cd packages/sc-app-frontend-demo4 && PORT=8080 npm start)
.PHONY: start/frontend/demo5
start/frontend/demo5:
@(cd packages/sc-app-frontend-demo5 && PORT=8080 npm start)
.PHONY: start/server/demo3a
start/server/demo3a:
@(cd packages/sc-app-server-demo3a && npm start)
.PHONY: start/server/demo5
start/server/demo5:
@(cd packages/sc-app-server-demo5 && PORT=9999 npm start)
.PHONY: start/hub
start/hub:
@(cd packages/sc-hub && npm start)
.PHONY: start/testrpc
start/testrpc:
@ganache-cli -m "purse alien once arrive fitness deposit visa token sun brick intact slam"
.PHONY: deploy/contracts
deploy/contracts:
@(cd packages/channel-contracts && rm -rf build && truffle deploy)
.PHONY: statechannel/open/demo3a
statechannel/open/demo3a:
@./packages/sc-app-server-demo3a/scripts/open_channel.js
.PHONY: test/contracts
test/contracts:
@(cd packages/channel-contracts && truffle test)
.PHONY: test/hub/user
test/hub/user:
@(cd packages/sc-hub && mocha test/user.js)
.PHONY: test/hub/application
test/hub/application:
@(cd packages/sc-hub && mocha test/application.js)
.PHONY: test/hub/channel
test/hub/channel:
@(cd packages/sc-hub && mocha test/channel.js)
.PHONY: test/hub
test/hub:
@(cd packages/sc-hub && mocha test/*.js)