Skip to content

Commit b32a305

Browse files
authored
chore: migrate to esm and use Deno for development (#143)
1 parent 7a39a5c commit b32a305

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1756
-3820
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,26 @@ jobs:
1111
name: test ubuntu-latest
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
15+
- uses: denoland/setup-deno@v1
16+
with:
17+
deno-version: canary
18+
- name: npm install
19+
run: npm ci
20+
- name: Lint
21+
run: deno lint
22+
- uses: dprint/[email protected]
23+
- name: Check
24+
run: deno task check
1525
- name: Build
1626
run: |
17-
npm ci
18-
npm run addTypeScriptVersions
19-
npm run updateCompilerFiles
20-
npm run test
21-
npm run predeploy
27+
deno task addTypeScriptVersions
28+
deno task updateCompilerFiles
29+
deno task test
30+
deno task predeploy
2231
- name: Deploy
2332
if: github.ref == 'refs/heads/main'
24-
uses: JamesIves/github-pages-deploy-action@4.1.1
33+
uses: JamesIves/github-pages-deploy-action@v4.5.0
2534
with:
2635
branch: gh-pages
2736
folder: dist

deno.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"compilerOptions": {
3+
"lib": ["deno.ns", "dom"],
4+
"jsx": "react-jsx"
5+
},
6+
"lint": {
7+
"rules": {
8+
"exclude": ["no-explicit-any"]
9+
},
10+
"exclude": [
11+
"**/*.generated.ts"
12+
]
13+
},
14+
"fmt": {
15+
"exclude": [
16+
"**/*.generated.ts"
17+
]
18+
},
19+
"imports": {
20+
"@david/dax": "jsr:@david/dax@^0.40.0",
21+
"@david/dts-minify": "jsr:@david/dts-minify@^0.3.3",
22+
"@std/expect": "jsr:@std/expect@^0.221",
23+
"@std/semver": "jsr:@std/semver@^0.221"
24+
},
25+
"exclude": [
26+
"dist"
27+
],
28+
"unstable": [
29+
"byonm",
30+
"sloppy-imports",
31+
"bare-node-builtins",
32+
"unsafe-proto"
33+
]
34+
}

deno.lock

Lines changed: 114 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dprint.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"incremental": true,
32
"lineWidth": 160,
4-
"indentWidth": 2,
53
"excludes": [
64
"**/node_modules",
75
"**/*-lock.json",

jest.config.js

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

0 commit comments

Comments
 (0)