Updated makefile
This commit is contained in:
parent
06ccc6d825
commit
41d6c55d22
56
Makefile
56
Makefile
@ -1,18 +1,62 @@
|
|||||||
.DEFAULT_GOAL := default
|
.DEFAULT_GOAL := default
|
||||||
|
|
||||||
IMAGE := docker.cloud.cluster.fun/averagemarcus/website-to-remarkable:latest
|
IMAGE := docker.cluster.fun/averagemarcus/website-to-remarkable:latest
|
||||||
|
|
||||||
|
.PHONY: test # Run all tests, linting and format checks
|
||||||
|
test: lint check-format run-tests
|
||||||
|
|
||||||
|
.PHONY: lint # Perform lint checks against code
|
||||||
|
lint:
|
||||||
|
@echo "⚠️ 'lint' unimplemented"
|
||||||
|
|
||||||
|
.PHONY: check-format # Checks code formatting and returns a non-zero exit code if formatting errors found
|
||||||
|
check-format:
|
||||||
|
@echo "⚠️ 'check-format' unimplemented"
|
||||||
|
|
||||||
|
.PHONY: format # Performs automatic format fixes on all code
|
||||||
|
format:
|
||||||
|
@echo "⚠️ 'format' unimplemented"
|
||||||
|
|
||||||
|
.PHONY: run-tests # Runs all tests
|
||||||
|
run-tests:
|
||||||
|
@echo "⚠️ 'run-tests' unimplemented"
|
||||||
|
|
||||||
|
.PHONY: fetch-deps # Fetch all project dependencies
|
||||||
|
fetch-deps:
|
||||||
|
@echo "⚠️ 'fetch-deps' unimplemented"
|
||||||
|
@npm install
|
||||||
|
|
||||||
|
.PHONY: build # Build the project
|
||||||
|
build: lint check-format fetch-deps
|
||||||
|
@echo "⚠️ 'build' unimplemented"
|
||||||
|
|
||||||
.PHONY: docker-build # Build the docker image
|
.PHONY: docker-build # Build the docker image
|
||||||
docker-build:
|
docker-build:
|
||||||
@docker build -t $(IMAGE) .
|
@docker build -t $(IMAGE) .
|
||||||
|
|
||||||
.PHONY: publish # Publish the docker image to the Artifactory registry
|
.PHONY: docker-publish # Push the docker image to the remote registry
|
||||||
publish:
|
docker-publish:
|
||||||
@docker push $(IMAGE)
|
@docker push $(IMAGE)
|
||||||
|
|
||||||
|
.PHONY: run # Run the application
|
||||||
|
run:
|
||||||
|
@npm start
|
||||||
|
|
||||||
|
.PHONY: ci # Perform CI specific tasks to perform on a pull request
|
||||||
|
ci:
|
||||||
|
@echo "⚠️ 'ci' unimplemented"
|
||||||
|
|
||||||
|
.PHONY: release # Release the latest version of the application
|
||||||
|
release:
|
||||||
|
@echo "⚠️ 'release' unimplemented"
|
||||||
|
|
||||||
.PHONY: help # Show this list of commands
|
.PHONY: help # Show this list of commands
|
||||||
help:
|
help:
|
||||||
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1: \2/' | expand -t20
|
@echo "${REPO_NAME}"
|
||||||
|
@echo "Usage: make [target]"
|
||||||
default: format test build
|
@echo ""
|
||||||
|
@echo "target description" | expand -t20
|
||||||
|
@echo "-----------------------------------"
|
||||||
|
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20
|
||||||
|
|
||||||
|
default: test build
|
||||||
|
Loading…
Reference in New Issue
Block a user