Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Bauch <bauch@struktur.de>2016-10-13 18:09:34 +0300
committerJoachim Bauch <bauch@struktur.de>2016-10-14 15:08:45 +0300
commit7a1b1dcd144cde2ae0e7ee9bba9de51ba516dc96 (patch)
treed9ab4ef6ae7ad3dc12634120508670635b61d363 /run-stylelint.sh
parent905557c8a2f7ba42e29971b09ac0033f839c1a46 (diff)
Added script to check CSS files using stylelint.
Diffstat (limited to 'run-stylelint.sh')
-rwxr-xr-xrun-stylelint.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/run-stylelint.sh b/run-stylelint.sh
new file mode 100755
index 000000000..974ef67d1
--- /dev/null
+++ b/run-stylelint.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+STYLELINT=$(which stylelint || true)
+if [ -z "$STYLELINT" ]; then
+ echo "Can't find command \"stylelint\" in $PATH"
+ exit 1
+fi
+
+echo Checking stylesheets with $STYLELINT ...
+find -name "*.css" -print0 | xargs -0 $STYLELINT