Build the crystal way (with shards)

This commit is contained in:
Glenn Y. Rolland 2021-01-03 07:53:59 +01:00
parent 28caea3807
commit 9ff3997bac
4 changed files with 13 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
/.bundle/
/_build
/bin
/lib
/.yardoc
/_yardoc/

View file

@ -1,12 +1,16 @@
PROGNAME=noozoid
BUILD_DIR=_build
BUILD_DIR=bin
all: help
prepare: ## install dependencies
mkdir -p $(BUILD_DIR)
shards install
build: ## build binary
mkdir -p $(BUILD_DIR)
crystal build -o $(BUILD_DIR)/$(PROGNAME) src/main.cr
shards build
test: ## test binary
crystal spec

View file

@ -26,7 +26,7 @@ Build the project
In your terminal:
$ _build/noozoid
$ bin/noozoid
### Keyboard control (vim-like)

View file

@ -1,9 +1,14 @@
name: noozoid
version: 0.1.0
authors:
- Glenn Y. Rolland <opensource@glenux.net>
targets:
noozoid:
main: src/main.cr
# description: |
# Short description of ttymindmap