Skip to content

Commit 6cec06a

Browse files
committed
feat(multi): Initial implementation
0 parents  commit 6cec06a

30 files changed

+16022
-0
lines changed

.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

.eslintignore

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

.eslintrc.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
plugins: [
7+
'markdown',
8+
'import'
9+
],
10+
extends: [
11+
'eslint:recommended',
12+
'plugin:json/recommended',
13+
'plugin:@typescript-eslint/recommended',
14+
'plugin:sonarjs/recommended',
15+
'prettier/@typescript-eslint',
16+
'plugin:prettier/recommended', // Make sure this is always the last entry.
17+
],
18+
parserOptions: {
19+
ecmaVersion: 2020,
20+
},
21+
rules: {
22+
'@typescript-eslint/explicit-module-boundary-types': 0,
23+
'@typescript-eslint/no-unused-vars': 'error',
24+
'import/default': 1,
25+
'import/no-useless-path-segments': [
26+
'error',
27+
{
28+
noUselessIndex: true,
29+
},
30+
],
31+
'import/order': [
32+
'error',
33+
{
34+
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
35+
'newlines-between': 'always',
36+
},
37+
],
38+
},
39+
overrides: [
40+
{
41+
files: ['tests/**/*.test.ts'],
42+
env: {
43+
jest: true,
44+
},
45+
},
46+
],
47+
};

.github/workflows/auto-approve.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Auto approve
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
auto-approve:
7+
runs-on: ubuntu-latest
8+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
9+
steps:
10+
- uses: hmarr/[email protected]
11+
with:
12+
github-token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'

.github/workflows/check-pr.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Check PR
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
danger:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [10.20.1]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Run danger checks
22+
env:
23+
DANGER_GITHUB_API_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
24+
run: npx danger ci

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [10.20.1]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: Install dependencies
23+
run: npm install
24+
- name: Release
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
27+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
run: npx semantic-release

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
cancel-previous:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: rokroskar/workflow-run-cleanup-action@master
10+
env:
11+
GITHUB_TOKEN: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
12+
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [10.20.1]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- name: Install dependencies
27+
run: npm install
28+
- name: Test
29+
run: npm test

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.DS_Store
2+
node_modules
3+
4+
# local env files
5+
.env.local
6+
.env.*.local
7+
8+
# Log files
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
pnpm-debug.log*
13+
14+
# Editor directories and files
15+
.idea
16+
.vscode
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw?
22+
23+
# Project specific
24+
dist
25+
docs
26+
coverage

.nvmrc

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

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
singleQuote: true,
3+
semi: true,
4+
trailingComma: 'es5',
5+
};

0 commit comments

Comments
 (0)