File: webpack-watch

package info (click to toggle)
cockpit 239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,268 kB
  • sloc: javascript: 245,474; ansic: 72,273; python: 23,634; xml: 6,155; sh: 2,919; makefile: 923; sed: 5
file content (15 lines) | stat: -rwxr-xr-x 344 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Calls webpack-make in watch mode for the given pkg/<page>

set -eu
mydir=$(dirname $0)

if [ -z "${1:-}" ] || [ -n "${2:-}" ]; then
    echo "Usage: $0 <page in pkg/>" >&2
    exit 1
fi

# disable eslint by default, unless explicitly enabled
export ESLINT=${ESLINT:-0}

"$mydir/webpack-make" -d "$mydir/../dist/$1/Makefile.deps" -w