Skip to content

Commit 3fe8e8a

Browse files
committed
chore: initial commit
0 parents  commit 3fe8e8a

File tree

10 files changed

+7647
-0
lines changed

10 files changed

+7647
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CICD
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Install dependencies and build library
14+
run: npm ci && npm run build && npm run test
15+
- name: Upload artifacts
16+
uses: actions/upload-artifact@v2
17+
with:
18+
name: dist
19+
path: dist/
20+
21+
release:
22+
needs: build
23+
runs-on: ubuntu-latest
24+
name: Semantic Release
25+
steps:
26+
- name: Download artifacts
27+
uses: actions/download-artifact@v2
28+
with:
29+
name: dist
30+
- uses: cycjimmy/semantic-release-action@v2.5.0
31+
env:
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

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

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "all",
8+
"bracketSpacing": true
9+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Typescript project template

jest.config.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export default {
2+
collectCoverage: true,
3+
coverageDirectory: 'coverage',
4+
coverageProvider: 'v8',
5+
coverageThreshold: {
6+
global: {
7+
branches: 100,
8+
functions: 100,
9+
lines: 100,
10+
statements: 100,
11+
},
12+
},
13+
maxWorkers: '90%',
14+
moduleFileExtensions: ['js', 'ts'],
15+
preset: 'ts-jest',
16+
slowTestThreshold: 1,
17+
testEnvironment: 'jest-environment-node',
18+
testMatch: ['**/src/*.spec.ts'],
19+
};

0 commit comments

Comments
 (0)