Skip to content

Commit b3c0aeb

Browse files
authored
Expand on Complex Scenarios (#72)
* feat: Added better Generic Void type handling feat: Added better handling of Literal Value types * feat: Added Readonly parsing in TypeScript Added ability to remove/ignore specific properties in model generation. * feat: Update ASTModel class inheritance This commit updates the ASTModel class to inherit from the ASTNode class, providing a more consistent and structured hierarchy for the AST model. This change improves code organization and maintainability. * perf: Updated Data Model and added Max Degree of Parallelism The Data Model was done to decrease lookup times. Added Parallelism to allow for parallel processing of generation step. * feat: Support more Scenarios Better support interface parsing/writing Better support Generic parsing/writing Include base class constructors in extended class. Expanded scenarios for better coverage. * feat: Added Variable and Function Declaration Parsing and Writing chore: Code Cleanup * feat: Fixed Reference Types being parsed as Union Types when they were not. test: Added more test coverage. chore: Code Cleanup perf: Added Class reference lookups. * feat: Updated Generate Sample Code * feat: Updated Console App Generation Logic * feat: Updated Sample WASM Example Project * feat: Update BabylonJS Server Sample * feat: Update Minor Version * chore: Code Cleanup * chore: Code Cleanup and Coverage * chore: Code Cleanup * build: Script updated uses * build: Updated GitTools version * chore: Code Cleanup +semver: minor
1 parent 2e356fe commit b3c0aeb

File tree

1,448 files changed

+1797484
-191771
lines changed

Some content is hidden

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

1,448 files changed

+1797484
-191771
lines changed

.github/workflows/dotnet-core.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Setup .NET8
17-
uses: actions/setup-dotnet@v1
17+
uses: actions/setup-dotnet@v4
1818
with:
1919
dotnet-version: '8.0.x'
2020
- name: Setup NodeJS
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v4
2222
with:
2323
node-version: '20'
2424
- name: Install dependencies
@@ -28,7 +28,7 @@ jobs:
2828
- name: Test
2929
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
3030
- name: Upload Coverage to Codecov
31-
uses: codecov/codecov-action@v1
31+
uses: codecov/codecov-action@v4
3232
with:
3333
token: ${{ secrets.CODECOV_TOKEN }}
3434
files: ./Tests/EventHorizon.Blazor.TypeScript.Interop.Generator.Tests/coverage.opencover.xml,./Tests/EventHorizon.Blazor.Interop.Generator.Tests/coverage.opencover.xml

.github/workflows/dotnet-package.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: '0'
1717
- name: Install GitVersion
18-
uses: gittools/actions/gitversion/setup@v0.9.6
18+
uses: gittools/actions/gitversion/setup@v3.0
1919
with:
2020
versionSpec: '5.x'
2121
- name: Use GitVersion
2222
id: gitversion
23-
uses: gittools/actions/gitversion/execute@v0.9.6
23+
uses: gittools/actions/gitversion/execute@v3.0
2424
with:
25-
additionalArguments: '/updateAssemblyInfo'
25+
updateAssemblyInfo: true
2626
- run: |
27-
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"
27+
echo "FullSemVer: ${{ steps.gitversion.outputs.FullSemVer }}"
2828
- name: Setup .NET8
29-
uses: actions/setup-dotnet@v1
29+
uses: actions/setup-dotnet@v4
3030
with:
3131
dotnet-version: '8.0.x'
3232
- name: Build with dotnet
3333
run: dotnet build --configuration Release
3434
- name: Pack with dotnet
35-
run: dotnet pack EventHorizon.Blazor.TypeScript.Interop.Generator.sln --output nuget-packages --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }}
35+
run: dotnet pack EventHorizon.Blazor.TypeScript.Interop.Generator.sln --output nuget-packages --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.FullSemVer }}
3636
- name: Push with dotnet
3737
run: find nuget-packages -name '*.nupkg' | xargs -i dotnet nuget push --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json {}

.github/workflows/main-tag-bump.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: '0'
1515
- name: Install GitVersion
16-
uses: gittools/actions/gitversion/setup@v0.9.6
16+
uses: gittools/actions/gitversion/setup@v3.0
1717
with:
1818
versionSpec: '5.x'
1919
- name: Use GitVersion
2020
id: gitversion
21-
uses: gittools/actions/gitversion/execute@v0.9.6
21+
uses: gittools/actions/gitversion/execute@v3.0
2222
- run: |
23-
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"
23+
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.FullSemVer }}"
2424
- name: Bump version and push tag
25-
uses: anothrNick/github-tag-action@1.67.0
25+
uses: anothrNick/github-tag-action@1.70.0
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
# We want to push to nuget the same version we tag
29-
CUSTOM_TAG: ${{ steps.gitversion.outputs.NuGetVersionV2 }}
29+
CUSTOM_TAG: ${{ steps.gitversion.outputs.FullSemVer }}
3030
RELEASE_BRANCHES: main

.vscode/launch.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "C#: <project-name> Debug",
9+
"type": "dotnet",
10+
"request": "launch",
11+
"projectPath": "${workspaceFolder}/Sample/EventHorizon.BabylonJS.Interop.Generator.ConsoleApp/EventHorizon.BabylonJS.Interop.Generator.ConsoleApp.csproj"
12+
}
13+
14+
]
15+
}

.vscode/tasks.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "dotnet",
6+
"task": "build",
7+
"group": {
8+
"kind": "build",
9+
"isDefault": true
10+
},
11+
"problemMatcher": [],
12+
"label": "dotnet: build"
13+
},
14+
{
15+
"type": "shell",
16+
"label": "dotnet: test",
17+
"command": "pwsh",
18+
"args": [
19+
"./entry.ps1",
20+
"test"
21+
],
22+
"group": {
23+
"kind": "test",
24+
"isDefault": true
25+
},
26+
"dependsOn": [
27+
"format"
28+
],
29+
"problemMatcher": []
30+
},
31+
{
32+
"type": "shell",
33+
"label": "dotnet: format",
34+
"command": "pwsh",
35+
"args": [
36+
"./entry.ps1",
37+
"format"
38+
],
39+
"problemMatcher": []
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)