Skip to content

Commit

Permalink
Improve reporting in the generate-js-examples script
Browse files Browse the repository at this point in the history
  • Loading branch information
sequba committed May 14, 2024
1 parent 23ba25b commit ab45ef0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/.vuepress/tools/generate-js-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ find content/guides -wholename "*/javascript/*.ts" -print0 | while read -d $'\0'
if [ -f "$js_filename" ]; then
echo "Skipping $js_filename"
else
echo "Generating $js_filename"
tsc --target esnext --skipLibCheck $ts_filename > /dev/null
eslint --fix --no-ignore -c eslintrc.examples.js $js_filename

if [ -f "$js_filename" ]; then
eslint --fix --no-ignore -c eslintrc.examples.js $js_filename > /dev/null
echo "Generated $js_filename"
else
echo "Failed to generate $js_filename"
fi
fi
done

0 comments on commit ab45ef0

Please sign in to comment.