Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
b9eaa57
chore(release): prepare next release
gregoranders Jun 26, 2020
d354ad3
npm: bump @actions/github from 3.0.0 to 4.0.0
dependabot[bot] Jun 29, 2020
b930c68
Merge pull request #12 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jun 29, 2020
ec4e460
npm: bump @typescript-eslint/parser from 3.4.0 to 3.5.0
dependabot[bot] Jun 30, 2020
1e776bf
npm: bump @typescript-eslint/eslint-plugin from 3.4.0 to 3.5.0
dependabot[bot] Jun 30, 2020
cb6ca83
Merge pull request #13 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jun 30, 2020
bdfff65
Merge branch 'development' into dependabot/npm_and_yarn/development/t…
gregoranders Jun 30, 2020
3dec3ad
Merge pull request #14 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jun 30, 2020
352dbf8
npm: bump typescript from 3.9.5 to 3.9.6
dependabot[bot] Jul 2, 2020
74abe34
Merge pull request #15 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 2, 2020
846286b
npm: bump eslint from 7.3.1 to 7.4.0
dependabot[bot] Jul 6, 2020
8761f05
npm: bump eslint-plugin-jest from 23.17.1 to 23.18.0
dependabot[bot] Jul 6, 2020
83a4f1f
Merge pull request #16 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 6, 2020
4dc6a55
Merge pull request #17 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 6, 2020
dfee0ac
npm: bump @typescript-eslint/parser from 3.5.0 to 3.6.0
dependabot[bot] Jul 7, 2020
05fd532
npm: bump @typescript-eslint/eslint-plugin from 3.5.0 to 3.6.0
dependabot[bot] Jul 7, 2020
b5f68f9
npm: bump @types/jest from 26.0.3 to 26.0.4
dependabot[bot] Jul 7, 2020
b40244c
Merge pull request #18 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 7, 2020
a0b440c
Merge branch 'development' into dependabot/npm_and_yarn/development/t…
gregoranders Jul 7, 2020
de7e2fa
Merge pull request #19 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 7, 2020
eb8daf6
Merge pull request #20 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 7, 2020
de49f75
npm: bump @typescript-eslint/eslint-plugin from 3.6.0 to 3.6.1
dependabot[bot] Jul 14, 2020
4fcacfd
npm: bump @typescript-eslint/parser from 3.6.0 to 3.6.1
dependabot[bot] Jul 14, 2020
9c4a37a
npm: bump typescript from 3.9.6 to 3.9.7
dependabot[bot] Jul 17, 2020
173fea2
npm: bump ts-jest from 26.1.1 to 26.1.3
dependabot[bot] Jul 17, 2020
ff7db99
Merge pull request #21 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 17, 2020
6c41680
Merge branch 'development' into dependabot/npm_and_yarn/development/t…
gregoranders Jul 17, 2020
634450f
Merge pull request #23 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 17, 2020
72cc872
Merge pull request #24 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 17, 2020
3601bd0
Merge pull request #25 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 17, 2020
a8852d5
npm: bump eslint-plugin-unicorn from 20.1.0 to 21.0.0
dependabot[bot] Jul 20, 2020
5d97f6a
npm: bump @types/jest from 26.0.4 to 26.0.5
dependabot[bot] Jul 20, 2020
e4deb82
npm: bump eslint from 7.4.0 to 7.5.0
dependabot[bot] Jul 20, 2020
116219a
Merge pull request #26 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 20, 2020
037c610
Merge pull request #27 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 20, 2020
6342677
Merge pull request #28 from gregoranders/dependabot/npm_and_yarn/deve…
gregoranders Jul 20, 2020
2ef1e44
refactor(vscode): refactor visual code config
gregoranders Jul 26, 2020
e5f0cd5
refactor(CI): refactor GitHub CI
gregoranders Jul 26, 2020
ff4dff6
refactor(build): add codacy and code climate
gregoranders Jul 26, 2020
ae06ace
docs(update): update docs
gregoranders Jul 26, 2020
ed54f94
refactor(test): move test utils
gregoranders Jul 26, 2020
731b6e7
refactor(package): refactor package.json
gregoranders Jul 26, 2020
e16a0d0
Merge branch 'development' of github.com:gregoranders/nodejs-upload-a…
gregoranders Jul 26, 2020
4a9e430
chore(release): 0.0.10
gregoranders Jul 26, 2020
9e4eb11
docs(changelog): update changelog
gregoranders Jul 26, 2020
4e2f1b9
Merge branch 'master' into development
gregoranders Jul 26, 2020
655657a
chore(dependencies): update dev dependencies
gregoranders Aug 2, 2020
0ee040d
chore(dependencies): update dev dependencies
gregoranders Aug 3, 2020
7d866c9
chore(dependencies): update dependnencies
gregoranders Aug 17, 2020
b1b2c2a
chore(dependencies): update dev dependencies
gregoranders Aug 19, 2020
de1bf18
chore(release): bump version
gregoranders Aug 19, 2020
58957a9
chore(build): update build
gregoranders Aug 19, 2020
c21a74b
chore(CHANGELOG): update changelog
gregoranders Aug 19, 2020
17cb124
Merge branch 'master' into development
gregoranders Feb 2, 2022
a3cbbe7
chore(dependencies): :arrow_up: updates dependencies
gregoranders Feb 2, 2022
b008827
fix(build): :bug: fixes codacy
gregoranders Feb 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ exclude_paths:
- '**.json'
- '**.yml'
- '**.md'
- 'commitlint.config.js'
4 changes: 3 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ plugins:
enabled: false
eslint:
enabled: true
channel: 'eslint-6'
config:
config: .eslintrc-cc.json
fixme:
Expand All @@ -23,3 +22,6 @@ exclude_patterns:
- '**/docs'
- '**/node_modules/'
- '**/src/*.spec.ts'
- '**/fixtures'
- '**/.husky'
- '**/commitlint.config.js'
18 changes: 12 additions & 6 deletions .eslintrc-cc.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
{
"root": true,
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
"extends": [
"plugin:jest/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {}
},
"env": {
"node": true,
"browser": true,
"es2020": true
"es6": true,
"browser": false,
"jest": true
},
"rules": {
"complexity": ["error", 8]
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"settings": {},
"globals": {}
"settings": {}
}
4 changes: 1 addition & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2020,
Expand Down
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
# Description

<!--- Describe your changes in detail -->

Expand All @@ -21,7 +21,7 @@
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):
## Screenshots (if appropriate)

## Types of changes

Expand All @@ -32,7 +32,7 @@
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist:
## Checklist

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
version: 2
updates:

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
labels:
- 'npm dependencies'
commit-message:
prefix: 'github-actions'
assignees:
- 'gregoranders'
target-branch: 'development'

- package-ecosystem: 'npm'
directory: '/'
schedule:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CodeQL"
on:
push:
branches: [ main, development, feature/* ]
pull_request:
branches: [ main, development, feature/* ]
schedule:
- cron: '43 7 * * 0'
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Echo Node.js version
run: node --version
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
22 changes: 14 additions & 8 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,41 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project info
id: projectinfo
uses: gregoranders/nodejs-create-release@master
uses: gregoranders/nodejs-project-info@master
- name: npm install
run: |
npm install
- name: npm run build
run: |
npm run build
- name: npm test
run: |
npm test
- name: npm run build
run: |
npm run build
- name: code coverage
if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info
- name: publish code coverage to code climate
if: matrix.os == 'ubuntu-latest'
uses: paambaati/codeclimate-action@v2.6.0
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run test
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
Expand All @@ -61,3 +62,8 @@ jobs:
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
69 changes: 69 additions & 0 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Feature CI

on:
push:
branches:
- feature/*

env:
CI: true
GITHUB_BRANCH: ${{ github.ref }}
GITHUB_HEAD_REF: ${{ github.head_ref }}
GITHUB_BASE_REF: ${{ github.base_ref }}
GITHUB_COMMIT: ${{ github.sha }}

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project info
id: projectinfo
uses: gregoranders/nodejs-project-info@master
- name: npm install
run: |
npm install
- name: npm test
run: |
npm test
- name: npm run build
run: |
npm run build
- name: code coverage
if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info
- name: publish code coverage to code climate
if: matrix.os == 'ubuntu-latest'
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
19 changes: 12 additions & 7 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project info
Expand All @@ -35,12 +35,12 @@ jobs:
- name: npm install
run: |
npm install
- name: npm run build
run: |
npm run build
- name: npm test
run: |
npm test
- name: npm run build
run: |
npm run build
- name: code coverage
if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@master
Expand All @@ -49,11 +49,11 @@ jobs:
path-to-lcov: ./test/coverage/lcov.info
- name: publish code coverage to code climate
if: matrix.os == 'ubuntu-latest'
uses: paambaati/codeclimate-action@v2.6.0
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run test
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
Expand All @@ -62,6 +62,11 @@ jobs:
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
- name: create release
if: matrix.os == 'ubuntu-latest'
id: createrelease
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

lint-staged && npm test && npm run build
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run clear && npm install && lint-staged && npm test && npm run build && npm run codeclimate
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"recommendations": [
"coenraads.bracket-pair-colorizer",
"davidanson.vscode-markdownlint",
"vivaxy.vscode-conventional-commits",
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"orta.vscode-jest",
Expand Down
Loading