Skip to content

Commit 8d07d8a

Browse files
Merge pull request #1 from stainless-code/init
rollout for publish
2 parents b15f899 + d7a35e0 commit 8d07d8a

23 files changed

+1108
-1
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "stainless-code/react-paginate"
7+
}
8+
],
9+
"commit": false,
10+
"fixed": [],
11+
"linked": [],
12+
"access": "public",
13+
"baseBranch": "main",
14+
"updateInternalDependencies": "patch",
15+
"ignore": []
16+
}

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true

.eslintrc.cjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/** @type {import("eslint").Linter.Config} */
2+
module.exports = {
3+
env: {
4+
browser: true,
5+
es2021: true,
6+
node: true,
7+
},
8+
extends: [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:react/recommended",
12+
"plugin:react/jsx-runtime",
13+
"prettier",
14+
],
15+
parser: "@typescript-eslint/parser",
16+
parserOptions: {
17+
ecmaVersion: "latest",
18+
sourceType: "module",
19+
},
20+
plugins: ["@typescript-eslint", "react"],
21+
settings: {
22+
react: {
23+
version: "detect",
24+
},
25+
},
26+
rules: {
27+
"@typescript-eslint/no-explicit-any": "off",
28+
},
29+
};

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [SutuSebastian]

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/actions/setup/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Setup
2+
description: Setup Bun and install packages
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup Bun
8+
uses: oven-sh/setup-bun@v1
9+
with:
10+
bun-version: latest
11+
12+
- name: Install packages
13+
shell: bash
14+
run: bun install

.github/workflows/ci.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
format:
10+
if: github.event.pull_request.head.ref != 'changeset-release/main'
11+
name: 💅 Format
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout branch
15+
uses: actions/checkout@v4
16+
17+
- name: Setup
18+
uses: ./.github/actions/setup
19+
20+
- name: Run format
21+
run: bun run format:check
22+
23+
lint:
24+
if: github.event.pull_request.head.ref != 'changeset-release/main'
25+
name: 🕵 Lint
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout branch
29+
uses: actions/checkout@v4
30+
31+
- name: Setup
32+
uses: ./.github/actions/setup
33+
34+
- name: Run lint
35+
run: bun run lint
36+
37+
typecheck:
38+
if: github.event.pull_request.head.ref != 'changeset-release/main'
39+
name: ✅ Typecheck
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout branch
43+
uses: actions/checkout@v4
44+
45+
- name: Setup
46+
uses: ./.github/actions/setup
47+
48+
- name: Run typecheck
49+
run: bun run typecheck
50+
51+
test:
52+
if: github.event.pull_request.head.ref != 'changeset-release/main'
53+
name: 🧪 Test
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Checkout branch
57+
uses: actions/checkout@v4
58+
59+
- name: Setup
60+
uses: ./.github/actions/setup
61+
62+
- name: Run test
63+
run: bun run test
64+
65+
build:
66+
if: github.event.pull_request.head.ref != 'changeset-release/main'
67+
name: 🧰 Build
68+
runs-on: ubuntu-latest
69+
steps:
70+
- name: Checkout branch
71+
uses: actions/checkout@v4
72+
73+
- name: Setup
74+
uses: ./.github/actions/setup
75+
76+
- name: Run build
77+
run: bun run build
78+
79+
status-check:
80+
if: github.event.pull_request.head.ref == 'changeset-release/main'
81+
name: 📋 Status check
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Report Success
85+
run: echo "Marking all checks as successful for changeset-release/main branch."

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout branch
16+
uses: actions/checkout@v4
17+
18+
- name: Setup
19+
uses: ./.github/actions/setup
20+
21+
- name: Create Release Pull Request or Publish to NPM
22+
id: changesets
23+
uses: changesets/action@v1
24+
with:
25+
publish: bun run release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
dist
3+
node_modules

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"DavidAnson.vscode-markdownlint",
4+
"dbaeumer.vscode-eslint",
5+
"esbenp.prettier-vscode",
6+
"oven.bun-vscode",
7+
"yoavbls.pretty-ts-errors"
8+
]
9+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": "explicit"
4+
},
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.formatOnSave": true,
7+
"typescript.tsdk": "node_modules/typescript/lib"
8+
}

0 commit comments

Comments
 (0)