-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
26 lines (23 loc) · 856 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
# Define the shell used
SHELL := /bin/bash
# Default target executed when no arguments are given to make
.PHONY: all
all: update deploy
# Target for updating data
.PHONY: update
update:
@echo "Updating data..."
cd data && tsc
node --experimental-specifier-resolution=node ./data/build/lastUpdatedTime.js || exit $?
node --experimental-specifier-resolution=node ./data/build/fetchContractCounts.js || exit $?
# fetch all safes
node --experimental-specifier-resolution=node ./data/build/fetchContract.js || exit $?
node --experimental-specifier-resolution=node ./data/build/processContracts.js || exit $?
node --experimental-specifier-resolution=node ./data/build/postProcessContracts.js || exit $?
@echo "Building..."
cd ui && npm run build
# Target for building and deploying UI
.PHONY: deploy
deploy:
@echo "Deploying UI..."
npm run deploy