Skip to content

Commit 55ec065

Browse files
authored
Merge pull request #2 from neuroglia-io/modernize
feat: migrate to tsdown, vitest & oxc tooling
2 parents 7394169 + 8e585f9 commit 55ec065

Some content is hidden

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

62 files changed

+7963
-9705
lines changed

.eslintignore

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

.eslintrc.js

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

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 58 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,61 @@
11
name: Bug Report
22
description: Create a bug report
3-
labels: ["type: bug"]
3+
labels: ['type: bug']
44
body:
5-
6-
- type: markdown
7-
attributes:
8-
value: |
9-
:pray: Thanks for taking the time to fill out this bug report!
10-
11-
- type: markdown
12-
attributes:
13-
value: |
14-
## Bug Report
15-
16-
- type: textarea
17-
id: i-tried-this
18-
attributes:
19-
label: "I tried this:"
20-
placeholder: "What did you try to do? A code snippet or example helps."
21-
validations:
22-
required: true
23-
24-
- type: textarea
25-
id: instead-what-happened
26-
attributes:
27-
label: "This happened:"
28-
placeholder: "What happened instead of what you've expected?"
29-
validations:
30-
required: true
31-
32-
- type: textarea
33-
id: what-did-you-expect
34-
attributes:
35-
label: "I expected this:"
36-
placeholder: "What did you expect to happen? Describe the output or behavior you expected to see (unless it's obvious)."
37-
38-
- type: textarea
39-
id: workaround
40-
attributes:
41-
label: "Is there a workaround?"
42-
placeholder: "What's the workaround to avoid this issue?"
43-
44-
- type: textarea
45-
attributes:
46-
label: Anything else?
47-
placeholder: |
48-
Links? References? Logs? Anything that will give us more context about the issue you are encountering.
49-
Tip: You can attach images or log files by dragging files in.
50-
51-
- type: markdown
52-
attributes:
53-
value: |
54-
## Environment
55-
56-
- type: textarea
57-
attributes:
58-
label: Community Notes
59-
value: |
60-
<!-- Please keep this note for the community -->
61-
* Please vote by adding a 👍 reaction to the issue to help us prioritize.
62-
* If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞
5+
- type: markdown
6+
attributes:
7+
value: |
8+
:pray: Thanks for taking the time to fill out this bug report!
9+
10+
- type: markdown
11+
attributes:
12+
value: |
13+
## Bug Report
14+
15+
- type: textarea
16+
id: i-tried-this
17+
attributes:
18+
label: 'I tried this:'
19+
placeholder: 'What did you try to do? A code snippet or example helps.'
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
id: instead-what-happened
25+
attributes:
26+
label: 'This happened:'
27+
placeholder: "What happened instead of what you've expected?"
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: what-did-you-expect
33+
attributes:
34+
label: 'I expected this:'
35+
placeholder: "What did you expect to happen? Describe the output or behavior you expected to see (unless it's obvious)."
36+
37+
- type: textarea
38+
id: workaround
39+
attributes:
40+
label: 'Is there a workaround?'
41+
placeholder: "What's the workaround to avoid this issue?"
42+
43+
- type: textarea
44+
attributes:
45+
label: Anything else?
46+
placeholder: |
47+
Links? References? Logs? Anything that will give us more context about the issue you are encountering.
48+
Tip: You can attach images or log files by dragging files in.
49+
50+
- type: markdown
51+
attributes:
52+
value: |
53+
## Environment
54+
55+
- type: textarea
56+
attributes:
57+
label: Community Notes
58+
value: |
59+
<!-- Please keep this note for the community -->
60+
* Please vote by adding a 👍 reaction to the issue to help us prioritize.
61+
* If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
blank_issues_enabled: true
2-
contact_links: []
2+
contact_links: []

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
11
name: Feature Request
22
description: Create a feature request
3-
labels: ["type: feature"]
3+
labels: ['type: feature']
44
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
:pray: Thanks for taking the time to fill out this feature request!
59
6-
- type: markdown
7-
attributes:
8-
value: |
9-
:pray: Thanks for taking the time to fill out this feature request!
10+
- type: markdown
11+
attributes:
12+
value: |
13+
## Feature Request
1014
11-
- type: markdown
12-
attributes:
13-
value: |
14-
## Feature Request
15+
- type: textarea
16+
id: what-would-you-like-to-be-added
17+
attributes:
18+
label: 'What would you like to be added?'
19+
placeholder: "Description of the feature you'd like to see."
20+
validations:
21+
required: true
1522

16-
- type: textarea
17-
id: what-would-you-like-to-be-added
18-
attributes:
19-
label: "What would you like to be added?"
20-
placeholder: "Description of the feature you'd like to see."
21-
validations:
22-
required: true
23+
- type: textarea
24+
id: proposals
25+
attributes:
26+
label: 'Proposal(s):'
27+
placeholder: 'Describe your proposal(s) and any relevant details here.'
2328

24-
- type: textarea
25-
id: proposals
26-
attributes:
27-
label: "Proposal(s):"
28-
placeholder: "Describe your proposal(s) and any relevant details here."
29+
- type: textarea
30+
id: alternatives
31+
attributes:
32+
label: 'Alternative(s):'
33+
placeholder: 'Describe any alternative approaches, options, or suggestions you’d like to consider.'
2934

30-
- type: textarea
31-
id: alternatives
32-
attributes:
33-
label: "Alternative(s):"
34-
placeholder: "Describe any alternative approaches, options, or suggestions you’d like to consider."
35+
- type: textarea
36+
id: additional-info
37+
attributes:
38+
label: 'Additional info:'
39+
placeholder: 'Provide any supplementary details, context, or supporting information here.'
3540

36-
- type: textarea
37-
id: additional-info
38-
attributes:
39-
label: "Additional info:"
40-
placeholder: "Provide any supplementary details, context, or supporting information here."
41-
42-
- type: textarea
43-
attributes:
44-
label: Community Notes
45-
value: |
46-
<!-- Please keep this note for the community -->
47-
* Please vote by adding a 👍 reaction to the feature to help us prioritize.
48-
* If you are interested to work on this feature, please leave a comment.
41+
- type: textarea
42+
attributes:
43+
label: Community Notes
44+
value: |
45+
<!-- Please keep this note for the community -->
46+
* Please vote by adding a 👍 reaction to the feature to help us prioritize.
47+
* If you are interested to work on this feature, please leave a comment.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
**Many thanks for submitting your Pull Request :heart:!**
2-
3-
**What this PR does / why we need it**:
4-
5-
**Special notes for reviewers**:
6-
7-
**Additional information (if needed):**
1+
**Many thanks for submitting your Pull Request :heart:!**
2+
3+
**What this PR does / why we need it**:
4+
5+
**Special notes for reviewers**:
6+
7+
**Additional information (if needed):**

.github/workflows/node-ci.yml

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
1-
name: Node CI
2-
3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
8-
9-
jobs:
10-
build:
11-
12-
runs-on: ubuntu-latest
13-
14-
strategy:
15-
matrix:
16-
node-version: [20.x, 21.x, 22.x]
17-
18-
steps:
19-
- uses: actions/checkout@v2
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
- run: npm ci
25-
- run: npm run build --if-present
26-
- run: npm test
1+
name: Node CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
20+
strategy:
21+
matrix:
22+
node-version: [22.x]
23+
24+
steps:
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: npm
31+
- run: npm ci
32+
- run: npm run lint
33+
- run: npm run codegen:check
34+
- run: npm test
35+
- run: npm run validate:package

.github/workflows/npmjs-release.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,29 @@ name: npmjs release
33
on:
44
release:
55
types: [created]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.release.tag_name }}
9+
cancel-in-progress: false
10+
611
jobs:
7-
build:
12+
publish:
813
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
id-token: write
917
steps:
10-
- uses: actions/checkout@v2
11-
# Setup .npmrc file to publish to npm
12-
- uses: actions/setup-node@v2
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
1320
with:
14-
node-version: '20.x'
21+
node-version: '22.x'
22+
cache: npm
1523
registry-url: 'https://registry.npmjs.org'
1624
- run: npm ci
25+
- run: npm run lint
26+
- run: npm run codegen:check
1727
- run: npm test
18-
- run: npm run build
19-
- run: cd dist && npm publish --access=public
28+
- run: npm run validate:package
29+
- run: cd dist && npm publish --access=public --provenance
2030
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
31+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

.gitignore

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Dependency directory
2-
node_modules
3-
bower_components
2+
node_modules
3+
bower_components
4+
.npm-cache
45

56
# Editors
67
.idea
@@ -11,9 +12,11 @@ bower_components
1112
.DS_Store
1213
Thumbs.db
1314

14-
# Ignore built ts files
15-
dist/**/*
16-
out-tsc
17-
18-
# ignore yarn.lock
19-
yarn.lock
15+
# Ignore built ts files
16+
dist/**/*
17+
out-tsc
18+
coverage
19+
*.tgz
20+
21+
# ignore yarn.lock
22+
yarn.lock

0 commit comments

Comments
 (0)