Skip to content

Commit

Permalink
Merge branch 'master' of github.com:winstonjs/winston into fix-bad-test
Browse files Browse the repository at this point in the history
  • Loading branch information
fearphage committed Dec 20, 2022
2 parents 264350b + 2489a3d commit 5ea609e
Show file tree
Hide file tree
Showing 62 changed files with 5,149 additions and 5,406 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# default configuration
[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

# Tab indentation (no size specified)
[Makefile]
indent_style = tab
9 changes: 6 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"extends": "populist",
"extends": "@dabh/eslint-config-populist",
"rules": {
"one-var": ["error", { var: "never", let: "never", const: "never" }],
"one-var": ["error", { "var": "never", "let": "never", "const": "never" }],
"strict": 0
}
},
"parserOptions": {
"ecmaVersion": 2022,
},
}
63 changes: 0 additions & 63 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

75 changes: 75 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Have you encountered an issue?
description: Report an issue with Winston.
title: "[Bug]: "
labels: ["Bug", "Needs Investigation"]
body:
- type: markdown # Form Header
attributes:
value: >-
This issue form is for reporting bugs only!
- type: input # Search Terms
validations:
required: true
attributes:
label: 🔎 Search Terms
description: >-
What search terms did you use when trying to find an existing bug report, looking in both open and closed issues?
List them here (comma seperated) so people in the future can find this one more easily.
- type: textarea # Problem Definition
validations:
required: true
attributes:
label: The problem
description: >-
Please provide a clear and concise description of the problem you've encountered and what the
expected behavior was.
- type: markdown # Environment Section Header
attributes:
value: |
## Environment
- type: input # Affected Version Input
id: winston-version
validations:
required: true
attributes:
label: What version of Winston presents the issue?
placeholder: v3.4.0
description: >
Can be found by running one of the following (depending on your package manager of choice):
- `npm list winston`
- `yarn list --pattern winston`
- type: input # Affected Version Input
id: node-version
validations:
required: true
attributes:
label: What version of Node are you using?
placeholder: v16.8.0
description: >
Can be found by running the following: `node -v`
- type: input # Last Known Working Version
attributes:
label: If this worked in a previous version of Winston, which was it?
placeholder: v3.0.0
description: >
If known, otherwise please leave blank.
- type: markdown # Details Section Header
attributes:
value: |
# Details
- type: textarea # Minimum Working Example Input
attributes:
label: Minimum Working Example
description: |
If you can, providing an MWE to reproduce the issue you're encountering can greatly speed up
investigation into the issue by one of our maintainers, or anyone else in the community who's looking
to get involved.
This can be as simple as a script, a link to a repo, etc.
If using a script please wrap with triple backticks and language. EG:
` ```javascript `
- type: textarea # Additional Information
attributes:
label: Additional information
description: >
If you have any additional information for us that you feel will be valuable, please use the field below.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Have a formatting issue or feature request?
url: https://github.com/winstonjs/logform/issues/new/choose
about: Please search and report @ WinstonJS/Logform
- name: Need help using Winston?
url: https://stackoverflow.com/questions/tagged/winston
about: Please look on StackOverflow first to see if someone has already answered your question.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Would you like to see a feature implemented?
description: Request a new feature for Winston
title: "[Feature Request]: "
labels: ["Feature Request", "Needs Investigation"]
body:
- type: markdown # Form Header
attributes:
value: |
This issue form is for requesting features only!
- type: input # Search Terms
validations:
required: true
attributes:
label: 🔎 Search Terms
description: >-
What search terms did you use when trying to find an existing feature request, looking in both open and closed issues?
List them here (comma seperated) so people in the future can find this one more easily.
- type: textarea # Feature Definition
validations:
required: true
attributes:
label: The vision
description: >-
Please provide a clear and concise description of the feature you would like to see implemented.
- type: markdown # Feature Details Section
attributes:
value: |
# Details
- type: textarea # Use Case Input
attributes:
label: Use case
description: |
If you desire you can provide use cases for the requested feature.
- type: textarea # Additional Information
attributes:
label: Additional information
description: >
If you have any additional information for us that you feel will be valuable, please use the field below.
26 changes: 20 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI Checks

on:
pull_request:
Expand All @@ -10,8 +10,15 @@ on:
- main
- master

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
unit-tests:
Tests:
permissions:
contents: read # to fetch code (actions/checkout)
checks: write # to create new checks (coverallsapp/github-action)

runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -20,15 +27,22 @@ jobs:
- 14
- 16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: npm clean-install
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Integration Tests
run: npm run test:integration
- name: Test Coverage
run: npm run test:coverage
- name: Report test coverage to Coveralls.io
if: matrix.node == '16'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: TypeScript Test
run: npx --package typescript tsc --project test
4 changes: 4 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
exclude:
- test/helpers/scripts/*.js
exit: true
recursive: true
8 changes: 8 additions & 0 deletions .nycrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
reporter:
- text
- lcov
check-coverage: true
branches: 61.51
lines: 70.85
functions: 73.21
statements: 70.54
18 changes: 18 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"arrowParens": "avoid",
"bracketSameLine": false,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"insertPragma": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false,
"endOfLine": "auto"
}
Loading

0 comments on commit 5ea609e

Please sign in to comment.