Skip to content

Commit

Permalink
chore: add sponsorkit
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-bell committed Sep 28, 2024
1 parent ac1ed92 commit 388edc3
Show file tree
Hide file tree
Showing 8 changed files with 2,842 additions and 2,171 deletions.
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
; GitHub provider.
; Token requires the `read:user` and `read:org` scopes.
SPONSORKIT_GITHUB_TOKEN=
SPONSORKIT_GITHUB_LOGIN=
; Polar provider.
; Token requires the `user:read`, `organizations:read`, `products:read`, `benefits:read` and `subscriptions:read` scopes.
; Get your token at https://polar.sh/settings
SPONSORKIT_POLAR_TOKEN=
SPONSORKIT_POLAR_ORGANIZATION=cva
Binary file added .github/static/sponsorkit/sponsors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions .github/static/sponsorkit/sponsors.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ dist
coverage
.next
.swc
*.tsbuildinfo
*.tsbuildinfo
.env
.github/static/sponsorkit/**/*.json
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@

<br />

<a href="https://polar.sh/cva"><picture><source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/embed/tiers.svg?org=cva&darkmode"><img alt="Subscription Tiers on Polar" src="https://polar.sh/embed/tiers.svg?org=cva"></picture></a>

<p align="center">
<a href="./.github/static/sponsorkit/sponsors.svg">
<img src='./.github/static/sponsorkit/sponsors.svg'/>
</a>
</p>

## Documentation

Visit [**cva.style**](https://cva.style) to get started.
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"prettier": "prettier --config .prettierrc.js --ignore-unknown --no-error-on-unmatched-pattern",
"syncpack": "SYNCPACK_VERBOSE=true syncpack list-mismatches --config .config/.syncpackrc",
"test": "vitest --config .config/vitest.config.ts run --coverage",
"bundlesize": "pnpm run --filter './packages/**' --parallel bundlesize"
"bundlesize": "pnpm run --filter './packages/**' --parallel bundlesize",
"sponsors": "sponsorkit"
},
"devDependencies": {
"@vitest/coverage-v8": "1.5.0",
Expand All @@ -25,6 +26,8 @@
"prettier-plugin-astro": "0.13.0",
"prettier-plugin-packagejson": "2.5.0",
"prettier-plugin-tailwindcss": "0.5.14",
"sharp": "^0.33.2",
"sponsorkit": "^0.15.5",
"syncpack": "12.3.1",
"typescript": "5.4.5",
"vitest": "1.5.0"
Expand Down
4,946 changes: 2,777 additions & 2,169 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions sponsor.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineConfig, tierPresets } from "sponsorkit";

export default defineConfig({
renderer: "tiers",
outputDir: ".github/static/sponsorkit",
tiers: [
{
title: "Backers",
preset: tierPresets.none,
},
{
title: "Individual Backers",
monthlyDollars: 5,
preset: tierPresets.small,
},
{
title: "Generous Backers",
monthlyDollars: 25,
preset: tierPresets.medium,
},
],
});

0 comments on commit 388edc3

Please sign in to comment.