Skip to content

Commit 301aea3

Browse files
committed
🦦 setup for deno
1 parent 737a214 commit 301aea3

19 files changed

Lines changed: 350 additions & 5659 deletions

‎.github/workflows/ci.yml‎

Lines changed: 14 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ env:
1111
EMAIL: ${{vars.EMAIL}}
1212
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
1313
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
14-
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
1514
FORCE_COLOR: 1
1615

1716

@@ -20,62 +19,30 @@ jobs:
2019
strategy:
2120
matrix:
2221
platform: [ubuntu-latest, windows-latest, macOS-latest]
23-
node: [20.x, 22.x]
24-
name: Test with Node ${{matrix.node}} on ${{matrix.platform}}
22+
name: Test on ${{matrix.platform}}
2523
runs-on: ${{matrix.platform}}
2624
steps:
2725
- uses: actions/checkout@v4
28-
- uses: actions/setup-node@v3
26+
- uses: denoland/setup-deno@v2
2927
with:
30-
node-version: ${{matrix.node}}
31-
- run: npm ci
32-
- run: npm test
28+
deno-version: v2.x
29+
- run: deno test --allow-read
3330

3431

35-
coverage:
36-
name: Publish coverage
37-
needs: [test]
38-
runs-on: ubuntu-latest
39-
steps:
40-
- uses: actions/checkout@v4
41-
- uses: actions/setup-node@v3
42-
with:
43-
node-version: 22.x
44-
- run: npm ci
45-
- run: npm test
46-
- uses: paambaati/codeclimate-action@v3.0.0
47-
- uses: coverallsapp/github-action@master
48-
with:
49-
github-token: ${{secrets.GITHUB_TOKEN}}
50-
51-
52-
docs:
53-
name: Publish docs
54-
needs: [test]
55-
runs-on: ubuntu-latest
56-
steps:
57-
- uses: actions/checkout@v4
58-
- uses: actions/setup-node@v3
59-
with:
60-
node-version: 22.x
61-
- uses: nodef/git-config.action@v1.0.0
62-
- run: npm i -g typescript typedoc
63-
- run: npm ci
64-
- run: npm run publish-docs
65-
66-
67-
packages:
32+
publish-jsr:
6833
name: Publish packages
6934
needs: [test]
7035
runs-on: ubuntu-latest
36+
permissions:
37+
contents: write
38+
id-token: write
7139
steps:
7240
- uses: actions/checkout@v4
73-
- uses: actions/setup-node@v3
41+
- uses: denoland/setup-deno@v2
7442
with:
75-
node-version: 22.x
76-
- uses: nodef/npm-config.action@v1.0.0
43+
deno-version: v2.x
44+
- uses: nodef/npm-config.action@v1.2.0
7745
with:
78-
entries: access = public
79-
- run: npm i -g typescript rollup typedoc browserify terser
80-
- run: npm ci
81-
- run: npm run publish-packages
46+
credentials: auto
47+
- run: npx jsr publish
48+
- run: deno -A build.ts --publish-core

‎.github/workflows/pr.yml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ jobs:
99
strategy:
1010
matrix:
1111
platform: [ubuntu-latest, windows-latest, macOS-latest]
12-
node: [20.x, 22.x]
13-
name: Test with Node ${{ matrix.node }} on ${{ matrix.platform }}
14-
runs-on: ${{ matrix.platform }}
12+
name: Test on ${{matrix.platform}}
13+
runs-on: ${{matrix.platform}}
1514
steps:
1615
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v3
16+
- uses: denoland/setup-deno@v2
1817
with:
19-
node-version: ${{ matrix.node }}
20-
- run: npm ci
21-
- run: npm test
18+
deno-version: v2.x
19+
- run: deno test --allow-read

‎.gitignore‎

Lines changed: 39 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,50 @@
11
# Generated files
22
.build/
3-
.docs/
4-
coverage/
5-
*.d.ts
63
*.map
7-
example.js
8-
index.js
9-
index.?js
104

115
# Logs
126
logs
137
*.log
14-
npm-debug.log*
15-
yarn-debug.log*
16-
yarn-error.log*
178

18-
# Runtime data
19-
pids
20-
*.pid
21-
*.seed
22-
*.pid.lock
239

24-
# Directory for instrumented libs generated by jscoverage/JSCover
25-
lib-cov
26-
27-
# Coverage directory used by tools like istanbul
28-
coverage
29-
30-
# nyc test coverage
31-
.nyc_output
32-
33-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
34-
.grunt
35-
36-
# Bower dependency directory (https://bower.io/)
37-
bower_components
38-
39-
# node-waf configuration
40-
.lock-wscript
41-
42-
# Compiled binary addons (https://nodejs.org/api/addons.html)
43-
build/Release
44-
45-
# Dependency directories
46-
node_modules/
47-
jspm_packages/
48-
49-
# TypeScript v1 declaration files
50-
typings/
51-
52-
# Optional npm cache directory
53-
.npm
54-
55-
# Optional eslint cache
56-
.eslintcache
57-
58-
# Optional REPL history
59-
.node_repl_history
60-
61-
# Output of 'npm pack'
62-
*.tgz
63-
64-
# Yarn Integrity file
65-
.yarn-integrity
66-
67-
# dotenv environment variables file
10+
*.orig
11+
*.pyc
12+
*.swp
6813
.env
6914

70-
# next.js build output
71-
.next
15+
/.cargo_home/
16+
/.idea/
17+
/.vs/
18+
/.vscode/
19+
gclient_config.py_entries
20+
/target/
21+
/std/hash/_wasm/target
22+
/tests/wpt/runner/manifest.json
23+
/third_party/
24+
/tests/napi/node_modules
25+
/tests/napi/build
26+
/tests/napi/third_party_tests/node_modules
27+
28+
# MacOS generated files
29+
.DS_Store
30+
.DS_Store?
31+
32+
# Flamegraphs
33+
/flamebench*.svg
34+
/flamegraph*.svg
35+
36+
# WPT generated cert files
37+
/tests/wpt/runner/certs/index.txt*
38+
/tests/wpt/runner/certs/serial*
39+
40+
/ext/websocket/autobahn/reports
41+
42+
# JUnit files produced by deno test --junit
43+
junit.xml
44+
45+
# Jupyter files
46+
.ipynb_checkpoints/
47+
Untitled*.ipynb
48+
49+
# playwright browser binary cache
50+
/.ms-playwright

‎.gitmodules‎

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

‎.npmignore‎

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

‎CITATION.cff‎

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

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-24 Subhajit Sahu
3+
Copyright (c) 2018-26 Subhajit Sahu
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)