Skip to content

Commit 738b120

Browse files
committed
clone sponsors instead of using npm to skip caches
1 parent 96cfa28 commit 738b120

File tree

5 files changed

+104
-13
lines changed

5 files changed

+104
-13
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@
1717
npm-debug.log*
1818
yarn-debug.log*
1919
yarn-error.log*
20+
21+
/temp

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,26 @@
66
"scripts": {
77
"prepare": "husky",
88
"dev": "vitepress dev",
9-
"build": "vitepress build",
9+
"build": "pnpm run sponsors && vitepress build",
1010
"preview": "vitepress preview",
1111
"fmt": "prettier",
1212
"textlint": "textlint 'src/**/*.md'",
1313
"textlint:check": "pnpm run textlint",
1414
"textlint:fix": "pnpm run textlint --fix",
1515
"typecheck": "tsc",
16-
"create-blog-post": "tsx ./cli/index.ts create-blog-post"
16+
"create-blog-post": "tsx ./cli/index.ts create-blog-post",
17+
"sponsors": "degit Boshen/sponsors temp --force && mv temp/sponsors.svg public/sponsors.svg"
1718
},
1819
"devDependencies": {
1920
"@types/node": "^20.11.4",
2021
"@vueuse/core": "^10.7.2",
2122
"citty": "^0.1.5",
2223
"consola": "^3.2.3",
24+
"degit": "^2.8.4",
2325
"feed": "^4.2.2",
2426
"husky": "^9.0.0",
2527
"lint-staged": "15.2.5",
2628
"prettier": "4.0.0-alpha.8",
27-
"sponsors": "https://github.com/Boshen/sponsors",
2829
"textlint": "^14.0.0",
2930
"textlint-filter-rule-comments": "^1.2.2",
3031
"textlint-rule-doubled-spaces": "^1.0.2",

pnpm-lock.yaml

+10-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)