Skip to content

Commit db0b5f6

Browse files
committed
up
1 parent 912fd44 commit db0b5f6

19 files changed

+2122
-903
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
branches: [master, main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18, 20, 22]
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Run linting
28+
run: npm run lint
29+
continue-on-error: true
30+
31+
- name: Run tests
32+
run: npm test
33+
34+
- name: Check build
35+
run: npm run build
36+
37+
coverage:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout code
41+
uses: actions/checkout@v4
42+
43+
- name: Setup Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: "22"
47+
48+
- name: Install dependencies
49+
run: npm ci
50+
51+
- name: Run coverage
52+
run: npm run coverage

.github/workflows/npmpublish.yml

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

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "22"
21+
registry-url: "https://registry.npmjs.org"
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run tests
27+
run: npm test
28+
29+
- name: Build package
30+
run: npm run build
31+
32+
- name: Publish to NPM
33+
run: npm publish --provenance --access public
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/run-tests.yml

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

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ node_modules/
44
# dotenv environment variables file
55
.env
66

7-
.nyc_output/
7+
.nyc_output/
8+
9+
# TypeScript compiled output
10+
dist/

.npmignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Source files
2+
*.ts
3+
!*.d.ts
4+
5+
# Test files
6+
test/
7+
8+
# Development files
9+
.github/
10+
.nyc_output/
11+
coverage/
12+
*.log
13+
.prettierrc
14+
tsconfig.json
15+
.gitignore
16+
17+
# IDE files
18+
.vscode/
19+
.idea/
20+
*.swp
21+
*.swo
22+
23+
# OS files
24+
.DS_Store
25+
Thumbs.db

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

.prettierignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Ignore compiled output
2+
dist/
3+
4+
# Ignore dependencies
5+
node_modules/
6+
7+
# Ignore coverage output
8+
.nyc_output/
9+
coverage/
10+
11+
# Ignore lock files
12+
package-lock.json
13+
yarn.lock
14+
15+
# Ignore log files
16+
*.log

.prettierrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"prettier.singleQuote": true
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": false,
5+
"printWidth": 80,
6+
"tabWidth": 2,
7+
"useTabs": false
38
}

.travis.yml

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

0 commit comments

Comments
 (0)