blob: ece435731027c10348cf599b67617852f13eb807 [file] [log] [blame]
default: build package-lock.json
npx webpack --mode=development
build:
go install ./go/hashtag
release: package-lock.json
npx webpack --mode=production
CGO_ENABLED=0 GOOS=linux go install -a ./go/hashtag
./build_release
push: release
pushk hashtag
watch: package-lock.json
npx webpack --mode=development --watch
run: build
# To run locally download the service account and point to it via the
# GOOGLE_APPLICATION_CREDENTIALS environment variable.
GOOGLE_APPLICATION_CREDENTIALS=${HOME}/.hashtag_creds hashtag --local --logtostderr
test:
go test ./go/...
package-lock.json: package.json
npm install
.PHONY: build-frontend-ci
build-frontend-ci:
npm ci
npx webpack --mode=production