blob: 3e27ecd99a70627ed65d08938d94a57cc9dea43b [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 --cluster=skia-public 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
test:
go test ./go/...
package-lock.json: package.json
npm install