Skip to content

Commit

Permalink
feat: add parquet files to index
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 27, 2024
1 parent 3987d4e commit 5f9c4d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"files": [
"src",
"build",
"data"
"data",
"datapackage.json"
],
"devDependencies": {
"@babel/core": "^7.26.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/make-url-index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo "import {version} from '../package.json';"
echo 'export default {'
echo ''

for file in data/*.json data/*.csv data/*.tsv data/*.arrow; do
for file in data/*.json data/*.csv data/*.tsv data/*.arrow data/*.parquet; do
name=${file##*/}
echo " '$name': \`https://cdn.jsdelivr.net/npm/vega-datasets@\${version}/data/$name\`,"
done
Expand Down
1 change: 1 addition & 0 deletions src/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ export default {
'zipcodes.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/zipcodes.csv`,
'unemployment.tsv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/unemployment.tsv`,
'flights-200k.arrow': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/flights-200k.arrow`,
'flights-3m.parquet': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/flights-3m.parquet`,
}

0 comments on commit 5f9c4d7

Please sign in to comment.