Skip to content

Commit 9c92c63

Browse files
committed
Port scripts to Node.
1 parent 254504b commit 9c92c63

File tree

9 files changed

+1903
-3660
lines changed

9 files changed

+1903
-3660
lines changed

.gitignore

Lines changed: 9 additions & 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
@@ -138,3 +139,11 @@ storybook-static/
138139
# Sentry Auth Token
139140
.sentryclirc
140141
.astro
142+
143+
# EuroPython website
144+
src/content/speakers
145+
src/content/sessions
146+
src/content/days
147+
src/data/speakers.json
148+
src/data/sessions.json
149+
src/data/schedule.json

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ pre:
3131

3232
install:
3333
pnpm install
34+
[ "$(PREVIEW)" = "true" ] && pnpm update_data || true
35+
pnpm generate_content
3436

3537
dev:
3638
pnpm dev

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"scripts": {
66
"dev": "astro dev",
77
"start": "astro dev",
8-
"build": "astro check && astro build && pnpm pagefind --site dist",
8+
"build": "pnpm generate_content && astro check && astro build && pnpm pagefind --site dist",
9+
"update_data": "NODE_TLS_REJECT_UNAUTHORIZED=0 node src/scripts/fetchData.js",
10+
"generate_content": "node src/scripts/generateContent.js",
911
"preview": "astro preview",
1012
"astro": "astro",
1113
"format": "prettier --write --plugin=prettier-plugin-astro ."
@@ -29,6 +31,7 @@
2931
"date-fns": "^4.1.0",
3032
"date-fns-tz": "^3.2.0",
3133
"hastscript": "^9.0.0",
34+
"js-yaml": "^4.1.0",
3235
"pagefind": "^1.3.0",
3336
"react": "^19.0.0",
3437
"react-dom": "^19.0.0",
@@ -40,6 +43,7 @@
4043
"typescript": "^5.7.3"
4144
},
4245
"devDependencies": {
46+
"@types/js-yaml": "^4.0.9",
4347
"prettier": "^3.4.2",
4448
"prettier-plugin-astro": "^0.14.1"
4549
},

0 commit comments

Comments
 (0)