<commit_before>SHELL := /bin/bash
BIN = ./node_modules/.bin/
DEST = static
SRC = src
REPORT = make 2>&1 | $(BIN)make2tap | $(BIN)tap-summary

CSS_SRC = $(shell find $(SRC)/scss -type f)
CSS = $(DEST)/%.css

JS_SRC = $(shell find $(SRC)/js -type f)
JS = $(DEST)/%.js

VERBATIM_SRC = $(shell find $(SRC)/verbatim/*)

all: $(DEST) $(DEST)/css/app.css $(DEST)/js/app.js verbatim

server:
	@$(BIN)light-server --quiet \
		-w "src/js/*.js,src/verbatim/** # $(REPORT) # no-reload" \
		-w "src/scss/**/*.scss # $(REPORT) # no-reload"

icons:
	## Generate icons
	# optimize svg files
	@$(BIN)svgo $(SRC)/images/icons --enable=removeTitle --enable=removeViewBox \
		--enable=removeDimensions

$(DEST):
	## Create public files and dirs
	# create the public dir, if does not exist
	@mkdir -p $@
	# create specific assets dirs<commit_msg>Configure the build pipe to optimize SVG<commit_after>SHELL := /bin/bash
BIN = ./node_modules/.bin/
DEST = static
SRC = src
REPORT = make 2>&1 | $(BIN)make2tap | $(BIN)tap-summary

CSS_SRC = $(shell find $(SRC)/scss -type f)
CSS = $(DEST)/%.css

JS_SRC = $(shell find $(SRC)/js -type f)
JS = $(DEST)/%.js

VERBATIM_SRC = $(shell find $(SRC)/verbatim/*)

all: $(DEST) $(DEST)/css/app.css $(DEST)/js/app.js verbatim svg

server:
	@$(BIN)light-server --quiet \
		-w "src/js/*.js,src/verbatim/** # $(REPORT) # no-reload" \
		-w "src/scss/**/*.scss # $(REPORT) # no-reload"

svg:
	## Prepare svg files
	@$(BIN)svgo $(SRC)/verbatim/icons --enable=removeTitle --enable=removeViewBox \
		--enable=removeDimensions

$(DEST):
	## Create public files and dirs
	# create the public dir, if does not exist
	@mkdir -p $@
	# create specific assets dirs
{'fraction_non_alphanumeric': 0.19795427196149218, 'fraction_numerical': 0.0036101083032490976, 'mean_word_length': 3.6452513966480447, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1603997', 'n_tokens_mistral': 672, 'n_tokens_neox': 641, 'n_words': 164}