mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
chore: pre-commit hooks
This commit is contained in:
14
Makefile
14
Makefile
@ -1,3 +1,5 @@
|
||||
all: build
|
||||
|
||||
build: $(wildcard src/**/*.cr) $(wildcard lexers/*xml) $(wildcard styles/*xml) shard.yml
|
||||
shards build -Dstrict_multi_assign -Dno_number_autocast -d --error-trace
|
||||
release: $(wildcard src/**/*.cr) $(wildcard lexers/*xml) $(wildcard styles/*xml) shard.yml
|
||||
@ -5,3 +7,15 @@ release: $(wildcard src/**/*.cr) $(wildcard lexers/*xml) $(wildcard styles/*xml)
|
||||
static: $(wildcard src/**/*.cr) $(wildcard lexers/*xml) $(wildcard styles/*xml) shard.yml
|
||||
shards build --release --static
|
||||
strip bin/tartrazine
|
||||
|
||||
|
||||
clean:
|
||||
rm -rf bin lib shard.lock
|
||||
|
||||
test:
|
||||
crystal spec
|
||||
|
||||
lint:
|
||||
ameba --fix src spec
|
||||
|
||||
.PHONY: clean all test bin lint
|
||||
|
Reference in New Issue
Block a user