-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 810 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
# SPDX-FileCopyrightText: 2022 Brian Welty
#
# SPDX-License-Identifier: MPL-2.0
#
# simple Makefile to assist with go/yarn/webpack
#
build: client server
first-time:
brew install golang yarn
first-time-ubuntu:
# first need to add yarn apt repository
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo sh -c 'echo "deb https://dl.yarnpkg.com/debian/ stable main" >> /etc/apt/sources.list.d/yarn.list'
sudo apt install golang-go yarn
deps:
go get .
yarn install
upgrade-deps:
go get -u
yarn upgrade
js:
yarn run webpack --config javascript/webpack.dev.js
js-prod:
yarn run webpack --config javascript/webpack.prod.js
client: js-prod
server:
go build
install: deps build
go install
coverage:
go test -v -coverpkg=./... ./test/...
testing:
go test -v ./test/...