Skip to content

Commit

Permalink
Add package.json file and install target.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsomething authored and hilary committed Jul 20, 2020
1 parent 4e8d1f2 commit 59b9e45
Show file tree
Hide file tree
Showing 3 changed files with 1,492 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ DO_TOKEN ?= XXXXXX
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.PHONY: dev-dependencies
dev-dependencies: ## Install development tooling using npm
npm install --only=dev

.PHONY: start-mockedproxy
start-mockedproxy: ## Start a prism proxy (port 8080) targeting a local mock api (port 4010)
PROXY_TARGET=$(PROXY_TARGET) docker-compose up -d
Expand All @@ -41,5 +45,5 @@ test: start-mockedproxy _sleep ## Run Postman collection against local proxy wit
--reporter-json-export newman-results.json

.PHONY: lint
lint: ## Lint the OpenAPI spec using Spectral
spectral lint ${SPEC_FILE}
lint: dev-dependencies ## Lint the OpenAPI spec using Spectral
npm run lint
Loading

0 comments on commit 59b9e45

Please sign in to comment.