Skip to content

Commit

Permalink
feat: use static directory for contributions data
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw committed Dec 21, 2023
1 parent 198657c commit 6ac2f16
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ yarn-error.log*

# storybook
storybook-static
data/configs
static/data/configs

# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
# Yarn v2
Expand Down
1 change: 0 additions & 1 deletion data/contributions.json

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/dump-contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ fetch(url, options).then(async (response) => {

const contributionsData = dataSchema.parse(data);

fs.writeFileSync('./data/contributions.json', JSON.stringify(contributionsData));
fs.writeFileSync('./static/data/contributions.json', JSON.stringify(contributionsData));
});
File renamed without changes.
1 change: 1 addition & 0 deletions static/data/contributions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]

0 comments on commit 6ac2f16

Please sign in to comment.