Improve readme

This commit is contained in:
2019-11-10 22:25:27 +03:00
parent f3f23fc868
commit 076e4ca4fb
3 changed files with 19 additions and 22 deletions

View File

@ -13,7 +13,7 @@ install-shards:
shards install
.PHONY: install
install: build-docker install-shards
install: build-docker install-shards install-assets build-assets
.PHONY: build
build:
@ -24,6 +24,9 @@ build:
format:
crystal tool format ./src ./spec
install-assets:
nodejs npm install
build-assets:
rm -rf ./public/assets
nodejs npm run-script build
@ -39,7 +42,8 @@ run: format
.PHONY: run-server
run-server: format
BASE_PATH="./tmp" server run $(ENTRY_POINT)
mkdir -p ./var/data
BASE_PATH="./var/data" server run $(ENTRY_POINT)
.PHONY: spec
spec: format