Skip to content

Commit

Permalink
Merge pull request #370 from narrowspark/feature/rebase-master
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis authored Feb 22, 2021
2 parents 497c5f0 + ea6eed2 commit 151458e
Show file tree
Hide file tree
Showing 36 changed files with 28,185 additions and 33,251 deletions.
22 changes: 0 additions & 22 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -1,22 +0,0 @@
# https://dependabot.com/docs/config-file/

version: 1

update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "live"
version_requirement_updates: "increase_versions"
automerged_updates:
- match:
dependency_type: "production"
update_type: "semver:patch"
- match:
dependency_type: "development"
commit_message:
prefix: "fix"
prefix_development: "chore"
include_scope: true
default_labels:
- "dependency"
- "Changed"
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
extends: ["@anolilab/eslint-config"],
"parserOptions": {
"project": "./tsconfig.json"
},
env: {
"node": true,
"es6": true,
"jest/globals": true
},
globals: {
// Your global variables (setting to false means it's not allowed to be reassigned)
//
// myGlobal: false
},
rules: {
// Customize your rules
}
};
56 changes: 0 additions & 56 deletions .eslintrc.json

This file was deleted.

71 changes: 71 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:base"],
labels: ["dependency", "Changed"],
semanticCommits: true,
major: {
semanticCommitType: "chore",
semanticCommitScope: "deps",
},
minor: {
semanticCommitType: "chore",
semanticCommitScope: "deps",
},
packageRules: [
{
groupName: "renovate-meta",
automerge: true,
updateTypes: ["lockFileMaintenance", "pin"],
labels: ["dependency", "Changed"],
semanticCommitType: "chore",
semanticCommitScope: "deps",
rangeStrategy: "replace",
vulnerabilityAlerts: {
labels: ["Security"],
assignees: ["@prisis"],
},
},
{
groupName: "dependencies (non-major)",
automerge: true,
depTypeList: ["dependencies"],
updateTypes: ["patch", "minor"],
labels: ["type/deps"],
semanticCommitType: "chore",
semanticCommitScope: "deps",
rangeStrategy: "replace",
vulnerabilityAlerts: {
labels: ["Security"],
assignees: ["@prisis"],
},
},
{
groupName: "devDependencies (major)",
automerge: true,
depTypeList: ["devDependencies"],
updateTypes: ["major"],
labels: ["dependency", "Changed"],
semanticCommitType: "chore",
semanticCommitScope: "deps",
rangeStrategy: "replace",
vulnerabilityAlerts: {
labels: ["Security"],
assignees: ["@prisis"],
},
},
{
groupName: "devDependencies (non-major)",
automerge: true,
depTypeList: ["devDependencies"],
updateTypes: ["patch", "minor"],
labels: ["dependency", "Changed"],
semanticCommitType: "chore",
semanticCommitScope: "deps",
rangeStrategy: "replace",
vulnerabilityAlerts: {
labels: ["Security"],
assignees: ["@prisis"],
},
},
],
}
16 changes: 16 additions & 0 deletions .github/workflows/auto-close-fixed-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This action will automatically close issues fixed in
# pull requests that doesn't target the default branch.

name: Auto Close Fixed Issues
on:
pull_request_target:
types: [closed]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: bubkoo/auto-close-fixed-issues@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
comment: |
This issue was closed by #{{ pr }}.
15 changes: 15 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Greetings"

on: ["pull_request", "issues"]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Awesome! Thank you for taking the time to create your first issue! Please review the [guidelines](https://narrowspark.com/docs/current/contributing)"
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)"
53 changes: 38 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,54 @@
name: "test"
on: ["pull_request", "push"]
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Tests"

on: [push]

jobs:
build:
test:
name: "Tests"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
fetch-depth: 0
persist-credentials: false

- name: "Setup node"
uses: actions/setup-node@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 12.x

- name: "Cache dependencies"
uses: actions/cache@v1
- name: set git credentials
run: |
git config --local user.email "[email protected]"
git config --local user.name "Daniel Bannert"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
key: npm-${{ hashFiles('package-lock.json') }}
path: ~/.npm
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
npm-
${{ runner.os }}-yarn-
- name: install
run: yarn install

- name: lint
run: yarn run lint

- name: "Install dependencies"
run: npm ci --ignore-scripts --no-audit --no-progress --prefer-offline
- name: build
run: yarn run build && yarn run pack

- run: npm run all
- name: test
run: yarn run test

- name: "Send code coverage report to Codecov.io"
uses: codecov/codecov-action@v1
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
14 changes: 14 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

# The hook should exit with non-zero status after issuing
# an appropriate message if it wants to stop the commit.
#
# https://rushjs.io/pages/maintainer/git_hooks/

echo --------------------------------------------
echo Starting Git hook: commit-msg

yarn commitlint --edit $1 || exit $?

echo Finished Git hook: commit-msg
echo --------------------------------------------
16 changes: 16 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

# The hook should exit with non-zero status after issuing
# an appropriate message if it wants to stop the commit.
#
# https://rushjs.io/pages/maintainer/git_hooks/

echo --------------------------------------------
echo Starting Git hook: pre-commit

yarn pretty-quick --staged

yarn sort-package-json

echo Finished Git hook: pre-commit
echo --------------------------------------------
9 changes: 9 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

echo --------------------------------------------
echo Starting Git hook: prepare-commit-msg

exec < /dev/tty && yarn commitizen --hook || true

echo Finished Git hook: prepare-commit-msg
echo --------------------------------------------
23 changes: 23 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
"printWidth": 120,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"rangeStart": 0,
"rangeEnd": null,
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"parser": "typescript"
}
11 changes: 0 additions & 11 deletions .prettierrc.json

This file was deleted.

Loading

0 comments on commit 151458e

Please sign in to comment.