Skip to content

Commit e1abb34

Browse files
committed
fix: Create
0 parents  commit e1abb34

27 files changed

+16532
-0
lines changed

.github/workflows/main_workflow.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Main workflow
2+
on:
3+
push
4+
env:
5+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [ 18.x ]
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
cache: 'npm'
20+
registry-url: 'https://registry.npmjs.org'
21+
- name: Install deps
22+
run: npm i
23+
- name: Test
24+
run: npm run test
25+
- name: Build
26+
run: npm run build
27+
- name: Push to NPM
28+
run: npx semantic-release
29+
if: ${{github.ref == 'refs/heads/main'}}
30+
env:
31+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
- name: Coveralls
35+
if: ${{github.ref == 'refs/heads/main'}}
36+
uses: coverallsapp/github-action@master
37+
with:
38+
github-token: ${{ secrets.GITHUB_TOKEN }}
39+
40+

.gitignore

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

.npmignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# system
2+
node_modules
3+
*.log
4+
.DS_Store
5+
6+
# other
7+
tests
8+
src
9+
docs
10+
jest.config.ts
11+
tsconfig.json
12+
.github
13+
.releaserc
14+
a.out
15+
coverage

.releaserc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
branches:
2+
- main
3+
4+
debug: true
5+
ci: true
6+
dryRun: false
7+
plugins:
8+
- "@semantic-release/commit-analyzer"
9+
- "@semantic-release/changelog"
10+
- "@semantic-release/release-notes-generator"
11+
- "@semantic-release/github"
12+
- "@semantic-release/npm"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 lad-tech
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# @be-true/sqlk - Набор функций для работы с SQL
2+

jest.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Config } from 'jest';
2+
3+
const config: Config = {
4+
preset: 'ts-jest',
5+
testEnvironment: 'node',
6+
modulePathIgnorePatterns: ['./dist'],
7+
testMatch: ['**/tests/**/+([a-zA-Z0-9_-]).@(test|spec).@(js|ts|tsx)'],
8+
};
9+
10+
export default config;

0 commit comments

Comments
 (0)