Skip to content

Commit

Permalink
Expand on Complex Scenarios (#72)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
canhorn authored Sep 1, 2024
1 parent 2e356fe commit b3c0aeb
Show file tree
Hide file tree
Showing 1,448 changed files with 1,797,484 additions and 191,771 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .NET8
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Setup NodeJS
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Test
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./Tests/EventHorizon.Blazor.TypeScript.Interop.Generator.Tests/coverage.opencover.xml,./Tests/EventHorizon.Blazor.Interop.Generator.Tests/coverage.opencover.xml
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/dotnet-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.6
uses: gittools/actions/gitversion/setup@v3.0
with:
versionSpec: '5.x'
- name: Use GitVersion
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.6
uses: gittools/actions/gitversion/execute@v3.0
with:
additionalArguments: '/updateAssemblyInfo'
updateAssemblyInfo: true
- run: |
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"
echo "FullSemVer: ${{ steps.gitversion.outputs.FullSemVer }}"
- name: Setup .NET8
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Pack with dotnet
run: dotnet pack EventHorizon.Blazor.TypeScript.Interop.Generator.sln --output nuget-packages --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }}
run: dotnet pack EventHorizon.Blazor.TypeScript.Interop.Generator.sln --output nuget-packages --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.FullSemVer }}
- name: Push with dotnet
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 {}
12 changes: 6 additions & 6 deletions .github/workflows/main-tag-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.6
uses: gittools/actions/gitversion/setup@v3.0
with:
versionSpec: '5.x'
- name: Use GitVersion
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.6
uses: gittools/actions/gitversion/execute@v3.0
- run: |
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.FullSemVer }}"
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.67.0
uses: anothrNick/github-tag-action@1.70.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# We want to push to nuget the same version we tag
CUSTOM_TAG: ${{ steps.gitversion.outputs.NuGetVersionV2 }}
CUSTOM_TAG: ${{ steps.gitversion.outputs.FullSemVer }}
RELEASE_BRANCHES: main
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "C#: <project-name> Debug",
"type": "dotnet",
"request": "launch",
"projectPath": "${workspaceFolder}/Sample/EventHorizon.BabylonJS.Interop.Generator.ConsoleApp/EventHorizon.BabylonJS.Interop.Generator.ConsoleApp.csproj"
}

]
}
42 changes: 42 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "dotnet",
"task": "build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"label": "dotnet: build"
},
{
"type": "shell",
"label": "dotnet: test",
"command": "pwsh",
"args": [
"./entry.ps1",
"test"
],
"group": {
"kind": "test",
"isDefault": true
},
"dependsOn": [
"format"
],
"problemMatcher": []
},
{
"type": "shell",
"label": "dotnet: format",
"command": "pwsh",
"args": [
"./entry.ps1",
"format"
],
"problemMatcher": []
}
]
}
Loading

0 comments on commit b3c0aeb

Please sign in to comment.