Path: blob/main/src/resources/scripts/check-usage.sh
12921 views
#!/usr/bin/env bash12# https://stackoverflow.com/a/2461283SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )45deno info --import-map import_map.json quarto.ts | grep https | gsed -r 's/\x1B\[[0-9;]*[JKmsu]//g' | sed 's/[^ht]*ht/ht/g' | grep -v '\*$' | deno run --allow-read ${SCRIPT_DIR}/check-usage.ts $*67## Info on how to read the output8#9# The two biggest offenders right now are deno_dom and10# media_types. however, those two files are almost entirely composed11# of big strings, which take little compilation overhead.12#13# We tested this by creating a version of deno_dom which14# loaded its big string from a file, and the dry startup time15# didn't go down at all (even though the total file size did.)16#1718192021