From b6b866cdd062a64a91f94dbbbb5997d0723b3883 Mon Sep 17 00:00:00 2001 From: Maxim Khlobystov <maxim.khlobystov@gmail.com> Date: Wed, 21 Nov 2018 16:05:40 -0500 Subject: [PATCH] Running linter only on the files inside bigbluebutton-html5 folder. --- build_script.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build_script.sh b/build_script.sh index 42265a3dba..a83ccde4ea 100755 --- a/build_script.sh +++ b/build_script.sh @@ -8,8 +8,17 @@ if [[ $files = *"bigbluebutton-html5"* ]]; then meteor npm install if [ $1 = linter ] then + html5_files="" + list=$(echo $files | tr " " "\n") + for file in $list + do + if [[ $file = bigbluebutton-html5* ]] ; then + html5_files+=" $file" + fi + done + cd .. - bigbluebutton-html5/node_modules/.bin/eslint --ext .jsx,.js $files + bigbluebutton-html5/node_modules/.bin/eslint --ext .jsx,.js $html5_files elif [ $1 = acceptance_tests ] then { -- GitLab