remove dep
This commit is contained in:
parent
38ce24fef9
commit
e23757d46d
13
Makefile
13
Makefile
|
@ -22,16 +22,9 @@ clean:
|
||||||
rm -rf $(BINARY) $(ROUTE_ASSET) $(DOCS_ASSET)
|
rm -rf $(BINARY) $(ROUTE_ASSET) $(DOCS_ASSET)
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
dep ensure
|
|
||||||
go get github.com/jteeuwen/go-bindata/...
|
|
||||||
go get github.com/elazarl/go-bindata-assetfs/...
|
|
||||||
git submodule update
|
git submodule update
|
||||||
cd assets; npm i
|
cd assets; npm i
|
||||||
|
|
||||||
ensure:
|
|
||||||
dep ensure -update
|
|
||||||
dep status
|
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
|
|
||||||
|
@ -49,12 +42,12 @@ $(ROUTE_ASSET): $(ROUTE_FILES)
|
||||||
npm run build; \
|
npm run build; \
|
||||||
cp -r build ../public
|
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)
|
$(DOCS_ASSET): $(DOCS_FILES) $(SOURCE)
|
||||||
echo "$$DUMMY_BINDATA" > src/docs/bindata.go
|
echo "$$DUMMY_BINDATA" > src/docs/bindata.go
|
||||||
export PATH=$$GOPATH/bin:$$PATH; go generate "sour.is/x/paste/cmd/paste"
|
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/src/docs"
|
||||||
|
|
||||||
|
|
||||||
deploy: $(SOURCE) $(ROUTE_ASSET)
|
deploy: $(SOURCE) $(ROUTE_ASSET)
|
||||||
|
|
|
@ -29,11 +29,12 @@ package main // import "sour.is/x/paste/cmd/paste"
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"syscall"
|
||||||
|
|
||||||
_ "sour.is/x/paste/src/docs"
|
_ "sour.is/x/paste/src/docs"
|
||||||
_ "sour.is/x/paste/src/routes"
|
_ "sour.is/x/paste/src/routes"
|
||||||
"sour.is/x/toolbox/httpsrv"
|
"sour.is/x/toolbox/httpsrv"
|
||||||
"sour.is/x/toolbox/log"
|
"sour.is/x/toolbox/log"
|
||||||
"syscall"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -51,4 +52,4 @@ func main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//go:generate swagger generate spec -o ../../src/docs/public/swagger.json
|
//go:generate go run github.com/go-swagger/go-swagger/cmd/swagger generate spec -o ../../src/docs/public/swagger.json
|
||||||
|
|
Loading…
Reference in New Issue
Block a user