Commit 99d42cd8 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Add an "help" target to the Makefile.

parent 90004763
.PHONY: all build dev lint lint-client lint-server test release run run-cozy install-node-deps install install-debian-deps install-debian
.PHONY: help run run-cozy install-node-deps install install-debians-deps install-debian install-node-dev-deps build dev lint lint-client lint-server test release
all: build
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build:
run: install-node-deps ## Runs the standalone version of kresus, from this directory.
node bin/kresus.js
run-cozy: install-node-deps ## Runs the CozyCloud version of kresus, from this directory.
node build/server/index.js
install-node-deps: ## Installs all node dependencies for a production environment.
npm install --production
install: ## Globally install the standalone version of kresus.
npm -g install --production
install-debian-deps: ## Install the extra Debian dependencies necessary to run Kresus.
sudo apt-get update
sudo apt-get install -y python-weboob-core
install-debian: install install-debian-deps ## Globally install Kresus and all its dependencies.
install-node-dev-deps: ## Installs all node dependencies for a development environment.
npm install
build: ## Transpiles ES6 files to ES5, moves files and concatenate them to obtain a usable build.
./scripts/build.sh
dev: build
dev: build ## As build, but retriggers incremental compilation as the files are changed on disk.
./scripts/dev.sh
lint:
lint: ## Runs the linter for the server and the client.
./scripts/lint.sh
lint-client:
lint-client: ## Runs the linter on the client.
./scripts/lint.sh ./client
lint-server:
lint-server: ## Runs the linter on the server.
./scripts/lint.sh ./server
test:
test: ## Runs all tests and style checks.
./scripts/test.sh
release: build
release: build ## Prepares for a release. To be done only on the `master` branch.
git add -f build/
git status
run: install-node-deps
node bin/kresus.js
run-cozy: install-node-deps
node build/server/index.js
install-node-deps:
npm install --production
install-node-dev-deps:
npm install
install:
npm -g install --production
install-debian-deps:
sudo apt-get update
sudo apt-get install -y python-weboob-core
install-debian: install install-debian-deps
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment