remove dep

This commit is contained in:
Jon
2020-08-16 09:18:52 -06:00
parent 38ce24fef9
commit e23757d46d
2 changed files with 6 additions and 12 deletions

View File

@@ -22,16 +22,9 @@ clean:
rm -rf $(BINARY) $(ROUTE_ASSET) $(DOCS_ASSET)
setup:
dep ensure
go get github.com/jteeuwen/go-bindata/...
go get github.com/elazarl/go-bindata-assetfs/...
git submodule update
cd assets; npm i
ensure:
dep ensure -update
dep status
fmt:
go fmt ./...
@@ -49,12 +42,12 @@ $(ROUTE_ASSET): $(ROUTE_FILES)
npm run build; \
cp -r build ../public
export PATH=$$GOPATH/bin:$$PATH; go generate "sour.is/x/paste/src/routes"
go generate "sour.is/x/paste/src/routes"
$(DOCS_ASSET): $(DOCS_FILES) $(SOURCE)
echo "$$DUMMY_BINDATA" > src/docs/bindata.go
export PATH=$$GOPATH/bin:$$PATH; go generate "sour.is/x/paste/cmd/paste"
export PATH=$$GOPATH/bin:$$PATH; go generate "sour.is/x/paste/src/docs"
go generate "sour.is/x/paste/cmd/paste"
go generate "sour.is/x/paste/src/docs"
deploy: $(SOURCE) $(ROUTE_ASSET)