Skip to content

Commit

Permalink
Support local webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
yudai committed Oct 3, 2017
1 parent 0bb62e0 commit 9ac120a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ BUILD_OPTIONS = -ldflags "-X main.Version=$(VERSION) -X main.CommitID=$(GIT_COMM
gotty: main.go server/*.go webtty/*.go backend/*.go Makefile
godep go build ${BUILD_OPTIONS}

.PHONY: asset
asset: bindata/static/js/gotty-bundle.js bindata/static/index.html bindata/static/favicon.png bindata/static/css/index.css bindata/static/css/xterm.css bindata/static/css/xterm_customize.css
go-bindata -prefix bindata -pkg server -ignore=\\.gitkeep -o server/asset.go bindata/...
gofmt -w server/asset.go

.PHONY: all
all: asset gotty

bindata:
Expand Down Expand Up @@ -47,11 +49,13 @@ js/node_modules/xterm/dist/xterm.css:
cd js && \
npm install

js/dist/gotty-bundle.js: js/src/*
js/dist/gotty-bundle.js: js/src/* js/node_modules/webpack
cd js && \
webpack

`npm bin`/webpack

js/node_modules/webpack:
cd js && \
npm install

tools:
go get github.com/tools/godep
Expand Down

0 comments on commit 9ac120a

Please sign in to comment.