Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: update deps and add test config #77

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 2 additions & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,15 @@ module.exports = {
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.cjs.json", "./tsconfig.esm.json", "./tsconfig.json"],
project: ["./tsconfig.json"],
},
plugins: ["@typescript-eslint"],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: [
"lib",
"node_modules",
".eslintrc.cjs",
"**/__tests__/*.spec.ts",
"vitest.config.ts",
],
ignorePatterns: ["lib", "node_modules", ".eslintrc.cjs", "vitest.config.ts"],
rules: {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": ["error", { default: "generic" }],
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: "CodeQL Analysis Report"

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
branches: ["main"]
schedule:
- cron: '0 17 * * 4'
- cron: "0 17 * * 4"

jobs:
analyze:
Expand All @@ -21,27 +21,27 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'typescript' ]
node-version: [ '18.10.0' ]
language: ["typescript"]
node-version: ["18.0.0"]

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
continue-on-error: true
with:
languages: ${{ matrix.language }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
continue-on-error: true
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
path: "packages/core"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: /language:${{matrix.language}}
path: src/**
23 changes: 0 additions & 23 deletions .github/workflows/codesee-arch-diagram.yml

This file was deleted.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@expressots/your-provider",
"name": "your-provider-name",
"version": "0.0.1",
"description": "Expressots - Your provider description (@expressots/your-provider)",
"description": "Expressots - Your provider description (your-provider-name)",
"author": "Author Name",
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/types/index.d.ts",
Expand Down Expand Up @@ -47,7 +47,7 @@
"server-side"
],
"engines": {
"node": ">=18.10.0"
"node": ">=18.0.0"
},
"scripts": {
"prepare": "husky install",
Expand All @@ -73,23 +73,23 @@
},
"devDependencies": {
"@codecov/vite-plugin": "0.0.1-beta.6",
"@commitlint/cli": "18.0.0",
"@commitlint/config-conventional": "17.7.0",
"@release-it/conventional-changelog": "7.0.1",
"@types/node": "20.4.9",
"@typescript-eslint/eslint-plugin": "6.6.0",
"@typescript-eslint/parser": "6.6.0",
"@vitest/coverage-v8": "1.4.0",
"eslint": "8.48.0",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@release-it/conventional-changelog": "8.0.1",
"@types/node": "22.0.2",
"@typescript-eslint/eslint-plugin": "8.0.0",
"@typescript-eslint/parser": "8.0.0",
"@vitest/coverage-v8": "2.0.5",
"eslint": "9.8.0",
"eslint-config-prettier": "9.0.0",
"husky": "8.0.3",
"husky": "9.1.4",
"prettier": "3.0.3",
"release-it": "16.1.5",
"release-it": "17.6.0",
"ts-jest": "29.0.5",
"typescript": "5.2.2",
"vite": "5.2.8",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.4.0"
"vitest": "2.0.5"
},
"release-it": {
"git": {
Expand Down
7 changes: 7 additions & 0 deletions test/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, it, expect } from "vitest";

describe("example", () => {
it("should work", () => {
expect(1 + 1).toBe(2);
});
});
4 changes: 2 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export default defineConfig({
globals: true,
environment: "node",
setupFiles: ["reflect-metadata"],
exclude: ["**/node_modules/**", "**/test/**", "**/lib/**"],
exclude: ["**/node_modules/**", "**/lib/**"],
coverage: {
all: true,
include: ["**/src/**"],
exclude: ["**/node_modules/**", "**/lib/**", "**/test/**", "**/index.ts/**"],
exclude: ["**/node_modules/**", "**/lib/**", "**/index.ts/**"],
thresholds: {
global: {
statements: 85,
Expand Down
Loading