Skip to content

Commit

Permalink
create stub index.json to prevent build crash in deployment preview
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrosquall committed Mar 30, 2024
1 parent 389f09d commit c4687a1
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions scripts/build-editor-preview.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,23 @@ git clone https://github.com/vega/editor.git

#
cd editor
yarn --frozen-lockfile
yarn --frozen-lockfile --ignore-scripts
yarn link vega-lite

# TODO: load in real files if we can get rsync installed in the runner someday?
# Put index.json files in public/spec/vega-lite and public/spec/vega
# Create the files if they don't exist
echo "Creating stub index.json for examples"
touch public/spec/vega-lite/index.json
touch public/spec/vega/index.json

# TODO: load in real files if RSYNC is installable?
cat <<EOF > public/spec/vega-lite/index.json
{}
EOF

cat <<EOF > public/spec/vega/index.json
{}
EOF



# TODO : need to create some vendor files?
# TBD if some vendor files are needed
yarn build:only

0 comments on commit c4687a1

Please sign in to comment.