Skip to content

Commit 577a345

Browse files
committed
feat!: initial
0 parents  commit 577a345

23 files changed

+15573
-0
lines changed

.commitlintrc

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

.czrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "cz-conventional-changelog"
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+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintrc

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "tsconfig.json",
5+
"sourceType": "module"
6+
},
7+
"plugins": [
8+
"tsc",
9+
"import",
10+
"unicorn",
11+
"promise",
12+
"eslint-comments",
13+
"@typescript-eslint"
14+
],
15+
"extends": [
16+
"eslint:recommended",
17+
"airbnb-typescript/base",
18+
"plugin:promise/recommended",
19+
"plugin:unicorn/recommended",
20+
"plugin:eslint-comments/recommended",
21+
"plugin:@typescript-eslint/recommended",
22+
"plugin:@typescript-eslint/eslint-recommended",
23+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
24+
],
25+
"settings": {
26+
"import/parsers": {
27+
"@typescript-eslint/parser": [
28+
".ts"
29+
]
30+
},
31+
"import/resolver": {
32+
"typescript": {
33+
"alwaysTryTypes": true
34+
}
35+
}
36+
},
37+
"root": true,
38+
"env": {
39+
"node": true
40+
},
41+
"ignorePatterns": [
42+
"dist/**/*"
43+
],
44+
"rules": {
45+
"max-len": [
46+
"error",
47+
120
48+
],
49+
"import/no-unresolved": "error",
50+
"import/prefer-default-export": "off",
51+
"import/no-extraneous-dependencies": "off",
52+
"unicorn/no-null": "off",
53+
"unicorn/no-reduce": "off",
54+
"unicorn/import-style": "off",
55+
"unicorn/prefer-module": "off",
56+
"unicorn/no-array-reduce": "off",
57+
"unicorn/no-process-exit": "off",
58+
"unicorn/no-array-for-each": "off",
59+
"unicorn/prefer-node-protocol": "off",
60+
"unicorn/explicit-length-check": "off",
61+
"unicorn/prevent-abbreviations": "off",
62+
"@typescript-eslint/no-unsafe-call": "off",
63+
"@typescript-eslint/no-floating-promises": "off",
64+
"@typescript-eslint/no-unsafe-assignment": "off",
65+
"@typescript-eslint/interface-name-prefix": "off",
66+
"@typescript-eslint/no-unsafe-member-access": "off",
67+
"@typescript-eslint/restrict-template-expressions": "off",
68+
"@typescript-eslint/explicit-function-return-type": "off",
69+
"@typescript-eslint/explicit-module-boundary-types": "off"
70+
}
71+
}

.github/workflows/release.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types:
7+
- closed
8+
branches:
9+
- master
10+
11+
jobs:
12+
release:
13+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- uses: shimataro/ssh-key-action@v2
20+
with:
21+
key: ${{ secrets.SSH_PRIVATE_KEY }}
22+
known_hosts: github.com
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: '16.x'
26+
registry-url: 'https://registry.npmjs.org'
27+
- name: configure git
28+
run: |
29+
git config user.name "Bogdan Kolesnyk"
30+
git config user.email "[email protected]"
31+
- name: install dependencies
32+
run: npm ci
33+
- name: build library
34+
run: npm run build
35+
- name: release
36+
run: npm run release
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea
2+
.vscode
3+
node_modules
4+
bin/

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run husky:commit-msg -- --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run husky:pre-commit

.lintstagedrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"./src/**/*.ts": "npm run lint"
3+
}

.npmignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.idea/
2+
.husky/
3+
.github/
4+
.vscode/
5+
6+
src/
7+
8+
.czrc
9+
.eslintrc
10+
.gitignore
11+
.commitlintrc
12+
.editorconfig
13+
.lintstagedrc
14+
.release-it.json
15+
16+
.release-it.js
17+
18+
tsconfig.json
19+
CHANGELOG.md

0 commit comments

Comments
 (0)