blob: 678a2b75932d15de224b9763dc97f59c5ce98960 [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