Files
commafeed-podcasts/bs/analyze
T
2026-05-22 15:56:44 +02:00

28 lines
538 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail # this can be harmful, see https://www.youtube.com/watch?v=4Jo3Ml53kvc
. bs/.common || {
echo 'Please run this script from the project root directory' >&2;
exit 1;
}
# depends on
declare -r app=(
'src/**/c-*.ts'
'src/**/app-*/index.ts'
'src/index.ts'
)
declare -r cem='node_modules/.bin/custom-elements-manifest'
help(){
if ! isHelp "${@}"; then return 0; fi
echoReadmeInfo
echo
$cem --help
exit 0
}
main(){
help "${@}"
$cem analyze --litelement --globs "${app[@]}" "${@}"
}
main "${@}"