Merge pull request #6279 from MaximKhlobystov/lint-only-html5
Filtering the files for linting
This commit is contained in:
commit
262d009f3c
@ -8,8 +8,17 @@ if [[ $files = *"bigbluebutton-html5"* ]]; then
|
|||||||
meteor npm install
|
meteor npm install
|
||||||
if [ $1 = linter ]
|
if [ $1 = linter ]
|
||||||
then
|
then
|
||||||
|
html5_files=""
|
||||||
|
list=$(echo $files | tr " " "\n")
|
||||||
|
for file in $list
|
||||||
|
do
|
||||||
|
if [[ $file = bigbluebutton-html5* ]] ; then
|
||||||
|
html5_files+=" $file"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
cd ..
|
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 ]
|
elif [ $1 = acceptance_tests ]
|
||||||
then
|
then
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user