Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/scripts/check-usage.sh
12925 views
1
#!/usr/bin/env bash
2
3
# https://stackoverflow.com/a/246128
4
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
5
6
deno 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 $*
7
8
## Info on how to read the output
9
#
10
# The two biggest offenders right now are deno_dom and
11
# media_types. however, those two files are almost entirely composed
12
# of big strings, which take little compilation overhead.
13
#
14
# We tested this by creating a version of deno_dom which
15
# loaded its big string from a file, and the dry startup time
16
# didn't go down at all (even though the total file size did.)
17
#
18
19
20
21