Use webpack & eslint from node_modules dir that we manage

This commit is contained in:
Łukasz Mierzwa
2017-08-04 14:28:01 -07:00
parent c8ef373b59
commit 13703d0616
2 changed files with 24 additions and 24 deletions

View File

@@ -50,7 +50,7 @@ endif
touch $@
bindata_assetfs.go: .build/deps.ok .build/bindata_assetfs.$(GO_BINDATA_MODE) $(ASSET_SOURCES) webpack.config.js
webpack -p
$(CURDIR)/node_modules/.bin/webpack -p
go-bindata-assetfs $(GO_BINDATA_FLAGS) -prefix assets -nometadata assets/templates/... assets/static/dist/...
$(NAME): .build/deps.ok bindata_assetfs.go $(SOURCES)
@@ -92,7 +92,7 @@ run-docker: docker-image
.PHONY: lint
lint: .build/deps.ok
golint ./... | (egrep -v "^vendor/|^bindata_assetfs.go" || true)
eslint --quiet assets/static/*.js
$(CURDIR)/node_modules/.bin/eslint --quiet assets/static/*.js
.PHONY: test
test: lint bindata_assetfs.go

File diff suppressed because one or more lines are too long