Skip to content

Commit f376aca

Browse files
committed
chore: init
1 parent 64dfedb commit f376aca

19 files changed

Lines changed: 4765 additions & 0 deletions

.commitlintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
extends: ["@commitlint/config-conventional"]
3+
}

.editorconfig

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

.github/pull_request_template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Description
2+
3+
Please include a summary of the changes.

.github/workflows/test.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v2
16+
17+
- name: set outputs
18+
id: vars
19+
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
20+
21+
- name: start build notification
22+
uses: appleboy/telegram-action@master
23+
with:
24+
to: ${{ secrets.TELEGRAM_CHAT }}
25+
token: ${{ secrets.TELEGRAM_TOKEN }}
26+
disable_web_page_preview: true
27+
format: html
28+
message: |
29+
⏳ <a href="${{ github.server_url }}/${{ github.repository }}"><b>${{ github.repository }}</b></a>
30+
31+
${{ github.workflow }}
32+
33+
by: ${{ github.actor }}
34+
branch: ${{ github.ref }}
35+
commit: ${{ github.event.head_commit.message }}
36+
sha: ${{ steps.vars.outputs.sha_short }}
37+
38+
<a href="${{ github.event.head_commit.url }}">link</a>
39+
40+
- name: install tools from asdf config
41+
uses: ai/asdf-cache-action@v1
42+
43+
- name: install dependencies
44+
run: pnpm install
45+
46+
- name: build packages
47+
run: pnpm build
48+
49+
- name: test
50+
run: pnpm test
51+
52+
- name: finish build notification
53+
uses: appleboy/telegram-action@master
54+
if: always()
55+
with:
56+
to: ${{ secrets.TELEGRAM_CHAT }}
57+
token: ${{ secrets.TELEGRAM_TOKEN }}
58+
disable_web_page_preview: true
59+
format: html
60+
message: |
61+
${{ job.status == 'success' && '✅' || '🆘' }} <a href="${{ github.server_url }}/${{ github.repository }}"><b>${{ github.repository }}</b></a>
62+
63+
${{ github.workflow }}
64+
65+
by: ${{ github.actor }}
66+
branch: ${{ github.ref }}
67+
commit: ${{ github.event.head_commit.message }}
68+
sha: ${{ steps.vars.outputs.sha_short }}
69+
70+
<a href="${{ github.event.head_commit.url }}">link</a>

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Node.js
2+
node_modules/
3+
4+
# Build
5+
dist/
6+
7+
# Editor
8+
.vscode/
9+
.vim/
10+
11+
# Test
12+
coverage/
13+
14+
# Misc
15+
.DS_Store

.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"endOfLine": "lf",
5+
"printWidth": 80,
6+
"quoteProps": "as-needed",
7+
"semi": false,
8+
"singleQuote": true,
9+
"tabWidth": 2,
10+
"trailingComma": "all",
11+
"useTabs": false
12+
}

.simple-git-hooks.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"commit-msg": "pnpm exec commitlint -e \"$@\""
3+
}

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nodejs 20.0.0
2+
pnpm 8.3.1

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 0.1.0 (2023-05-06)
2+
3+
* initial release

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import config from '@azat-io/eslint-config-typescript'
2+
3+
export default config

0 commit comments

Comments
 (0)