<commit_before>JSCS = node_modules/.bin/jscs
JSHINT = node_modules/.bin/jshint
BABEL = node_modules/.bin/babel
WEBPACK = node_modules/webpack/bin/webpack.js
DEVSERVER = node_modules/webpack-dev-server/bin/webpack-dev-server.js

export NODE_ENV = test

.PHONY: build clean dev dist lint

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

clean:
	rm -r dist || true

dist: clean
	$(BABEL) src/ --modules common --out-dir dist

dev:
	NODE_ENV=development $(DEVSERVER) --content-base dist/ --hot --devtool eval-source-map --progress --colors --debug --output-pathinfo

lint:
	$(JSHINT) .
	$(JSCS) -c .jscsrc .
<commit_msg>`make lint` uses eslint<commit_after>ESLINT = node_modules/.bin/eslint
BABEL = node_modules/.bin/babel
WEBPACK = node_modules/webpack/bin/webpack.js
DEVSERVER = node_modules/webpack-dev-server/bin/webpack-dev-server.js

export NODE_ENV = test

.PHONY: build clean dev dist lint

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

clean:
	rm -r dist || true

dist: clean
	$(BABEL) src/ --modules common --out-dir dist

dev:
	NODE_ENV=development $(DEVSERVER) --content-base dist/ --hot --devtool eval-source-map --progress --colors --debug --output-pathinfo

lint:
	$(ESLINT) -c .eslintrc *.js src/** example/**

{'fraction_non_alphanumeric': 0.14941690962099125, 'fraction_numerical': 0.0, 'mean_word_length': 3.6385135135135136, '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': '543040', 'n_tokens_mistral': 496, 'n_tokens_neox': 494, 'n_words': 119}