File: get

package info (click to toggle)
r-cran-bslib 0.9.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,412 kB
  • sloc: javascript: 13,349; makefile: 33; sh: 23
file content (12 lines) | stat: -rwxr-xr-x 428 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
wget https://github.com/twbs/bootstrap/releases/download/v5.1.3/bootstrap-5.1.3-dist.zip
unzip bootstrap-*-dist.zip
mv bootstrap-*-dist/js/bootstrap.bundle.js .
rm -rf bootstrap-*-dist.zip bootstrap-*-dist

if ! which terser ; then
    echo "You need to \`apt install uglifyjs.terser\` to use this script"
    exit 1
fi

terser --compress --source-map --mangle --output bootstrap.bundle.min.js -- bootstrap.bundle.js