Skip to content

Commit 3d3eaae

Browse files
authored
feat: download github avatars (#28)
1 parent 0b13585 commit 3d3eaae

7 files changed

Lines changed: 403 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

33
# Compiled output
4+
/src/assets/avatars/
45
/src/assets/metadata/
56
/src/assets/docs/
67
/src/sitemap.xml

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Run `pnpm install` to install all dependencies.
1414

1515
Run `pnpm start` for a dev server. Navigate to `http://localhost:8801/`. The application will automatically reload if you change any of the source files.
1616

17+
> Before starting the dev server, make sure you have run `pnpm avatar` to load the avatars of the team members.
18+
1719
### Build
1820

1921
Run `pnpm build` to build the project. The build artifacts will be stored in the `dist/` directory.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"name": "paimon-next-website",
33
"version": "0.0.0",
44
"scripts": {
5+
"avatar": "tsx ./src/load-avatars.ts",
56
"parse": "cd library/markdown-parser && npm run parse",
67
"prestart": "npm run parse",
78
"start": "ng serve --port 8801",
8-
"prebuild": "npm run parse",
9+
"prebuild": "npm run avatar && npm run parse",
910
"build": "ng build",
1011
"serve:ssr": "node dist/server/server.mjs",
1112
"i18n:extract": "ngx-translate-extract --input ./src --output ./src/assets/i18n/{en,zh}.json -ss -k --clean --format json",
@@ -60,6 +61,7 @@
6061
"prettier-plugin-tailwindcss": "^0.6.6",
6162
"tailwindcss": "^3.4.10",
6263
"tailwindcss-animation-delay": "^2.0.1",
64+
"tsx": "^4.21.0",
6365
"typescript": "~5.5.2",
6466
"typescript-eslint": "8.2.0"
6567
},

0 commit comments

Comments
 (0)