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