<commit_before># See the README for installation instructions.
UGLIFY = node_modules/.bin/uglifyjs
BROWSERIFY = node_modules/.bin/browserify

all: \
	$(shell mkdir -p dist) \
	dist/prose.js \
	dist/prose.min.js

clean:
	rm -f dist/*

TEMPLATES = $(shell find templates -type f -name '*.html')

dist/templates.js: $(TEMPLATES)
	node build.js

oauth.json:
	test -s oauth.json || curl 'https://raw.github.com/prose/prose/gh-pages/oauth.json' > oauth.json

LIBS = \
	src/libs/codemirror/codemirror.js \
	src/libs/codemirror/overlay.js \
	src/libs/codemirror/htmlmixed.js \
	src/libs/codemirror/clike.js \
	src/libs/codemirror/yaml.js \
	src/libs/codemirror/ruby.js \
	src/libs/codemirror/markdown.js \
	src/libs/codemirror/xml.js \
	src/libs/codemirror/javascript.js \
	src/libs/codemirror/css.js \
	src/libs/codemirror/gfm.js \
	src/libs/liquid.js \
	src/libs/liquid.patch.js

APPLICATION = \
	src/prose/views/notification.js \
	src/prose/views/documentation.js \
	src/prose/views/post.js \
	src/prose/views/posts.js \
	src/prose/views/profile.js \
	src/prose/views/preview.js \
	src/prose/views/start.js \
	src/prose/views/app.js \
	src/prose/router.js \
	src/prose/util.js \
	src/prose/boot.js \
	dist/templates.js \
	src/prose/models.js \
	src/prose/cookie.js \
	src/prose/upload.js \
	src/prose/toolbar/markdown.js \
	src/libs/github.js

dist/prose.js: oauth.json $(APPLICATION) $(LIBS) dist/templates.js
	cat $(LIBS) > dist/prose.js
	$(BROWSERIFY) src/prose/boot.js >> dist/prose.js

dist/prose.min.js: dist/prose.js
	$(UGLIFY) dist/prose.js > dist/prose.min.js

.PHONY: clean
<commit_msg>Add npm install to the all target in make<commit_after># See the README for installation instructions.
UGLIFY = node_modules/.bin/uglifyjs
BROWSERIFY = node_modules/.bin/browserify

all: \
	$(shell npm install && mkdir -p dist) \
	dist/prose.js \
	dist/prose.min.js

clean:
	rm -f dist/*

TEMPLATES = $(shell find templates -type f -name '*.html')

dist/templates.js: $(TEMPLATES)
	node build.js

oauth.json:
	test -s oauth.json || curl 'https://raw.github.com/prose/prose/gh-pages/oauth.json' > oauth.json

LIBS = \
	src/libs/codemirror/codemirror.js \
	src/libs/codemirror/overlay.js \
	src/libs/codemirror/htmlmixed.js \
	src/libs/codemirror/clike.js \
	src/libs/codemirror/yaml.js \
	src/libs/codemirror/ruby.js \
	src/libs/codemirror/markdown.js \
	src/libs/codemirror/xml.js \
	src/libs/codemirror/javascript.js \
	src/libs/codemirror/css.js \
	src/libs/codemirror/gfm.js \
	src/libs/liquid.js \
	src/libs/liquid.patch.js

APPLICATION = \
	src/prose/views/notification.js \
	src/prose/views/documentation.js \
	src/prose/views/post.js \
	src/prose/views/posts.js \
	src/prose/views/profile.js \
	src/prose/views/preview.js \
	src/prose/views/start.js \
	src/prose/views/app.js \
	src/prose/router.js \
	src/prose/util.js \
	src/prose/boot.js \
	dist/templates.js \
	src/prose/models.js \
	src/prose/cookie.js \
	src/prose/upload.js \
	src/prose/toolbar/markdown.js \
	src/libs/github.js

dist/prose.js: oauth.json $(APPLICATION) $(LIBS) dist/templates.js
	cat $(LIBS) > dist/prose.js
	$(BROWSERIFY) src/prose/boot.js >> dist/prose.js

dist/prose.min.js: dist/prose.js
	$(UGLIFY) dist/prose.js > dist/prose.min.js

.PHONY: clean

{'fraction_non_alphanumeric': 0.15875968992248063, 'fraction_numerical': 0.0, 'mean_word_length': 3.135897435897436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '27520', 'n_tokens_mistral': 1456, 'n_tokens_neox': 1395, 'n_words': 192}