<commit_before>.PHONY: demos

VERSION = $(shell cat VERSION)

compile: node_modules clean
	@node build/minify.js

site: homepage downloadpage docs demos

demos: node_modules
	@node build/demos.js

homepage: node_modules
	@$(RM) -f index.html
	@node build/homepage.js

downloadpage: node_modules
	@$(RM) -f download.html
	@node build/download.js

docs: node_modules
	@$(RM) -f docs.html
	@node build/docs.js

cleandocs:
	@$(RM) -f docs.html

clean:
	@$(RM) -f dist/brick.js dist/brick.css

node_modules: package.json component/**/component.json
	@git submodule update --init --recursive
	@npm install

release: compile
	@cp dist/brick.js brick-$(VERSION).js
	@cp dist/brick.css brick-$(VERSION).css
	@zip brick-$(VERSION).zip brick-$(VERSION).js brick-$(VERSION).css
	@$(RM) brick-$(VERSION).js brick-$(VERSION).css<commit_msg>extract submodule dependency into component task<commit_after>.PHONY: demos

VERSION = $(shell cat VERSION)

compile: clean node_modules components
	@node build/minify.js

site: homepage downloadpage docs demos

demos: node_modules components
	@node build/demos.js

homepage: node_modules
	@$(RM) -f index.html
	@node build/homepage.js

downloadpage: node_modules components
	@$(RM) -f download.html
	@node build/download.js

docs: node_modules components
	@$(RM) -f docs.html
	@node build/docs.js

cleandocs:
	@$(RM) -f docs.html

clean:
	@$(RM) -f dist/brick.js dist/brick.css

node_modules: package.json
	@git submodule update --init --recursive
	@npm install

components: component/**/component.json
	@git submodule update --init --recursive

release: compile
	@cp dist/brick.js brick-$(VERSION).js
	@cp dist/brick.css brick-$(VERSION).css
	@zip brick-$(VERSION).zip brick-$(VERSION).js brick-$(VERSION).css
	@$(RM) brick-$(VERSION).js brick-$(VERSION).css
{'fraction_non_alphanumeric': 0.1433370660694289, 'fraction_numerical': 0.0, 'mean_word_length': 4.4815950920245395, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5898236', 'n_tokens_mistral': 650, 'n_tokens_neox': 636, 'n_words': 164}