<commit_before>all: js css scss

init:
	npm i
	npm run bootstrap
	mkdir -p static/app/js
	mkdir -p static/app/css
	mkdir -p js/wq
	mkdir -p css/wq
	mkdir -p scss/wq

js: js_build js_lib
	cp -p packages/jquery-mobile/compat/*.js js/wq/

js_build: init
	npm run rollup -- -c
	npm run rollup-all

js_leaflet_draw: init
	echo "define(['leaflet'], function(L) {" > js/leaflet.draw.js
	cat packages/leaflet/node_modules/leaflet-draw/dist/leaflet.draw-src.js >> js/leaflet.draw.js
	echo "\n});" >> js/leaflet.draw.js

js_regenerator_runtime: init
	echo "define(function() {" > js/regenerator-runtime.js
	cat node_modules/regenerator-runtime/runtime.js >> js/regenerator-runtime.js
	echo "\nreturn regeneratorRuntime;\n});" >> js/regenerator-runtime.js

js_lib: init js_leaflet_draw js_regenerator_runtime<commit_msg>run @wq/material rollup before wq.js build<commit_after>all: js css scss

init:
	npm i
	npm run bootstrap
	mkdir -p static/app/js
	mkdir -p static/app/css
	mkdir -p js/wq
	mkdir -p css/wq
	mkdir -p scss/wq

js: js_build js_lib
	cp -p packages/jquery-mobile/compat/*.js js/wq/

js_build: init
	npm run rollup-all
	npm run rollup -- -c

js_leaflet_draw: init
	echo "define(['leaflet'], function(L) {" > js/leaflet.draw.js
	cat packages/leaflet/node_modules/leaflet-draw/dist/leaflet.draw-src.js >> js/leaflet.draw.js
	echo "\n});" >> js/leaflet.draw.js

js_regenerator_runtime: init
	echo "define(function() {" > js/regenerator-runtime.js
	cat node_modules/regenerator-runtime/runtime.js >> js/regenerator-runtime.js
	echo "\nreturn regeneratorRuntime;\n});" >> js/regenerator-runtime.js

js_lib: init js_leaflet_draw js_regenerator_runtime
{'fraction_non_alphanumeric': 0.13175470552519733, 'fraction_numerical': 0.0, 'mean_word_length': 4.118012422360248, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '3444802', 'n_tokens_mistral': 651, 'n_tokens_neox': 627, 'n_words': 142}