Skip to content

Commit 5862251

Browse files
committed
genesis
0 parents  commit 5862251

28 files changed

+10384
-0
lines changed

.eslintrc.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
env: {
3+
es2020: true,
4+
node: true,
5+
jest: true,
6+
},
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:prettier/recommended',
11+
],
12+
parser: '@typescript-eslint/parser',
13+
plugins: ['@typescript-eslint', 'prettier'],
14+
rules: {
15+
// unused vars will be handled by the TS compiler
16+
'@typescript-eslint/no-unused-vars': 'off',
17+
'@typescript-eslint/ban-ts-comment': [
18+
'error',
19+
{
20+
'ts-expect-error': 'allow-with-description',
21+
},
22+
],
23+
},
24+
};

.github/FUNDING.yml

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: 🐞 Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Screenshot**
10+
Visualising is always helpful.
11+
12+
**Expected Behaviour**
13+
I expected it to do _this_ -
14+
15+
**Actual Behaviour**
16+
but instead it did _this_.
17+
18+
**Debug Information**
19+
Help us debug the bug?
20+
21+
**Further Information**
22+
Anything else you might find helpful.

.github/ISSUE_TEMPLATE/user_story.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: 🚀 User story
3+
about: Suggest a feature in a form of user story
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
### Story
10+
11+
As a _user or client or server_
12+
13+
I want _some feature_
14+
15+
So that _some value_
16+
17+
### Acceptance criteria
18+
19+
- _user or client or server type_ is able to...
20+
- _user or client or server type_ can add...
21+
- _user or client or server type_ can remove...
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build and release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Set up node
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: 18
16+
cache: 'yarn'
17+
- name: Install
18+
run: yarn install --immutable
19+
- name: Build
20+
run: yarn build
21+
- name: Upload build
22+
uses: actions/upload-artifact@v2
23+
with:
24+
name: build
25+
path: |
26+
lib
27+
umd
28+
29+
release:
30+
name: Release
31+
runs-on: ubuntu-latest
32+
needs: [build]
33+
environment: npm
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v2
37+
with:
38+
token: ${{ secrets.GH_TOKEN }}
39+
fetch-depth: 0 # necessary for correct CHANGELOGS
40+
- name: Set up node
41+
uses: actions/setup-node@v2
42+
with:
43+
node-version: 18
44+
cache: 'yarn'
45+
- name: Install
46+
run: yarn install --immutable
47+
- name: Download build
48+
uses: actions/download-artifact@v2
49+
with:
50+
name: build
51+
- name: Release
52+
env:
53+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
54+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
run: yarn release

.github/workflows/codeql-analysis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'CodeQL analysis'
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
branches:
10+
- master
11+
schedule:
12+
- cron: '0 23 * * 0'
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
- name: Initialize
23+
uses: github/codeql-action/init@v1
24+
with:
25+
languages: javascript
26+
- name: Perform analysis
27+
uses: github/codeql-action/analyze@v1
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Continuous integration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
branches:
10+
- master
11+
12+
jobs:
13+
lint:
14+
name: Lint
15+
runs-on: ubuntu-latest
16+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Set up node
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: 18
24+
cache: 'yarn'
25+
- name: Install
26+
run: yarn install --immutable
27+
- name: Lint
28+
run: yarn lint
29+
30+
type-check:
31+
name: Type check
32+
runs-on: ubuntu-latest
33+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v2
37+
- name: Set up node
38+
uses: actions/setup-node@v2
39+
with:
40+
node-version: 18
41+
cache: 'yarn'
42+
- name: Install
43+
run: yarn install --immutable
44+
- name: Type check
45+
run: yarn type-check
46+
47+
test:
48+
name: Test
49+
runs-on: ubuntu-latest
50+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v2
54+
- name: Set up node
55+
uses: actions/setup-node@v2
56+
with:
57+
node-version: 18
58+
cache: 'yarn'
59+
- name: Install
60+
run: yarn install --immutable
61+
- name: Test
62+
run: yarn test --forceExit

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**/.DS_Store
2+
node_modules
3+
lib
4+
umd
5+
dist
6+
.vscode
7+
.yarn/*
8+
!.yarn/releases
9+
!.yarn/plugins

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all"
4+
}

.releaserc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semantic-release/changelog",
6+
[
7+
"@semantic-release/npm",
8+
{
9+
"tarballDir": "dist"
10+
}
11+
],
12+
[
13+
"@semantic-release/git",
14+
{
15+
"message": "chore(release): 🎉 ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
16+
}
17+
],
18+
[
19+
"@semantic-release/github",
20+
{
21+
"assets": "dist/*.tgz",
22+
"failComment": false,
23+
"failTitle": false,
24+
"labels": false
25+
}
26+
]
27+
]
28+
}

0 commit comments

Comments
 (0)