<commit_before>.PHONY : all test clean

all: sequence-diagram-min.js

test: grammar.js
	node grammar.js test

clean:
	rm sequence-diagram-min.js grammar.js 

sequence-diagram-min.js: grammar.js src/diagram.js src/jquery-plugin.js src/sequence-diagram.js
	jspp src/sequence-diagram.js | \
		uglifyjs -o sequence-diagram-min.js -c --comments

%.js: src/%.jison
	jison $<<commit_msg>As part of the build move the minified js to the site submodule.<commit_after>.PHONY : all test clean

all: sequence-diagram-min.js

test: grammar.js
	node grammar.js test

clean:
	rm sequence-diagram-min.js grammar.js 

sequence-diagram-min.js: grammar.js src/diagram.js src/jquery-plugin.js src/sequence-diagram.js
	jspp src/sequence-diagram.js | \
		uglifyjs -o sequence-diagram-min.js -c --comments
	cp sequence-diagram-min.js _site/

%.js: src/%.jison
	jison $<
{'fraction_non_alphanumeric': 0.12411347517730496, 'fraction_numerical': 0.0, 'mean_word_length': 3.6032608695652173, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6373476', 'n_tokens_mistral': 328, 'n_tokens_neox': 314, 'n_words': 75}