Files
gerrit/polygerrit-ui/app/polylint_test.sh
Becky Siegel bdd9301861 Explicitly exclude bower_components in polylint
This was included in the iron-input change earlier that has since been
reverted.

Also replace deprecated bindValue with value in gr-textarea.

Bug: Issue 6862
Change-Id: I54d17cbf26d92b987aab9f71a98c738f168ff416
2017-07-26 22:10:35 +00:00

20 lines
483 B
Bash
Executable File

#!/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
unzip polygerrit-ui/polygerrit_components.bower_components.zip -d polygerrit-ui/app
${polylint_bin} --root polygerrit-ui/app --input elements/gr-app.html --b 'bower_components'