Skip to content

Commit 6733cd0

Browse files
feat: initial commit
0 parents  commit 6733cd0

30 files changed

+591
-0
lines changed

.commitlintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://json.schemastore.org/commitlintrc.json",
3+
"extends": ["@commitlint/config-conventional"]
4+
}

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = true
2+
3+
[*]
4+
tab_width = 2
5+
indent_style = space
6+
insert_final_newline = true
7+
end_of_line = lf

.eslintignore

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

.eslintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://json.schemastore.org/eslintrc",
3+
"root": true,
4+
"env": {
5+
"es6": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended-type-checked",
10+
"plugin:@typescript-eslint/stylistic-type-checked",
11+
"prettier"
12+
],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"sourceType": "module",
16+
"project": "tsconfig.json"
17+
},
18+
"plugins": ["@typescript-eslint"]
19+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.lockb binary diff=lockb
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Bug report
2+
description: Report errors or unexpected behavior
3+
labels: bug
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Is there already an issue for your problem?
8+
description: Please make sure you are not creating an already submitted issue. Check closed issues as well.
9+
options:
10+
- label: I have checked older issues, open and closed
11+
required: true
12+
13+
- type: checkboxes
14+
attributes:
15+
label: Are you using the latest version of the package?
16+
description: Please make sure you are using the latest version of the package. If you are not, please update and check if the issue still persists.
17+
options:
18+
- label: I am using the latest version
19+
required: true
20+
21+
- type: input
22+
attributes:
23+
label: Where are you running the package?
24+
description: Please provide the information about the rutime you are using.
25+
placeholder: Node.js v20.0.0
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
attributes:
31+
label: What steps can reproduce the bug?
32+
description: Explain the bug and provide a code snippet that can reproduce it.
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
attributes:
38+
label: What is the expected behavior?
39+
40+
- type: textarea
41+
attributes:
42+
label: What do you see instead?
43+
44+
- type: textarea
45+
attributes:
46+
label: Additional information
47+
description: Any other additional information that may help.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Feature Request
2+
description: Request a new feature or enhancement
3+
labels: enhancement
4+
body:
5+
- type: textarea
6+
id: description
7+
attributes:
8+
label: Provide a description of the new feature
9+
description: What is the expected behavior of the proposed feature? What is the scenario this would be used?
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
id: additional-information
15+
attributes:
16+
label: Additional Information
17+
description: Give me some additional information on the feature request like proposed solutions, links, screenshots, etc.

.github/workflows/check.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Check Package
2+
3+
on:
4+
workflow_call:
5+
pull_request:
6+
7+
jobs:
8+
check_format:
9+
name: Check formatting
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v1
17+
18+
- name: Install dependencies
19+
run: bun install --frozen-lockfile
20+
21+
- name: Run formatting check
22+
run: bun run format:check
23+
24+
check_types:
25+
name: Check types
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout repo
29+
uses: actions/checkout@v4
30+
31+
- name: Setup Bun
32+
uses: oven-sh/setup-bun@v1
33+
34+
- name: Install dependencies
35+
run: bun install --frozen-lockfile
36+
37+
- name: Run types check
38+
run: bun run type-check
39+
40+
lint:
41+
name: Lint code
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout repo
45+
uses: actions/checkout@v4
46+
47+
- name: Setup Bun
48+
uses: oven-sh/setup-bun@v1
49+
50+
- name: Install dependencies
51+
run: bun install --frozen-lockfile
52+
53+
- name: Run linter
54+
run: bun run lint
55+
56+
test:
57+
name: Test code
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: Checkout repo
61+
uses: actions/checkout@v4
62+
63+
- name: Setup Bun
64+
uses: oven-sh/setup-bun@v1
65+
66+
- name: Install dependencies
67+
run: bun install --frozen-lockfile
68+
69+
- name: Run tests
70+
run: bun run test
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Lint Pull Request Title
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
lint_title:
12+
name: Lint title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Run linting action
16+
uses: amannn/action-semantic-pull-request@v5

0 commit comments

Comments
 (0)