forked from kresusapp/kresus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (29 loc) · 1.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: help install prod build watch dev pretty config lint test check release docker-release docker-nightly
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
install: ## Globally install a prebuilt version of kresus.
npm -g install kresus
prod: ## Builds in prod mode. Transpiles ES6 files to ES5, moves files and concatenate them to obtain a usable build.
yarn run build:prod
build: ## Builds in dev mode. Transpiles ES6 files to ES5, moves files and concatenate them to obtain a usable build.
yarn run build:dev
watch: ## As build, but retriggers incremental compilation as the files are changed on disk.
yarn run watch
dev: ## Runs servers that get relaunched whenever a built file changes.
yarn run dev
pretty:
yarn run fix:lint
config: ## Creates an example configuration file that's up to date.
yarn run fix:config
lint: ## Runs the linter for the server and the client, without warnings.
yarn run check:lint
test: ## Runs all the tests.
yarn run check:test
check: ## Runs all tests and style checks.
yarn run check
release: ## Prepares for a release. To be done only on the `builds` branch.
yarn run release
docker-release: ## Prepares for a Docker release. Must be done after make release.
docker build -t bnjbvr/kresus -f support/docker/Dockerfile-stable ./support/docker
docker-nightly: ## Prepares for a Docker nightly image.
docker build -t bnjbvr/kresus-nightly -f support/docker/Dockerfile-nightly ./support/docker