Skip to content

Commit f067227

Browse files
author
Evgeny Zakharov
committed
Initial commit
0 parents  commit f067227

30 files changed

+10726
-0
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.eslintrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const { configure, presets } = require('eslint-kit')
2+
3+
module.exports = configure({
4+
allowDebug: process.env.NODE_ENV !== 'production',
5+
6+
presets: [
7+
presets.imports(),
8+
presets.node(),
9+
presets.prettier(),
10+
presets.typescript(),
11+
],
12+
})

.github/pr-labeler.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
feature: ['feature/*', 'feat/*']
2+
refactor: ['refactor/*']
3+
fix: ['fix/*', 'bugfix/*', 'hotfix/*']
4+
style: ['style/*']
5+
chore: ['chore/*']
6+
dependencies: ['deps/*']
7+
ci: ['ci/*']
8+
documentation: ['docs/*']
9+
tests: ['tests/*']
10+
optimization: ['optimization/*']

.github/release-drafter.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
categories:
2+
- title: '⚠️ Breaking changes'
3+
label: 'BREAKING CHANGES'
4+
5+
- title: '🚀 Features'
6+
label: 'feature'
7+
8+
- title: '🛠 Refactor'
9+
label: 'refactor'
10+
11+
- title: '🐛 Bug Fixes'
12+
label: 'fix'
13+
14+
- title: '💅 Style'
15+
label: 'style'
16+
17+
- title: '🧰 Maintenance'
18+
labels:
19+
- 'chore'
20+
- 'dependencies'
21+
- 'ci'
22+
23+
- title: '📚 Documentation'
24+
label: 'documentation'
25+
26+
- title: '🧪 Tests'
27+
label: 'tests'
28+
29+
- title: '🏎 Optimizations'
30+
label: 'optimizations'
31+
32+
version-resolver:
33+
major:
34+
labels:
35+
- 'BREAKING CHANGES'
36+
minor:
37+
labels:
38+
- 'feature'
39+
- 'enhancement'
40+
- 'dependencies'
41+
patch:
42+
labels:
43+
- 'fix'
44+
- 'bugfix'
45+
- 'bug'
46+
- 'optimizations'
47+
- 'refactor'
48+
- 'style'
49+
default: patch
50+
51+
name-template: 'v$RESOLVED_VERSION'
52+
tag-template: 'v$RESOLVED_VERSION'
53+
54+
change-template: '- $TITLE #$NUMBER (@$AUTHOR)'
55+
template: |
56+
$CHANGES

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches: ['main', 'release/alpha', 'release/beta', 'release/next']
6+
7+
jobs:
8+
test-and-build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
17+
- name: Build
18+
if: steps.cache.outputs.cache-hit != 'true'
19+
run: |
20+
yarn install --frozen-lockfile
21+
yarn build

.github/workflows/pr-labeler.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: PR Labeler
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
pr-labeler:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: TimonVS/pr-labeler-action@v3
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
update-release-draft:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: release-drafter/release-drafter@v5
12+
with:
13+
disable-autolabeler: true
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 20
14+
15+
- name: Setup git
16+
run: |
17+
git config --global user.name "GitHub Actions Bot"
18+
git config --global user.email "<>"
19+
20+
- name: Checkout to released tag
21+
uses: actions/checkout@v3
22+
23+
- name: Parse version from tag
24+
id: version
25+
uses: release-kit/semver@v2
26+
27+
- name: Force update remote latest release branch
28+
run: git push origin ${{ github.event.release.tag_name }}:refs/heads/release/latest -f
29+
30+
- name: Force update remote major release branch
31+
run: git push origin ${{ github.event.release.tag_name }}:refs/heads/release/${{ steps.version.outputs.major }} -f
32+
33+
- name: Force update major release tag
34+
run: git push origin ${{ github.event.release.tag_name }}:refs/tags/v${{ steps.version.outputs.major }} -f

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.DS_Store
2+
*.log
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
lerna-debug.log*
7+
node_modules
8+
.env
9+
.env.test
10+
.cache
11+
.next
12+
.nuxt
13+
.vscode/*
14+
!.vscode/settings.json
15+
!.vscode/tasks.json
16+
!.vscode/launch.json
17+
!.vscode/extensions.json
18+
package-lock.json

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn build && git add dist

0 commit comments

Comments
 (0)