<commit_before>ESLINT = node_modules/.bin/eslint
WEBPACK = node_modules/webpack/bin/webpack.js

.PHONY: clean build install dev lint lint-quiet test

build:
	make clean
	$(WEBPACK) --optimize-minimize \
		--optimize-occurence-order \
		--devtool source-map \
		--verbose \
		--display-chunks \
		--bail

install:
	npm install --python=python2 --ignore-scripts

clean:
	rm -rf ./dist

start-docker:
	fig up -d postgres

init:
	make install
	make start-docker
	export $(cat .env|xargs)
	mariner migrate up
	fig stop postgres

dev: 
	make install
	make start-docker
	make clean
	NODE_ENV=development $(WEBPACK) --content-base dist/ \
		--debug \
		--watch \
		--devtool eval \<commit_msg>added a migrate job<commit_after>ESLINT = node_modules/.bin/eslint
WEBPACK = node_modules/webpack/bin/webpack.js

.PHONY: clean build install dev lint lint-quiet test

build:
	make clean
	$(WEBPACK) --optimize-minimize \
		--optimize-occurence-order \
		--devtool source-map \
		--verbose \
		--display-chunks \
		--bail

install:
	npm install --python=python2 --ignore-scripts

clean:
	rm -rf ./dist

start-docker:
	fig up -d postgres

migrate:
	export $(cat .env|xargs)
	mariner migrate up

init:
	make install
	make start-docker
	make migrate
	fig stop postgres

dev: 
	make install
	make start-docker
	make clean
	NODE_ENV=development $(WEBPACK) --content-base dist/ \
		--debug \
		--watch \
		--devtool eval \
{'fraction_non_alphanumeric': 0.11785714285714285, 'fraction_numerical': 0.0014285714285714286, 'mean_word_length': 2.9688385269121813, 'pattern_counts': {'":': 0, '<': 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': '5943242', 'n_tokens_mistral': 533, 'n_tokens_neox': 508, 'n_words': 138}