<commit_before>.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

help:
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

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 ## As build, but retriggers incremental compilation as the files are changed on disk.
	./scripts/dev.sh

lint: ## Runs the linter for the server and the client.
	./scripts/lint.sh

lint-client: ## Runs the linter on the client.
	./scripts/lint.sh ./client

lint-server: ## Runs the linter on the server.
	./scripts/lint.sh ./server

test: ## Runs all tests and style checks.
	./scripts/test.sh

release: build ## Prepares for a release. To be done only on the `master` branch.
	git add -f build/
	git status<commit_msg>Fixes #396: Settle down dependencies on release;<commit_after>.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

help:
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

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 ## As build, but retriggers incremental compilation as the files are changed on disk.
	./scripts/dev.sh

lint: ## Runs the linter for the server and the client.
	./scripts/lint.sh

lint-client: ## Runs the linter on the client.
	./scripts/lint.sh ./client

lint-server: ## Runs the linter on the server.
	./scripts/lint.sh ./server

test: ## Runs all tests and style checks.
	./scripts/test.sh

release: build ## Prepares for a release. To be done only on the `master` branch.
	git add -f build/
	npm shrinkwrap
	git add npm-shrinkwrap.json
	git status
{'fraction_non_alphanumeric': 0.11151685393258427, 'fraction_numerical': 0.009269662921348315, 'mean_word_length': 3.878082191780822, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '688537', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1122, 'n_words': 426}