mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-27 02:34:52 -06:00
b1eb646ddc
* Update baseline-browser-mapping to version 2.9.19 Addresses issue in build [baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: `npm i baseline-browser-mapping@latest -D` Signed-off-by: Charlie Egan <charlie_egan@apple.com> * Add fmt and lint config for docs This is based on dprint and eslint. Some vendored paths are ignored. Signed-off-by: Charlie Egan <charlie_egan@apple.com> * Format and lint docs project Markdown linting will be added in another PR. Signed-off-by: Charlie Egan <charlie_egan@apple.com> --------- Signed-off-by: Charlie Egan <charlie_egan@apple.com>
51 lines
753 B
Makefile
51 lines
753 B
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 .
|