-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
33 lines (24 loc) · 854 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
BIN="./node_modules/.bin"
BUF_VERSION=1.8.0
OS = $(shell uname -s)
OS_ARCH = $(shell uname -m)
node_modules/.bin/buf:
curl -sSL https://github.com/bufbuild/buf/releases/download/v$(BUF_VERSION)/buf-$(OS)-$(OS_ARCH) -o node_modules/.bin/buf
chmod +x node_modules/.bin/buf
buf-lint: node_modules/.bin/buf
./node_modules/.bin/buf lint proto/
buf-build: node_modules/.bin/buf
./node_modules/.bin/buf build proto/
buf-breaking: node_modules/.bin/buf
./node_modules/.bin/buf breaking proto/ --against 'https://github.com/decentraland/protocol.git#subdir=proto'
test: buf-lint
bash scripts/test.sh
all: buf-lint buf-build test
install:
npm i
rm -rf proto/google || true
cp -r node_modules/protobufjs/google proto/google
list-components-ids:
@bash scripts/list-components-ids.sh
check-component-id:
@bash scripts/check-component-id.sh $(ID)