-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 649 Bytes
/
Makefile
File metadata and controls
54 lines (40 loc) · 649 Bytes
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
.SILENT:
.PHONY: test
# Install dependencies
install:
npm install
go get all
# Update dependencies
update:
npm update
go get -u all
# Launch client dev server
start:
npm run start
# Launch client watcher
watch:
npm run watch
# Build lib
build:
npm run build
# Launch NodeJS demo server
server-node:
node ./demo/server.js 8002
## Launch Golang demo server
server-go:
go run demo/server.go
# Lint and code style fix
lint: lint-js lint-go
lint-js:
npm run lint
lint-go:
gofmt -s -w .
# Test
test: test-js test-go
test-js:
npm run test
test-go:
go test ./go/...
# Publish package
publish: build
npm publish . --access public