-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
36 lines (29 loc) · 922 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
include .env
API_EOS_CHAIN ?= https://eos.greymass.com
SHELL := /usr/bin/env bash
BIN := ./node_modules/.bin
.PHONY: dev
dev: node_modules
bun run dev --host
.PHONY: check
check: node_modules
bun run check && bun run lint
.PHONY: format
format: node_modules
bun run format
.PHONY: install
install:
@if [ -z "$(package)" ]; then \
echo "Installing all dependencies:"; \
bun install --yarn; \
else \
echo "Installing package: $(package)"; \
bun install --yarn $(package); \
fi
%:
$(MAKE) install package=$*
codegen:
npx @wharfkit/cli generate -u $(API_EOS_CHAIN) -f src/lib/wharf/contracts/system.ts eosio
npx @wharfkit/cli generate -u $(API_EOS_CHAIN) -f src/lib/wharf/contracts/token.ts eosio.token
npx @wharfkit/cli generate -u $(API_EOS_CHAIN) -f src/lib/wharf/contracts/msig.ts eosio.msig
npx @wharfkit/cli generate -u $(API_EOS_CHAIN) -f src/lib/wharf/contracts/delphioracle.ts delphioracle