Skip to content

Commit

Permalink
Merge pull request #3 from Jaakkonen/main
Browse files Browse the repository at this point in the history
Add support to Vite 6 and add tests to CI
  • Loading branch information
schummar authored Jan 11, 2025
2 parents 99509de + 5c0c6e7 commit a35800d
Show file tree
Hide file tree
Showing 6 changed files with 2,241 additions and 755 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x] # LTS versions of Node.js

steps:
- uses: actions/checkout@v3

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

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Test
run: pnpm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
coverage
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-proxy-retry",
"version": "1.0.0",
"version": "1.1.0",
"description": "Adds retry options to Vite's proxy config",
"keywords": [
"vite",
Expand Down Expand Up @@ -34,19 +34,25 @@
"lint:eslint": "lint src package.json",
"lint:tsc": "tsc --noEmit",
"build": "tsup src/index.ts --dts --format cjs,esm",
"prepublishOnly": "runp lint -k build"
"prepublishOnly": "runp lint -k build",
"test": "vitest run --coverage",
"test:watch": "vitest"
},
"devDependencies": {
"@schummar/eslint-config": "github:schummar/eslint-config",
"@schummar/prettier-config": "github:schummar/prettier-config",
"@schummar/runp": "^1.12.0",
"@types/node": "18.15.11",
"@vitest/coverage-v8": "^2.1.8",
"eslint": "8.37.0",
"prettier": "2.8.7",
"semantic-release": "^21.0.1",
"tsup": "6.7.0",
"typescript": "5.0.3",
"vite": "4.2.1"
"vitest": "^2.1.8"
},
"peerDependencies": {
"vite": "^6.0"
},
"eslintConfig": {
"extends": "@schummar/eslint-config"
Expand Down
Loading

0 comments on commit a35800d

Please sign in to comment.