generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from narrowspark/feature/rebase-master
- Loading branch information
Showing
36 changed files
with
28,185 additions
and
33,251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"], | ||
}, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.