Skip to content

Commit

Permalink
Added dev init script, updated Makefile with init command and PHONYs.
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuwei committed Sep 11, 2023
1 parent 7427652 commit 3d74958
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.dll
*.so
*.dylib
.DS_Store

# Test binary, built with `go test -c`
*.test
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
-include .env
export $(shell sed 's/=.*//' .env)

init:
chmod +x init.dev.sh && ./init.dev.sh

lint:
golangci-lint run

Expand All @@ -21,4 +24,6 @@ generate:
-p github.com/dipdup-io/uniswap

test:
go test ./...
go test ./...

.PHONY: init lint generate test
7 changes: 7 additions & 0 deletions init.dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# VCS config
git config --local core.attributesfile ./.gitattributes

# Install third tools
#go install go.uber.org/mock/mockgen@main

0 comments on commit 3d74958

Please sign in to comment.