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/ /.bundle/
/_build /_build
/bin
/lib /lib
/.yardoc /.yardoc
/_yardoc/ /_yardoc/

View file

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

View file

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

View file

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