mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
f8c50574d8
This allows us to show the results of example evaluation before the user clicks evaluate, but also for chatbots to see the output when viewing without interaction. Signed-off-by: Charlie Egan <charlie_egan@apple.com>
76 lines
1.2 KiB
Makefile
76 lines
1.2 KiB
Makefile
.PHONY: install
|
|
install:
|
|
npm install
|
|
|
|
.PHONY: ci
|
|
ci:
|
|
npm ci
|
|
|
|
.PHONY: dev
|
|
dev:
|
|
# --no-open means that the browser will not be opened on start.
|
|
# This is done to avoid opening many tabs repeatedly when editing
|
|
# docusaurus.config.js.
|
|
npx docusaurus start --no-open
|
|
|
|
.PHONY: build
|
|
build:
|
|
npx docusaurus build
|
|
|
|
.PHONY: build-latest
|
|
build-latest:
|
|
./bin/build-latest.sh
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf build .docusaurus
|
|
|
|
.PHONY: generate-cli-docs
|
|
generate-cli-docs:
|
|
$(CURDIR)/../build/gen-cli-docs.sh > $(CURDIR)/src/data/cli.json
|
|
|
|
.PHONY: smoke-test
|
|
smoke-test:
|
|
./bin/smoke-test.sh
|
|
|
|
.PHONY: fmt
|
|
fmt:
|
|
npx dprint fmt
|
|
|
|
.PHONY: fmt-check
|
|
fmt-check:
|
|
npx dprint check
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
npx eslint --fix .
|
|
|
|
.PHONY: lint-check
|
|
lint-check:
|
|
npx eslint .
|
|
|
|
.PHONY: markdownlint
|
|
markdownlint:
|
|
npx markdownlint-cli2 --fix
|
|
|
|
.PHONY: markdownlint-check
|
|
markdownlint-check:
|
|
npx markdownlint-cli2
|
|
|
|
.PHONY: spell-check
|
|
spell-check:
|
|
vale --config=.vale.ini .
|
|
|
|
.PHONY: gen
|
|
gen:
|
|
./bin/eval-examples.sh
|
|
|
|
.PHONY: gen-check
|
|
gen-check:
|
|
./bin/eval-examples.sh
|
|
@if [ -n "$$(git status --porcelain)" ]; then \
|
|
echo "Error: working directory is not clean after running gen"; \
|
|
git diff; \
|
|
exit 1; \
|
|
fi
|