Skip to content

Commit c1b6e57

Browse files
committed
Port scripts to node.
2 parents 4e142d8 + c498e2f commit c1b6e57

File tree

7 files changed

+1910
-3712
lines changed

7 files changed

+1910
-3712
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ dmypy.json
128128
.pyre/
129129

130130
.vscode/
131+
.idea/
131132
out/
132133
.next/
133134
.DS_Store

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"dev": "astro dev",
77
"start": "astro dev",
88
"build": "pnpm generate_content && astro check && astro build && pnpm pagefind --site dist",
9-
"update_data": "pipx run scripts/download-data.py",
10-
"generate_content": "pipx run scripts/generate_content.py",
9+
"update_data": "NODE_TLS_REJECT_UNAUTHORIZED=0 node src/scripts/fetchData.js",
10+
"generate_content": "node src/scripts/generateContent.js",
1111
"preview": "astro preview",
1212
"astro": "astro",
1313
"format": "prettier --write --plugin=prettier-plugin-astro ."
@@ -42,6 +42,7 @@
4242
"typescript": "^5.7.3"
4343
},
4444
"devDependencies": {
45+
"js-yaml": "^4.1.0",
4546
"prettier": "^3.4.2",
4647
"prettier-plugin-astro": "^0.14.1"
4748
},

0 commit comments

Comments
 (0)