blob: 200351918f34899cceb3f8b80c706bf99c2ffdf3 [file] [log] [blame]
include ../make/bazel.mk
PORT?=:8000
PROM_PORT?=:20000
build:
${BAZEL} build go/... modules/... pages/...
release: build
${BAZEL} run //scrap:push_scrapexchange_container
testgo:
go test ./go/...
testjs:
${BAZEL} test modules/...
serve:
@echo "Bazel doesn't have a serve-all option."
@echo "For the module under development, try running something like:"
@echo "bazel run modules/scrap-exchange-sk:demo_page_server"
run-local-instance: build
# Run "bazel build //scrap/..." after making any frontend changes
# to pick up the change without restarting the golang server.
../_bazel_bin/scrap/go/scrapexchange/scrapexchange_/scrapexchange --local \
--port $(PORT) --prom_port $(PROM_PORT) \
--resources_dir ../_bazel_bin/scrap/pages/development \
--bucket=skia-public-scrap-exchange