mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-12-22 01:50:44 -06:00
build: refactor bootstrapping
This commit is contained in:
parent
234e3cee35
commit
bcb07718fd
1 changed files with 6 additions and 5 deletions
11
Makefile
11
Makefile
|
@ -1,18 +1,19 @@
|
||||||
VERSION ?= $(shell git describe --tags --always --dirty | sed s'/dirty/dev/')
|
VERSION ?= $(shell git describe --tags --always --dirty | sed s'/dirty/dev/')
|
||||||
TEMPLATES := $(shell find src/ -type f)
|
TEMPLATES := $(shell find src/ -type f)
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
SHELL := /bin/zsh
|
|
||||||
INHERIT_SHELL = true
|
|
||||||
msg = $(if $(tprint),$(call tprint,{a.bold}==> {a.magenta}$(1){a.end}),@echo '==> $(1)')
|
msg = $(if $(tprint),$(call tprint,{a.bold}==> {a.magenta}$(1){a.end}),@echo '==> $(1)')
|
||||||
|
|
||||||
|
|
||||||
### task.mk development | args: -d -ms b_green --align center
|
### task.mk development | args: -d -ms b_green --align center
|
||||||
## bootstrap | generate local dev environment
|
## bootstrap | generate local dev environment
|
||||||
.PHONY: bootstrap
|
.PHONY: bootstrap env hooks
|
||||||
bootstrap:
|
bootstrap: env hooks
|
||||||
$(call msg,Bootstrap Environment)
|
env:
|
||||||
|
$(call msg,Bootstrapping Environment)
|
||||||
@mamba create -p ./env python jinja2 black -y
|
@mamba create -p ./env python jinja2 black -y
|
||||||
@mamba run -p ./env pip install yartsu
|
@mamba run -p ./env pip install yartsu
|
||||||
|
hooks:
|
||||||
@git config core.hooksPath .githooks
|
@git config core.hooksPath .githooks
|
||||||
|
|
||||||
## l, lint | lint the python
|
## l, lint | lint the python
|
||||||
|
|
Loading…
Reference in a new issue