Skip to content

Commit f02b36c

Browse files
committed
Use ts-scripts, publish ESM only
1 parent ce3d5a2 commit f02b36c

12 files changed

Lines changed: 5517 additions & 11603 deletions

.eslintrc.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Node.js ${{ matrix.node-version }}
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node-version:
12+
- "19"
13+
- "20"
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Get npm cache directory
20+
id: npm-cache-dir
21+
shell: bash
22+
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
23+
- uses: actions/cache@v3
24+
with:
25+
path: ${{ steps.npm-cache-dir.outputs.dir }}
26+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
27+
restore-keys: |
28+
${{ runner.os }}-node-
29+
- run: npm ci
30+
- run: npm test
31+
- uses: codecov/codecov-action@v3
32+
with:
33+
name: Node.js ${{ matrix.node-version }}

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
[![NPM version][npm-image]][npm-url]
44
[![NPM downloads][downloads-image]][downloads-url]
5-
[![Build status][travis-image]][travis-url]
6-
[![Test coverage][coveralls-image]][coveralls-url]
7-
[![Bundle size][bundlephobia-image]][bundlephobia-url]
5+
[![Build status][build-image]][build-url]
6+
[![Test coverage][coverage-image]][coverage-url]
7+
[![Bundle size][bundle-image]][bundle-url]
88

99
> Small JWT library using the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API).
1010
@@ -60,13 +60,13 @@ This project is written using [TypeScript](https://github.com/Microsoft/TypeScri
6060

6161
MIT
6262

63-
[npm-image]: https://img.shields.io/npm/v/@borderless/web-jwt.svg?style=flat
63+
[npm-image]: https://img.shields.io/npm/v/@borderless/web-jwt
6464
[npm-url]: https://npmjs.org/package/@borderless/web-jwt
65-
[downloads-image]: https://img.shields.io/npm/dm/@borderless/web-jwt.svg?style=flat
65+
[downloads-image]: https://img.shields.io/npm/dm/@borderless/web-jwt
6666
[downloads-url]: https://npmjs.org/package/@borderless/web-jwt
67-
[travis-image]: https://img.shields.io/travis/BorderlessLabs/web-jwt.svg?style=flat
68-
[travis-url]: https://travis-ci.org/BorderlessLabs/web-jwt
69-
[coveralls-image]: https://img.shields.io/coveralls/BorderlessLabs/web-jwt.svg?style=flat
70-
[coveralls-url]: https://coveralls.io/r/BorderlessLabs/web-jwt?branch=master
71-
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/@borderless/web-jwt.svg
72-
[bundlephobia-url]: https://bundlephobia.com/result?p=@borderless/web-jwt
67+
[build-image]: https://img.shields.io/github/actions/workflow/status/borderless/web-jwt/ci.yml?branch=main
68+
[build-url]: https://github.com/borderless/web-jwt/actions/workflows/ci.yml?query=branch%3Amain
69+
[coverage-image]: https://img.shields.io/codecov/c/gh/borderless/web-jwt
70+
[coverage-url]: https://codecov.io/gh/borderless/web-jwt
71+
[bundle-image]: https://img.shields.io/bundlephobia/minzip/@borderless/web-jwt.svg
72+
[bundle-url]: https://bundlephobia.com/result?p=@borderless/web-jwt

jest.setup.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)