-
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.
Webhook should include additional information in the call (#19)
* update sailor logger * refactor to es6 * Add CHANGELOG.md * Add eslint * Refactor unit test * circleCI test * Update dependencies * Fix eslint * Update readme * Update logging
- Loading branch information
1 parent
2e75ff4
commit f061c15
Showing
19 changed files
with
3,730 additions
and
417 deletions.
There are no files selected for viewing
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,24 @@ | ||
version: 2 | ||
jobs: | ||
test: | ||
docker: | ||
- image: circleci/node:12-stretch | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: | ||
name: Installing Dependencies | ||
command: npm install | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
- run: | ||
name: Running Mocha Tests | ||
command: npm test | ||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- test |
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,160 @@ | ||
'use strict'; | ||
|
||
const ERROR = 'error'; | ||
const WARN = 'warn'; | ||
const ALWAYS = 'always'; | ||
const NEVER = 'never'; | ||
const OFF = 'off'; | ||
|
||
module.exports = { | ||
'env': { | ||
es6: true, | ||
node: true, | ||
mocha: true | ||
}, | ||
'parserOptions': { | ||
ecmaVersion: 2017 | ||
}, | ||
'extends': 'eslint:recommended', | ||
'plugins': [ | ||
'mocha' | ||
], | ||
'rules': { | ||
'indent': [ | ||
ERROR, | ||
4, | ||
{ | ||
SwitchCase: 1 | ||
} | ||
], | ||
'linebreak-style': ERROR, | ||
'quotes': [ | ||
WARN, | ||
'single', | ||
{ | ||
avoidEscape: true, | ||
allowTemplateLiterals: true | ||
} | ||
], | ||
'semi': [ | ||
ERROR, | ||
ALWAYS | ||
], | ||
'func-names': WARN, | ||
'no-empty': ERROR, | ||
'no-empty-function': ERROR, | ||
'brace-style': [ | ||
ERROR, | ||
'1tbs', | ||
{ allowSingleLine: true } | ||
], | ||
'no-multiple-empty-lines': ERROR, | ||
'no-multi-spaces': ERROR, | ||
'one-var': [ | ||
ERROR, | ||
NEVER | ||
], | ||
'quote-props': [ | ||
WARN, | ||
'consistent-as-needed' | ||
], | ||
'key-spacing': ERROR, | ||
'space-unary-ops': [ | ||
ERROR, | ||
{ | ||
words: true, | ||
nonwords: false | ||
} | ||
], | ||
'no-spaced-func': ERROR, | ||
'space-before-function-paren': [ | ||
ERROR, | ||
{ | ||
anonymous: ALWAYS, | ||
named: NEVER | ||
} | ||
], | ||
'arrow-body-style': [ | ||
WARN, | ||
'as-needed' | ||
], | ||
'array-bracket-spacing': ERROR, | ||
'space-in-parens': ERROR, | ||
'comma-dangle': WARN, | ||
'no-trailing-spaces': ERROR, | ||
'yoda': ERROR, | ||
'max-len': [ | ||
ERROR, | ||
120 | ||
], | ||
'camelcase': [ | ||
ERROR, | ||
{ | ||
properties: 'never' | ||
} | ||
], | ||
'new-cap': [ | ||
WARN, | ||
{ | ||
capIsNewExceptions: ['Q'] | ||
} | ||
], | ||
'comma-style': ERROR, | ||
'curly': ERROR, | ||
'object-curly-spacing': [ | ||
WARN, | ||
ALWAYS | ||
], | ||
'object-curly-newline': [ | ||
OFF | ||
], | ||
'object-property-newline': OFF, | ||
'template-curly-spacing': ERROR, | ||
'dot-notation': ERROR, | ||
'dot-location': [ | ||
ERROR, | ||
'property' | ||
], | ||
'func-style': [ | ||
ERROR, | ||
'declaration', | ||
{ | ||
allowArrowFunctions: true | ||
} | ||
], | ||
'eol-last': ERROR, | ||
'space-infix-ops': ERROR, | ||
'keyword-spacing': ERROR, | ||
'space-before-blocks': ERROR, | ||
'no-invalid-this': ERROR, | ||
'consistent-this': ERROR, | ||
'no-this-before-super': ERROR, | ||
'no-unreachable': ERROR, | ||
'no-sparse-arrays': ERROR, | ||
'array-callback-return': ERROR, | ||
'strict': [ | ||
OFF, | ||
'global' | ||
], | ||
'eqeqeq': ERROR, | ||
'no-use-before-define': WARN, | ||
'no-undef': ERROR, | ||
'no-unused-vars': WARN, | ||
'no-mixed-spaces-and-tabs': ERROR, | ||
'operator-linebreak': [ | ||
ERROR, | ||
'before' | ||
], | ||
'no-console': [ | ||
WARN, | ||
{ | ||
'allow': [ | ||
'warn', | ||
'error' | ||
] | ||
} | ||
], | ||
'mocha/no-exclusive-tests': ERROR, | ||
'mocha/no-skipped-tests': ERROR | ||
} | ||
}; |
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 @@ | ||
## 1.1.0 (July 29, 2019) | ||
|
||
* Migrate to es6 | ||
* Refactor unit tests and component structure | ||
* Add additional information to the webhook call | ||
|
||
## 1.0.0 (March 23, 2016) | ||
|
||
* Initial release |
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
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
Oops, something went wrong.