-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contributorkit.config.ts
81 lines (78 loc) · 1.75 KB
/
contributorkit.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import { defineConfig, tierPresets } from 'sponsorkit'
export default defineConfig({
// includePrivate: true,
// tiers: [
// {
// title: 'Past Sponsors',
// monthlyDollars: -1,
// preset: tierPresets.xs,
// },
// {
// title: 'Backers',
// // to replace the entire tier rendering
// // compose: (composer, tierSponsors, config) => {
// // composer.addRaw(
// // '<-- custom svg -->',
// // )
// // },
// },
// {
// title: 'Sponsors',
// monthlyDollars: 10,
// preset: tierPresets.medium,
// // to insert custom elements after the tier block
// composeAfter: (composer, _tierSponsors, _config) => {
// composer.addSpan(10)
// },
// },
// {
// title: 'Silver Sponsors',
// monthlyDollars: 50,
// preset: tierPresets.large,
// },
// {
// title: 'Gold Sponsors',
// monthlyDollars: 100,
// preset: tierPresets.xl,
// },
// ],
// Run multiple renders with different configurations
// renders: [
// {
// name: 'sponsors',
// width: 800,
// formats: ['svg', 'png'],
// },
// {
// name: 'sponsors-wide',
// width: 1000,
// formats: ['svg'],
// },
// {
// renderer: 'circles',
// name: 'sponsors-circles',
// width: 1000,
// includePastSponsors: true,
// },
// ],
outputDir: '.',
owner: 'vercel',
repo: 'next.js',
renders: [
{
name: 'contributor',
width: 800,
formats: ['svg', 'png'],
},
{
name: 'contributor-wide',
width: 1000,
formats: ['svg'],
},
{
renderer: 'circles',
name: 'contributor-circles',
width: 1000,
},
],
})