Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ validate: ## Validate a given endpoint request or response
validate-no-cache: ## Validate a given endpoint request or response without local cache
@node compiler/run-validations.js --api $(api) --type $(type) --stack-version $(stack-version) --no-cache

generate: ## Generate the output spec
@echo ">> generating the spec .."
@npm run generate-schema --prefix compiler
@npm run start --prefix typescript-generator

compile: ## Compile the specification
@npm run compile:specification --prefix compiler

license-check: ## Add the license headers to the files
@echo ">> checking license headers .."
.github/check-license-headers.sh
Expand All @@ -20,14 +28,6 @@ spec-format-check: ## Check specification formatting rules
spec-format-fix: ## Format/fix the specification according to the formatting rules
@npm run format:fix --prefix compiler

spec-generate: ## Generate the output spec
@echo ">> generating the spec .."
@npm run generate-schema --prefix compiler
@npm run start --prefix typescript-generator

spec-compile: ## Compile the specification
@npm run compile:specification --prefix compiler

spec-imports-fix: ## Fix the TypeScript imports
@npm run imports:fix --prefix compiler -- --rebuild

Expand All @@ -44,7 +44,7 @@ clean-dep: ## Clean npm dependencies
@rm -rf compiler/node_modules
@rm -rf typescript-generator/node_modules

contrib: | spec-generate license-check spec-format-fix ## Pre contribution target
contrib: | generate license-check spec-format-fix ## Pre contribution target

help: ## Display help
@awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
Expand Down
Loading