hscc

Soure code of <https://hugo.soucy.cc>.
git clone git://soucy.cc/hscc.git
Log | Files | Refs

js.sh (360B)


      1 #!/bin/sh
      2 
      3 # You can use it with entr to rebuild on change:
      4 # find . | entr -d ./js.sh
      5 
      6 # Dependencies:
      7 # - jsmin (clang)
      8 
      9 dst="../../public_html/js/"
     10 
     11 # while read -r line; do
     12 #   [ -n "$line" ] && cat "./$line"
     13 # done <<-EOF > "${dst}index.min.js"
     14 # index.js
     15 
     16 # EOF
     17 
     18 jsmin < archives.js > "${dst}archives.min.js"
     19 
     20 echo "JS builded! @ $(date +"%Y-%m-%d %T")"