Initial project setup
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
55f5db98fb
commit
30701d2c9c
@ -1,18 +0,0 @@
|
|||||||
node_modules
|
|
||||||
jspm_packages
|
|
||||||
.env
|
|
||||||
Makefile
|
|
||||||
.git
|
|
||||||
.DS_Store
|
|
||||||
*.out
|
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
.npm
|
|
||||||
.node_repl_history
|
|
||||||
.vscode
|
|
||||||
*.code-workspace
|
|
||||||
.history/
|
|
34
Makefile
34
Makefile
@ -1,65 +1,31 @@
|
|||||||
.DEFAULT_GOAL := default
|
.DEFAULT_GOAL := default
|
||||||
|
|
||||||
IMAGE ?= docker.cluster.fun/private/charts:latest
|
|
||||||
|
|
||||||
.PHONY: test # Run all tests, linting and format checks
|
.PHONY: test # Run all tests, linting and format checks
|
||||||
test: lint check-format run-tests
|
test: lint check-format run-tests
|
||||||
|
|
||||||
.PHONY: lint # Perform lint checks against code
|
.PHONY: lint # Perform lint checks against code
|
||||||
lint:
|
lint:
|
||||||
@echo "⚠️ 'lint' unimplemented"
|
@echo "⚠️ 'lint' unimplemented"
|
||||||
# GO Projects
|
|
||||||
# @go vet && golint -set_exit_status ./...
|
|
||||||
|
|
||||||
.PHONY: check-format # Checks code formatting and returns a non-zero exit code if formatting errors found
|
.PHONY: check-format # Checks code formatting and returns a non-zero exit code if formatting errors found
|
||||||
check-format:
|
check-format:
|
||||||
@echo "⚠️ 'check-format' unimplemented"
|
@echo "⚠️ 'check-format' unimplemented"
|
||||||
# GO Projects
|
|
||||||
# @gofmt -e -l .
|
|
||||||
|
|
||||||
.PHONY: format # Performs automatic format fixes on all code
|
.PHONY: format # Performs automatic format fixes on all code
|
||||||
format:
|
format:
|
||||||
@echo "⚠️ 'format' unimplemented"
|
@echo "⚠️ 'format' unimplemented"
|
||||||
# GO Projects
|
|
||||||
# @gofmt -s -w .
|
|
||||||
|
|
||||||
.PHONY: run-tests # Runs all tests
|
.PHONY: run-tests # Runs all tests
|
||||||
run-tests:
|
run-tests:
|
||||||
@echo "⚠️ 'run-tests' unimplemented"
|
@echo "⚠️ 'run-tests' unimplemented"
|
||||||
# GO Projects
|
|
||||||
# @go test
|
|
||||||
# Node Projects
|
|
||||||
# @npm test
|
|
||||||
|
|
||||||
.PHONY: fetch-deps # Fetch all project dependencies
|
.PHONY: fetch-deps # Fetch all project dependencies
|
||||||
fetch-deps:
|
fetch-deps:
|
||||||
@echo "⚠️ 'fetch-deps' unimplemented"
|
@echo "⚠️ 'fetch-deps' unimplemented"
|
||||||
# GO Projects
|
|
||||||
# @go mod tidy
|
|
||||||
# Node Projects
|
|
||||||
# @npm install
|
|
||||||
|
|
||||||
.PHONY: build # Build the project
|
.PHONY: build # Build the project
|
||||||
build: lint check-format fetch-deps
|
build: lint check-format fetch-deps
|
||||||
@echo "⚠️ 'build' unimplemented"
|
@echo "⚠️ 'build' unimplemented"
|
||||||
# GO Projects
|
|
||||||
# @go build -o PROJECT_NAME main.go
|
|
||||||
|
|
||||||
.PHONY: docker-build # Build the docker image
|
|
||||||
docker-build:
|
|
||||||
@docker build -t $(IMAGE) .
|
|
||||||
|
|
||||||
.PHONY: docker-publish # Push the docker image to the remote registry
|
|
||||||
docker-publish:
|
|
||||||
@docker push $(IMAGE)
|
|
||||||
|
|
||||||
.PHONY: run # Run the application
|
|
||||||
run:
|
|
||||||
@echo "⚠️ 'run' unimplemented"
|
|
||||||
# GO Projects
|
|
||||||
# @go run main.go
|
|
||||||
# Node Projects
|
|
||||||
# @npm start
|
|
||||||
|
|
||||||
.PHONY: ci # Perform CI specific tasks to perform on a pull request
|
.PHONY: ci # Perform CI specific tasks to perform on a pull request
|
||||||
ci:
|
ci:
|
||||||
|
Loading…
Reference in New Issue
Block a user