Skip to content

Commit 15b762d

Browse files
committed
feat: initial commit
0 parents  commit 15b762d

121 files changed

Lines changed: 15994 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/settings.json‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"$schema": "https://json.schemastore.org/claude-code-settings.json",
3+
"env": {
4+
"NODE_ENV": "development"
5+
},
6+
"permissions": {
7+
"allow": [
8+
"Bash(pnpm install)",
9+
"Bash(pnpm test)",
10+
"Bash(pnpm test:watch)",
11+
"Bash(pnpm lint)",
12+
"Bash(pnpm lint:fix)",
13+
"Bash(pnpm typecheck)",
14+
"Bash(pnpm format)",
15+
"Bash(pnpm format:check)",
16+
"Bash(pnpm build)",
17+
"Bash(vitest *)",
18+
"Bash(oxlint *)",
19+
"Bash(oxfmt *)",
20+
"Bash(tsc *)",
21+
"Bash(rslib build *)",
22+
"Bash(git status *)",
23+
"Bash(git log *)",
24+
"Bash(git diff *)",
25+
"Bash(git show *)",
26+
"Bash(git branch *)",
27+
28+
"Bash(rtk pnpm install)",
29+
"Bash(rtk vitest *)",
30+
"Bash(rtk lint *)",
31+
"Bash(rtk tsc *)",
32+
"Bash(rtk grep *)",
33+
"Bash(rtk ls *)",
34+
"Bash(rtk read *)",
35+
"Bash(rtk find *)",
36+
"Bash(rtk diff *)",
37+
"Bash(rtk smart *)",
38+
"Bash(rtk json *)",
39+
"Bash(rtk pnpm list *)",
40+
"Bash(rtk git status *)",
41+
"Bash(rtk git log *)",
42+
"Bash(rtk git diff *)",
43+
44+
"WebSearch",
45+
"WebFetch",
46+
47+
"mcp__claude_ai_Context7__resolve-library-id",
48+
"mcp__claude_ai_Context7__query-docs",
49+
"mcp__plugin_context7_context7__resolve-library-id",
50+
"mcp__plugin_context7_context7__query-docs"
51+
]
52+
}
53+
}

‎.github/FUNDING.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: seshuk
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Bug Report
2+
description: Report a bug or unexpected behavior
3+
title: '[Bug]: '
4+
labels: ['bug', 'needs-triage']
5+
assignees: []
6+
7+
body:
8+
- type: checkboxes
9+
id: prerequisites
10+
attributes:
11+
label: Prerequisites
12+
options:
13+
- label: I have searched existing issues to ensure this bug hasn't been reported already
14+
required: true
15+
- label: I have read the [documentation](https://github.com/maximseshuk/payload-plugin-openapi#readme)
16+
required: true
17+
18+
- type: textarea
19+
id: description
20+
attributes:
21+
label: Describe the Bug
22+
description: Tell us what happened, what you expected, and how to reproduce the issue
23+
placeholder: |
24+
What happened:
25+
What you expected:
26+
Steps to reproduce:
27+
1.
28+
2.
29+
3.
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: config
35+
attributes:
36+
label: Plugin Configuration
37+
description: Share your plugin setup
38+
placeholder: |
39+
```typescript
40+
openapi({
41+
metadata: {
42+
title: 'My API',
43+
version: '1.0.0',
44+
},
45+
})
46+
```
47+
render: typescript
48+
validations:
49+
required: true
50+
51+
- type: textarea
52+
id: versions
53+
attributes:
54+
label: Environment Info
55+
description: |
56+
Paste output from `pnpm payload info` or list your versions.
57+
Please use specific version numbers instead of "latest" to help us debug faster.
58+
placeholder: |
59+
@seshuk/payload-plugin-openapi: 0.1.0
60+
payload: 3.53.0
61+
next: 15.4.4
62+
node: 20.9.0
63+
render: shell
64+
validations:
65+
required: true
66+
67+
- type: input
68+
id: code-link
69+
attributes:
70+
label: Link to reproduction code (if needed)
71+
description: Optional link to minimal reproduction repository
72+
placeholder: https://github.com/username/repo
73+
74+
- type: textarea
75+
id: logs
76+
attributes:
77+
label: Error Logs
78+
description: Error messages, stack traces, or console logs
79+
render: shell
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Question / Support
2+
description: Ask a question or get help with using the plugin
3+
title: '[Question]: '
4+
labels: ['question']
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
**Before asking:** Please check the [documentation](https://github.com/maximseshuk/payload-plugin-openapi#readme) and [existing issues](https://github.com/maximseshuk/payload-plugin-openapi/issues).
12+
13+
- type: textarea
14+
id: question
15+
attributes:
16+
label: Your Question
17+
description: What do you need help with?
18+
placeholder: |
19+
Please tell us:
20+
- What you're trying to accomplish
21+
- What problem you're encountering
22+
- What you've tried so far
23+
- Any error messages you're seeing
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: current-config
29+
attributes:
30+
label: Current Configuration (if relevant)
31+
description: Share your plugin setup
32+
placeholder: |
33+
```typescript
34+
openapi({
35+
metadata: {
36+
title: 'My API',
37+
version: '1.0.0',
38+
},
39+
})
40+
```
41+
render: typescript
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Feature Request
2+
description: Suggest a new feature or enhancement for the plugin
3+
title: '[Feature]: '
4+
labels: ['enhancement', 'needs-triage']
5+
assignees: []
6+
7+
body:
8+
- type: checkboxes
9+
id: prerequisites
10+
attributes:
11+
label: Prerequisites
12+
options:
13+
- label: I have searched existing issues to make sure this feature hasn't been requested before
14+
required: true
15+
- label: I have checked the [documentation](https://github.com/maximseshuk/payload-plugin-openapi#readme) to confirm this feature doesn't already exist
16+
required: true
17+
18+
- type: textarea
19+
id: description
20+
attributes:
21+
label: Feature Description
22+
description: What would you like to see, and what problem does it solve?
23+
placeholder: |
24+
- What problem does this solve?
25+
- How should it work?
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: config-example
31+
attributes:
32+
label: Example Configuration (optional)
33+
description: If this involves config changes, show what you imagine it would look like
34+
placeholder: |
35+
```typescript
36+
openapi({
37+
metadata: {
38+
title: 'My API',
39+
version: '1.0.0',
40+
},
41+
// Your proposed option here
42+
})
43+
```
44+
render: typescript

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Documentation
4+
url: https://github.com/maximseshuk/payload-plugin-openapi#readme
5+
about: Check the documentation for setup and configuration guides

‎.github/workflows/ci.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
env:
13+
NEXT_TELEMETRY_DISABLED: 1
14+
15+
jobs:
16+
check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v6
20+
- uses: pnpm/action-setup@v6
21+
with:
22+
version: 11
23+
- uses: actions/setup-node@v6
24+
with:
25+
node-version: 22
26+
cache: pnpm
27+
- run: pnpm install
28+
- run: pnpm lint
29+
- run: pnpm format:check
30+
- run: pnpm typecheck
31+
- run: pnpm test
32+
- run: pnpm build

‎.github/workflows/release.yml‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: ['v*.*.*']
5+
6+
permissions:
7+
contents: write
8+
id-token: write
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
with:
16+
fetch-depth: 0
17+
- uses: pnpm/action-setup@v6
18+
with:
19+
version: 11
20+
- uses: actions/setup-node@v6
21+
with:
22+
node-version: 22
23+
cache: pnpm
24+
registry-url: https://registry.npmjs.org/
25+
26+
- run: pnpm install
27+
- run: pnpm lint
28+
- run: pnpm typecheck
29+
- run: pnpm test
30+
- run: pnpm build
31+
32+
- name: Generate changelog
33+
uses: orhun/git-cliff-action@v4
34+
id: changelog
35+
with:
36+
config: cliff.toml
37+
args: --latest --strip header --github-repo ${{ github.repository }}
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Create GitHub Release
42+
uses: softprops/action-gh-release@v3
43+
with:
44+
body: ${{ steps.changelog.outputs.content }}
45+
46+
- run: pnpm publish --access public --provenance --no-git-checks
47+
env:
48+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

‎.gitignore‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.db
2+
*.log
3+
*.tsbuildinfo
4+
.claude/settings.local.json
5+
.DS_Store
6+
.env*
7+
coverage
8+
dist
9+
node_modules
10+
tests/.next
11+
tests/node_modules

‎.vscode/extensions.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["oxc.oxc-vscode"]
3+
}

0 commit comments

Comments
 (0)