<commit_before># npm install nodeunit
test:
	./node_modules/.bin/litmus ./tests/suite.js

clean:
	rm -rf BUILD RPMS filelist

publish: 
	perl -e '`git status` =~ /working directory clean/ or die "cannot publish without clean working dir\n"' && \
	echo current version is `perl -ne 'print /"version"\s*:\s*"(\d+\.\d+\.\d+)"/' package.json` && \
	perl -e 'print "new version? "' && \
	read new_version && \
	perl -i -pe 's/("version"\s*:\s*\")(?:|\d+\.\d+\.\d+)(")/$$1."'$$new_version'".$$2/e' package.json && \
	git commit -m 'Version for release' package.json && \
	git tag v$$new_version && \
	git push origin master && \
	git push --tags && \
	npm publish https://github.com/tomyan/micro.js/tarball/v$$new_version

.PHONY: test<commit_msg>Updating to standardised release<commit_after>
test:
	./node_modules/.bin/litmus ./tests/suite.js

./node_modules/.bin/usenode-release:
	npm install --dev

release: ./node_modules/.bin/usenode-release test
	./node_modules/.bin/usenode-release .

.PHONY: release test
{'fraction_non_alphanumeric': 0.19761668321747766, 'fraction_numerical': 0.0019860973187686196, 'mean_word_length': 3.3636363636363638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4339909', 'n_tokens_mistral': 379, 'n_tokens_neox': 367, 'n_words': 90}