blob: 9f136a66551f8eabd58cd4240463880f750d5394 [file] [log] [blame]
#!/bin/sh
set -ex
npm_bin=$(which npm)
if [[ -z "$npm_bin" ]]; then
echo "NPM must be on the path."
exit 1
fi
polylint_bin=$(which polylint)
if [[ -z "$polylint_bin" ]]; then
echo "You must install polylint and its dependencies from NPM."
echo "> npm install -g polylint"
exit 1
fi
${polylint_bin} --root polygerrit-ui/app --input elements/gr-app.html