Skip to content

Commit c36e57d

Browse files
committed
Merge remote-tracking branch 'origin/v3.0.0-dev'
2 parents 21b1b9d + a17ac76 commit c36e57d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+70150
-1914
lines changed

.eslintrc.yml

Lines changed: 14 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -2,91 +2,21 @@
22
root: true
33

44
parserOptions:
5-
ecmaVersion: 2018
6-
5+
ecmaVersion: 2019
6+
77
env:
88
node: true
99
es6: true
10-
mocha: true
11-
12-
extends: 'eslint:recommended'
13-
10+
jest: true
11+
12+
extends:
13+
- 'xo-space/esnext'
14+
1415
rules:
15-
indent: [2, 4, { "SwitchCase": 1 }]
16-
strict: 1
17-
linebreak-style: [2, "unix"]
18-
semi: [2, "always"]
19-
semi-spacing: [1, { "before": false }]
20-
semi-style: [1, "last"]
21-
comma-dangle: [2, "never"]
22-
comma-spacing: [1, { "after": true }]
23-
comma-style: [2, "last"]
24-
consistent-return: 0
25-
eol-last: [1, "always"]
26-
eqeqeq: [2, "smart"]
27-
wrap-iife: [2, "any"]
28-
no-plusplus: [2, { "allowForLoopAfterthoughts": true }]
29-
no-empty-function: 2
30-
no-console: 0
31-
no-mixed-spaces-and-tabs: 2
32-
no-whitespace-before-property: 1
33-
space-before-function-paren: [2, { "anonymous": "never", "named": "never", "asyncArrow": "always" }]
34-
space-in-parens: [2, "never"]
35-
array-callback-return: 2
36-
class-methods-use-this: 0
37-
dot-notation: [2, { "allowKeywords": true }]
38-
new-parens: 0
39-
no-alert: 1
40-
no-caller: 2
41-
no-else-return: 2
42-
no-eval: 2
43-
no-extend-native: 2
44-
no-extra-bind: 2
45-
no-floating-decimal: 2
46-
no-implied-eval: 2
47-
no-iterator: 2
48-
no-lone-blocks: 2
49-
no-multi-spaces: 2
50-
no-new-wrappers: 2
51-
no-octal: 2
52-
no-proto: 2
53-
no-redeclare: 2
54-
no-self-assign: 2
55-
no-self-compare: 2
56-
no-throw-literal: 2
57-
no-useless-concat: 2
58-
no-useless-escape: 2
59-
no-useless-return: 2
60-
no-with: 2
61-
no-var: 2
62-
yoda: 2
63-
no-dupe-keys: 2
64-
use-isnan: 2
65-
no-unreachable: 2
66-
no-tabs: 2
67-
object-curly-spacing: [2, "always"]
68-
global-require: 1
69-
no-buffer-constructor: 2
70-
no-mixed-requires: 1
71-
no-new-require: 2
72-
array-bracket-newline: [1, { "multiline": true, "minItems": 6 }]
73-
array-element-newline: [1, { "multiline": true, "minItems": 6 }]
74-
block-spacing: [1, "always"]
75-
brace-style: [1, "1tbs", { "allowSingleLine": true }]
76-
func-call-spacing: [1, "never"]
77-
implicit-arrow-linebreak: [1, "beside"]
78-
key-spacing: [1, { "mode": "minimum" }]
79-
keyword-spacing: ["error", { "overrides": { "if": { "after": false }, "for": { "after": false }, "while": { "after": false }, "catch": { "after": false } } }]
80-
object-curly-newline: [1, { "minProperties": 5, "multiline": true, "consistent": true }]
81-
lines-between-class-members: [1, "always", { "exceptAfterSingleLine": true }]
82-
space-before-blocks: [1, "always"]
83-
switch-colon-spacing: 1
84-
arrow-spacing: 1
85-
constructor-super: 2
86-
no-useless-computed-key: 1
87-
prefer-numeric-literals: 1
88-
prefer-rest-params: 2
89-
prefer-spread: 1
90-
prefer-template: 2
91-
rest-spread-spacing: 1
92-
template-curly-spacing: 1
16+
array-element-newline: off
17+
capitalized-comments: off
18+
curly: ['error', 'multi-line']
19+
object-curly-spacing: ['error', 'always']
20+
no-multiple-empty-lines: ['error', { max: 2, maxEOF: 1, maxBOF: 0 }]
21+
no-negated-condition: off
22+
keyword-spacing: ['error', { overrides: { if: { after: false }, for: { after: false }, while: { after: false }, catch: { after: false } } }]

.github/FUNDING.yml

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

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug Report
3+
about: If something is not working the way you expect it to
4+
labels: triage
5+
---
6+
7+
## What happens?
8+
9+
...
10+
11+
### What were you expecting to happen?
12+
13+
...
14+
15+
## Steps to reproduce
16+
17+
1. ...
18+
2. ...
19+
3. ...
20+
21+
## Any logs, output, examples?
22+
23+
...
24+
25+
## Environment
26+
27+
**Operating System:** ...
28+
**Node Version:** ...
29+
**Lambda Log Version:** ...

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Questions and Help
4+
url: https://github.com/KyleRoss/node-lambda-log/discussions
5+
about: Ask questions and get help here.
6+
- name: Contact Author
7+
url: https://kyleross.me/contact
8+
about: Contact the author directly for security alerts.
9+
- name: Gitter Chat
10+
url: https://gitter.im/KyleRoss/node-lambda-log
11+
about: Communicate with the community when you need support quickly.

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Feature Request
3+
about: Suggest a new feature
4+
labels: enhancement
5+
---
6+
7+
### Description
8+
9+
...
10+
11+
### Why should Lambda Log incorporate this feature?
12+
13+
...

.github/pull_request_template.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!--
2+
Thank you for your pull request. Please provide a description and review
3+
the requirements below.
4+
5+
Bug fixes and new features should include tests.
6+
-->
7+
### Type of Change
8+
<!-- Please provide the type of change. Either "Bug Fix" or "New Feature" here. -->
9+
10+
11+
### Description of Change(s)
12+
<!-- Please provide a description of the change(s) here. -->
13+
14+
15+
#### Checklist
16+
<!-- For completed items, change [ ] to [x]. -->
17+
18+
- [ ] Commit messages are in proper Conventional Commits format.
19+
- [ ] Tests updated or added (if applicable).
20+
- [ ] Test coverage remains at 100%.
21+
- [ ] There are no errors or warning in ESLint.
22+
- [ ] Documentation updated (if applicable).
23+
24+
<!-- _NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open._ -->

.github/workflows/module.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: module
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
test:
12+
strategy:
13+
matrix:
14+
node: [ '10', '12', '14' ]
15+
name: test/node v${{ matrix.node }}
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@master
20+
- name: Setup Node v${{ matrix.node }}
21+
uses: actions/setup-node@master
22+
with:
23+
node-version: ${{ matrix.node }}
24+
- name: Install Dependencies
25+
run: npm ci
26+
- name: Run Tests
27+
run: npm test
28+
29+
coverage:
30+
name: Code Coverage
31+
needs: [ test ]
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@master
36+
- name: Setup Node
37+
uses: actions/setup-node@master
38+
with:
39+
node-version: 14
40+
- name: Install Dependencies
41+
run: npm ci
42+
- name: Run Tests
43+
if: ${{ github.event_name == 'pull_request' }}
44+
run: npm test
45+
- name: Comment Coverage on PR
46+
if: ${{ github.event_name == 'pull_request' }}
47+
uses: artiomtr/jest-coverage-report-action@fdabb5bd42fa8a55bcfdfb55d855122cabfb7911
48+
with:
49+
github_token: ${{ secrets.GITHUB_TOKEN }}
50+
threshold: 100
51+
- name: Upload Coverage to Code Climate
52+
uses: paambaati/codeclimate-action@v2.7.2
53+
if: ${{ github.event_name == 'push' }}
54+
env:
55+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
56+
with:
57+
coverageCommand: npm test
58+
coverageLocations: |
59+
${{ github.workspace }}/coverage/lcov.info:lcov
60+
61+
eslint:
62+
name: ESLint Check
63+
runs-on: ubuntu-latest
64+
if: ${{ github.event_name == 'pull_request' }}
65+
steps:
66+
- name: Checkout
67+
uses: actions/checkout@master
68+
- name: Setup Node
69+
uses: actions/setup-node@master
70+
with:
71+
node-version: 14
72+
- name: Install Dependencies
73+
run: npm ci
74+
- uses: bradennapier/eslint-plus-action@v3.4.2
75+
with:
76+
includeGlob: 'index.js,index.test.js,lib/*.js'
77+
78+
release:
79+
name: Release
80+
if: ${{ github.event_name == 'push' }}
81+
needs: [ test, coverage ]
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Checkout
85+
uses: actions/checkout@master
86+
- name: Setup Node
87+
uses: actions/setup-node@master
88+
with:
89+
node-version: 14
90+
- name: Install Dependencies
91+
run: npm ci
92+
- name: Publish to NPM
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
96+
run: npx semantic-release

.github/workflows/site.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: site
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- '!*'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@master
15+
- name: Build and Deploy Site
16+
uses: srepollock/gatsby-gh-pages-action@v2.2.0
17+
with:
18+
access-token: ${{ secrets.ACCESS_TOKEN }}
19+
deploy-branch: gh-pages
20+
gatsby-args: --prefix-paths
21+
working-dir: ${{ github.workspace }}/site

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ package-lock.json
4646

4747
# DS_Store file
4848
.DS_Store
49+
50+
res

.husky/.gitignore

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

0 commit comments

Comments
 (0)