Skip to content

Commit

Permalink
feat(fromOpenApi): add browser support (#51)
Browse files Browse the repository at this point in the history
Co-authored-by: Artem Zakharchenko <[email protected]>
  • Loading branch information
tjosepo and kettanaito authored Aug 22, 2024
1 parent 026e0ff commit ef8104b
Show file tree
Hide file tree
Showing 14 changed files with 705 additions and 256 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Install Playwright
run: pnpm exec playwright install chromium

- name: Build the library
run: pnpm build

- name: Test the library
run: pnpm test
- name: Node.js tests
run: pnpm test:node

- name: Browser tests
run: pnpm test:browser
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Install Playwright
run: pnpm exec playwright install chromium

- name: Build
run: pnpm build

Expand Down
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"prepare": "pnpm simple-git-hooks init",
"prebuild": "pnpm lint",
"build": "tsc -p ./tsconfig.build.json",
"test": "vitest",
"test": "pnpm test:node && pnpm test:browser",
"test:node": "vitest --project node",
"test:browser": "vitest --project browser",
"prepack": "pnpm test && pnpm build",
"release": "release publish"
},
Expand Down Expand Up @@ -55,25 +57,27 @@
"@ossjs/release": "^0.8.1",
"@types/compression": "^1.7.1",
"@types/node": "18",
"@vitest/browser": "^2.0.5",
"compression": "^1.7.4",
"happy-dom": "^14.12.3",
"lint-staged": "^10.5.3",
"msw": "^2.3.0",
"playwright": "^1.34.3",
"playwright": "^1.44.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.8.1",
"ts-node": "^10.9.1",
"tslib": "^2.3.1",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
"vitest": "^2.0.5"
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.0.2",
"@stoplight/json": "^3.21.0",
"@types/har-format": "^1.2.7",
"@yellow-ticket/seed-json-schema": "^0.1.6",
"openapi-types": "^7.2.3",
"outvariant": "^1.2.1"
"outvariant": "^1.2.1",
"yaml": "^2.4.5"
},
"pnpm": {
"overrides": {
Expand Down
Loading

0 comments on commit ef8104b

Please sign in to comment.