Skip to content

Commit 151458e

Browse files
authored
Merge pull request #370 from narrowspark/feature/rebase-master
2 parents 497c5f0 + ea6eed2 commit 151458e

36 files changed

+28185
-33251
lines changed

.dependabot/config.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +0,0 @@
1-
# https://dependabot.com/docs/config-file/
2-
3-
version: 1
4-
5-
update_configs:
6-
- package_manager: "javascript"
7-
directory: "/"
8-
update_schedule: "live"
9-
version_requirement_updates: "increase_versions"
10-
automerged_updates:
11-
- match:
12-
dependency_type: "production"
13-
update_type: "semver:patch"
14-
- match:
15-
dependency_type: "development"
16-
commit_message:
17-
prefix: "fix"
18-
prefix_development: "chore"
19-
include_scope: true
20-
default_labels:
21-
- "dependency"
22-
- "Changed"

.eslintrc.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
extends: ["@anolilab/eslint-config"],
3+
"parserOptions": {
4+
"project": "./tsconfig.json"
5+
},
6+
env: {
7+
"node": true,
8+
"es6": true,
9+
"jest/globals": true
10+
},
11+
globals: {
12+
// Your global variables (setting to false means it's not allowed to be reassigned)
13+
//
14+
// myGlobal: false
15+
},
16+
rules: {
17+
// Customize your rules
18+
}
19+
};

.eslintrc.json

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/renovate.json5

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
extends: ["config:base"],
4+
labels: ["dependency", "Changed"],
5+
semanticCommits: true,
6+
major: {
7+
semanticCommitType: "chore",
8+
semanticCommitScope: "deps",
9+
},
10+
minor: {
11+
semanticCommitType: "chore",
12+
semanticCommitScope: "deps",
13+
},
14+
packageRules: [
15+
{
16+
groupName: "renovate-meta",
17+
automerge: true,
18+
updateTypes: ["lockFileMaintenance", "pin"],
19+
labels: ["dependency", "Changed"],
20+
semanticCommitType: "chore",
21+
semanticCommitScope: "deps",
22+
rangeStrategy: "replace",
23+
vulnerabilityAlerts: {
24+
labels: ["Security"],
25+
assignees: ["@prisis"],
26+
},
27+
},
28+
{
29+
groupName: "dependencies (non-major)",
30+
automerge: true,
31+
depTypeList: ["dependencies"],
32+
updateTypes: ["patch", "minor"],
33+
labels: ["type/deps"],
34+
semanticCommitType: "chore",
35+
semanticCommitScope: "deps",
36+
rangeStrategy: "replace",
37+
vulnerabilityAlerts: {
38+
labels: ["Security"],
39+
assignees: ["@prisis"],
40+
},
41+
},
42+
{
43+
groupName: "devDependencies (major)",
44+
automerge: true,
45+
depTypeList: ["devDependencies"],
46+
updateTypes: ["major"],
47+
labels: ["dependency", "Changed"],
48+
semanticCommitType: "chore",
49+
semanticCommitScope: "deps",
50+
rangeStrategy: "replace",
51+
vulnerabilityAlerts: {
52+
labels: ["Security"],
53+
assignees: ["@prisis"],
54+
},
55+
},
56+
{
57+
groupName: "devDependencies (non-major)",
58+
automerge: true,
59+
depTypeList: ["devDependencies"],
60+
updateTypes: ["patch", "minor"],
61+
labels: ["dependency", "Changed"],
62+
semanticCommitType: "chore",
63+
semanticCommitScope: "deps",
64+
rangeStrategy: "replace",
65+
vulnerabilityAlerts: {
66+
labels: ["Security"],
67+
assignees: ["@prisis"],
68+
},
69+
},
70+
],
71+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This action will automatically close issues fixed in
2+
# pull requests that doesn't target the default branch.
3+
4+
name: Auto Close Fixed Issues
5+
on:
6+
pull_request_target:
7+
types: [closed]
8+
jobs:
9+
run:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: bubkoo/auto-close-fixed-issues@v1
13+
with:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
comment: |
16+
This issue was closed by #{{ pr }}.

.github/workflows/greetings.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Greetings"
4+
5+
on: ["pull_request", "issues"]
6+
7+
jobs:
8+
greeting:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/first-interaction@v1
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
issue-message: "Awesome! Thank you for taking the time to create your first issue! Please review the [guidelines](https://narrowspark.com/docs/current/contributing)"
15+
pr-message: "Great! Thank you for taking the time to create your first pull request! Please review the [guidelines](https://narrowspark.com/docs/current/contributing)"

.github/workflows/test.yml

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,54 @@
1-
name: "test"
2-
on: ["pull_request", "push"]
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Tests"
4+
5+
on: [push]
36

47
jobs:
5-
build:
8+
test:
9+
name: "Tests"
10+
611
runs-on: ubuntu-latest
12+
713
steps:
814
- uses: actions/checkout@v2
915
with:
10-
fetch-depth: 2
16+
fetch-depth: 0
17+
persist-credentials: false
1118

12-
- name: "Setup node"
13-
uses: actions/setup-node@v1
19+
- name: Use Node.js 12.x
20+
uses: actions/setup-node@v2
1421
with:
15-
node-version: 12
22+
node-version: 12.x
1623

17-
- name: "Cache dependencies"
18-
uses: actions/cache@v1
24+
- name: set git credentials
25+
run: |
26+
git config --local user.email "d.bannert@anolilab.de"
27+
git config --local user.name "Daniel Bannert"
28+
29+
- name: Get yarn cache directory path
30+
id: yarn-cache-dir-path
31+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
32+
33+
- uses: actions/cache@v2
34+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
1935
with:
20-
key: npm-${{ hashFiles('package-lock.json') }}
21-
path: ~/.npm
36+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
37+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2238
restore-keys: |
23-
npm-
39+
${{ runner.os }}-yarn-
40+
41+
- name: install
42+
run: yarn install
43+
44+
- name: lint
45+
run: yarn run lint
2446

25-
- name: "Install dependencies"
26-
run: npm ci --ignore-scripts --no-audit --no-progress --prefer-offline
47+
- name: build
48+
run: yarn run build && yarn run pack
2749

28-
- run: npm run all
50+
- name: test
51+
run: yarn run test
2952

3053
- name: "Send code coverage report to Codecov.io"
3154
uses: codecov/codecov-action@v1

.husky/.gitignore

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

.husky/commit-msg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
# The hook should exit with non-zero status after issuing
4+
# an appropriate message if it wants to stop the commit.
5+
#
6+
# https://rushjs.io/pages/maintainer/git_hooks/
7+
8+
echo --------------------------------------------
9+
echo Starting Git hook: commit-msg
10+
11+
yarn commitlint --edit $1 || exit $?
12+
13+
echo Finished Git hook: commit-msg
14+
echo --------------------------------------------

.husky/pre-commit

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
# The hook should exit with non-zero status after issuing
4+
# an appropriate message if it wants to stop the commit.
5+
#
6+
# https://rushjs.io/pages/maintainer/git_hooks/
7+
8+
echo --------------------------------------------
9+
echo Starting Git hook: pre-commit
10+
11+
yarn pretty-quick --staged
12+
13+
yarn sort-package-json
14+
15+
echo Finished Git hook: pre-commit
16+
echo --------------------------------------------

0 commit comments

Comments
 (0)