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

Replaces Webpack/Babel/Mocha with Vite/Vitest #484

Closed
wants to merge 7 commits into from
Closed
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
54 changes: 0 additions & 54 deletions .babelrc

This file was deleted.

14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,28 @@ on:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 make install install-styleguide build test
node-compatibility:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 13.x, 14.x, 15.x, 16.x, 17.x, 18.x, 19.x, 20.x, 21.x, 22.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 make install install-styleguide build
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 make install install-styleguide build test
- run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 make test-node-compatibility
lint:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 0 additions & 5 deletions .mocharc.json

This file was deleted.

9 changes: 0 additions & 9 deletions .nycrc

This file was deleted.

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ scan:
test:
npm run test

## test - Test the project
test-node-compatibility:
npm run test:node-compatibility

## update - Update dependencies (Unix only)
update: | update-examples-submodule
npm update
Expand Down
22 changes: 1 addition & 21 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,5 @@
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
"critical": true,
// Only fail the audit if there are critical vulnerabilities.
"allowlist": [
{
"GHSA-8cp3-66vr-3r4c": {
"active": true,
"expiry": "2024-10-22",
// Re-evaluate this vulnerability after this date.
"notes": "Transitive dependency of `superagent`, awaiting new `superagent` release."
// https://github.com/ladjs/superagent/issues/1799
// Vulnerability fix only available in `[email protected]+`: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight.
}
},
{
"GHSA-grv7-fg5c-xmjg|braces": {
"active": true,
"expiry": "2024-12-22", // Re-evaluate this vulnerability after this date.
"notes": "Transitive dependency of `chokidar` and `micromatch`"
// (`braces` -> `chokidar` -> `mocha`), chokidar unlikely to get patched: https://github.com/paulmillr/chokidar/issues/1301, mocha maintenance questionable: https://github.com/mochajs/mocha/issues/5027
// (`braces` -> `micromatch` -> `fast-glob` -> `globby` -> `typescript-eslint/typescript-estree`), micromatch is patched, but fast-glob not maintained: https://github.com/mrmlnc/fast-glob/issues/443
}
}
]
"allowlist": []
}
Loading
Loading