Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
refactor: run yarn install before make commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Negin-Ulster committed Mar 23, 2022
1 parent 5bea56c commit c905c58
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ install:
yarn install

.PHONY: deploy-release-dry
deploy-release-dry:
deploy-release-dry: install
yarn monodeploy \
--config-file monodeploy.config.js \
--log-level 0 \
--dry-run

.PHONY: deploy-release
deploy-release:
deploy-release: install
yarn monodeploy \
--config-file monodeploy.config.js \
--log-level 0 \
Expand All @@ -40,9 +40,9 @@ endif
ESLINT_ARGS=--max-warnings 0 $(ESLINT_EXTRA_ARGS)

.PHONY: lint
lint:
lint: install
yarn eslint $(ESLINT_ARGS) .

.PHONY: lint-fix
lint-fix:
lint-fix: install
yarn eslint $(ESLINT_ARGS) --fix .
18 changes: 13 additions & 5 deletions service/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@ ifeq ($(shell uname -m),aarch64)
ARCH ?= arm
endif

.PHONY: install
install: clean
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn install
.PHONY: terraform-dependencies
terraform-dependencies:
echo $(TERRAFORM_VERSION)
curl -L -o terraform.zip "https://releases.hashicorp.com/terraform/$(TERRAFORM_VERSION)/terraform_$(TERRAFORM_VERSION)_$(OS)_${ARCH}.zip"
unzip terraform.zip -d .cache
rm terraform.zip

.PHONY: dependencies
dependencies:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn install

.PHONY: install
install: clean
make terraform-dependencies
make dependencies

# ----- Helpers -----

.PHONY: clean
Expand All @@ -37,11 +45,11 @@ clean:
-@rm -rf .cache

.PHONY: typecheck
typecheck:
typecheck: dependencies
yarn workspace sanity-runner-service tsc -p tsconfig.json --noEmit

.PHONY: bundle
bundle: typecheck
bundle: dependencies typecheck
-@rm -rf dist
@mkdir -p dist
yarn workspace sanity-runner-service \
Expand Down

0 comments on commit c905c58

Please sign in to comment.