* Simplify make file to address build error * Fixed typo in ref URI * Fixed typo in ref URI * Reverted change * Updated Makefile with new script * Reformatted Makefile * Updated Makefile * Fixed broken ref URI links * Removed old code
19 lines
975 B
Makefile
19 lines
975 B
Makefile
.ONESHELL:
|
|
.DELETE_ON_ERROR:
|
|
export SHELL := bash
|
|
export SHELLOPTS := pipefail:errexit
|
|
MAKEFLAGS += --warn-undefined-variables
|
|
MAKEFLAGS += --no-builtin-rule
|
|
|
|
include docs.mk
|
|
|
|
.PHONY: sources/panels-visualizations/query-transform-data/transform-data/index.md
|
|
sources/panels-visualizations/query-transform-data/transform-data/index.md: ## Generate the Transform Data page source. Create a temporary TypeScript configuration that skips type checking of library files. This avoids errors with third-party type definitions like the Intl.Segmenter issue
|
|
cd $(CURDIR)/.. && \
|
|
echo '{"compilerOptions":{"skipLibCheck":true,"target":"es2020","module":"commonjs","esModuleInterop":true},"include":["./scripts/docs/generate-transformations.ts"]}' > temp-tsconfig.json && \
|
|
npx tsc -p temp-tsconfig.json && \
|
|
node ./scripts/docs/generate-transformations.js > $(CURDIR)/$@ && \
|
|
chmod +x node_modules/.bin/prettier && \
|
|
npx prettier -w $(CURDIR)/$@ && \
|
|
rm temp-tsconfig.json
|