File: push-to-web.sh

package info (click to toggle)
dygraphs 2.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,340 kB
  • sloc: javascript: 24,842; sh: 800; python: 581; makefile: 45
file content (16 lines) | stat: -rwxr-xr-x 311 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/mksh
# This script generates the bundled JS files and pushes all content to a web site using rsync.

if [[ -n $1 ]]; then
  echo "usage: $0 destination"
  exit 1
fi

set -ex
site=$1

# Produce dist/*.js and docroot/ and all in site/
npm run build

# Copy everything to the site.
rsync -avzr site/ $site/