Skip to content

Commit

Permalink
Merge pull request #12 from hildjj/update
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
hildjj committed Mar 8, 2024
2 parents db1c71d + 84573b3 commit 3959386
Show file tree
Hide file tree
Showing 11 changed files with 1,892 additions and 2,662 deletions.
13 changes: 0 additions & 13 deletions .eslintrc.cjs

This file was deleted.

23 changes: 11 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,32 @@ name: Tests
on:
push:
branches:
- 'main'
- main
pull_request:
branches: ['*']
branches:
- main

jobs:
build:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x, 21.x]
node-version: [18.x, 20.x, 21.x]
os: [ubuntu-latest]

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache: pnpm
- name: Install dependencies
run: npm install
- name: Check coding standards
if: matrix.node-version == '20.x' && matrix.os == 'ubuntu-latest'
run: npm run lint
- name: Test
run: npm run ci
run: pnpm install
- name: build # includes test
run: npm run build
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
7 changes: 3 additions & 4 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'
'use strict';

module.exports = {
reporter: 'progress',
timeout: '30000'
}

timeout: '30000',
};
4 changes: 4 additions & 0 deletions .ncurc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dep": ["prod", "dev", "packageManager"],
"reject": ["typescript"]
}
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.c8rc
.editorconfig
.eslintrc.cjs
.github/
.mocharc.cjs
.ncurc
.vscode/
coverage/
eslint.config.js
src/
test/
tsconfig.json
.github/
19 changes: 19 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import base from '@cto.af/eslint-config/index.js';
import globals from '@cto.af/eslint-config/globals.js';
import mod from '@cto.af/eslint-config/module.js';
import ts from '@cto.af/eslint-config/ts.js';

export default [
{
ignores: ['lib/**'],
},
...base,
...mod,
...ts,
{
files: ['test/*.js'],
languageOptions: {
globals: globals.mocha,
},
},
];

0 comments on commit 3959386

Please sign in to comment.