build Bootstrap for verification testing (#4795)

This commit is contained in:
Alex Lam S.L
2021-03-17 14:34:17 +00:00
committed by GitHub
parent 7d595e2eac
commit d4303b62cc
10 changed files with 209 additions and 14 deletions

View File

@@ -7,16 +7,16 @@ minify_in_situ() {
ARGS="$UGLIFY_OPTIONS --validate --in-situ"
DIRS="$1"
echo '> uglify-js' $DIRS $UGLIFY_OPTIONS
for i in `find $DIRS -name '*.js'`
for i in `find $DIRS -type f -name '*.js'`
do
ARGS="$ARGS $i"
done
for i in `find $DIRS -name '*.mjs'`
for i in `find $DIRS -type f -name '*.mjs'`
do
ARGS="$ARGS $i"
done
uglify-js $ARGS
for i in `find $DIRS -name '*.ts' | grep -v '\.d\.ts'`
for i in `find $DIRS -type f -name '*.ts' | grep -v '\.d\.ts'`
do
echo "$i"
node_modules/.bin/esbuild --loader=ts --target=node14 < "$i" \