Skip to content

Commit f38ac52

Browse files
committed
init codebase
1 parent 0b762e5 commit f38ac52

21 files changed

Lines changed: 811 additions & 1 deletion

.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/config@3.0.0/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "stainless-code/react-custom-events"
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+
};
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: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
format:
10+
name: 💅 Format
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout branch
14+
uses: actions/checkout@v4
15+
16+
- name: Setup
17+
uses: ./.github/actions/setup
18+
19+
- name: Run format
20+
run: bun run format:check
21+
22+
lint:
23+
name: 🕵 Lint
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout branch
27+
uses: actions/checkout@v4
28+
29+
- name: Setup
30+
uses: ./.github/actions/setup
31+
32+
- name: Run lint
33+
run: bun run lint
34+
35+
typecheck:
36+
name: ✅ Typecheck
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout branch
40+
uses: actions/checkout@v4
41+
42+
- name: Setup
43+
uses: ./.github/actions/setup
44+
45+
- name: Run typecheck
46+
run: bun run typecheck
47+
48+
test:
49+
name: 🧪 Test
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Checkout branch
53+
uses: actions/checkout@v4
54+
55+
- name: Setup
56+
uses: ./.github/actions/setup
57+
58+
- name: Run test
59+
run: bun run test
60+
61+
build:
62+
name: 🧰 Build
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Checkout branch
66+
uses: actions/checkout@v4
67+
68+
- name: Setup
69+
uses: ./.github/actions/setup
70+
71+
- name: Run build
72+
run: bun run build

.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

0 commit comments

Comments
 (0)