Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ improve script to update svg tester configs #3928

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions devTools/svgTester/update-configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ set -o pipefail # treats pipeline command as failed when one command in the pip
SVGS_REPO=../owid-grapher-svgs
CONFIGS_DIR=$SVGS_REPO/configs
REFERENCES_DIR=$SVGS_REPO/svg
ALL_VIEWS_DIR=$SVGS_REPO/all-views/svg
ALL_VIEWS_DIR=$SVGS_REPO/all-views
ALL_VIEWS_SVG_DIR=$SVGS_REPO/all-views/svg
CHART_IDS_FILE=$SVGS_REPO/most-viewed-charts.txt

usage() {
Expand Down Expand Up @@ -39,7 +40,7 @@ main() {
-o $REFERENCES_DIR
node itsJustJavascript/devTools/svgTester/export-graphs.js\
-i $CONFIGS_DIR\
-o $ALL_VIEWS_DIR\
-o $ALL_VIEWS_SVG_DIR\
-f $CHART_IDS_FILE\
--all-views
}
Expand Down