@fossa-app/bridge 0.1.0 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +38 -38
- package/.github/release-drafter.yml +52 -52
- package/.github/workflows/cicd.yml +87 -106
- package/.github/workflows/lint.yml +34 -34
- package/.github/workflows/release-drafter.yml +27 -27
- package/Fossa.Bridge.slnx +7 -7
- package/LICENSE +21 -21
- package/README.md +42 -5
- package/build.ps1 +11 -11
- package/dotnet-tools.json +26 -26
- package/format.ps1 +11 -11
- package/gig.ps1 +15 -15
- package/global.json +6 -6
- package/lint.ps1 +20 -20
- package/pack.ps1 +11 -11
- package/package.json +21 -21
- package/publish.ps1 +11 -11
- package/restore.ps1 +11 -11
- package/src/Fossa.Bridge/Fossa.Bridge.fsproj +16 -16
- package/src/Fossa.Bridge/Models/ApiModels.fs +136 -136
- package/src/Fossa.Bridge/Services/UrlHelpers.fs +18 -18
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.deps.json +97 -97
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.fable-temp.deps.json +40 -40
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.dgspec.json +82 -80
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.props +24 -25
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.targets +1 -1
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.dgspec.json +85 -83
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.props +28 -29
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.targets +1 -1
- package/src/Fossa.Bridge/obj/Release/{Fossa.Bridge.0.1.0.nuspec → Fossa.Bridge.0.1.4.nuspec} +19 -19
- package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -4
- package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.AssemblyInfo.fs +11 -11
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.AssemblyInfo.cs +23 -23
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.GeneratedMSBuildEditorConfig.editorconfig +17 -17
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.csproj.FileListAbsolute.txt +4 -4
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fsproj.FileListAbsolute.txt +14 -14
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.sourcelink.json +1 -1
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.xml +6 -6
- package/src/Fossa.Bridge/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
- package/src/Fossa.Bridge/obj/project.assets.json +229 -228
- package/test.ps1 +11 -11
- package/tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj +18 -18
- package/tests/Fossa.Bridge.Tests/Main.fs +7 -7
- package/tests/Fossa.Bridge.Tests/UrlHelpersTests.fs +33 -33
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/.msCoverageSourceRootsMapping_Fossa.Bridge.Tests +0 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests +0 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.deps.json +805 -805
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.runtimeconfig.json +13 -13
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.dgspec.json +181 -173
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.props +29 -30
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.targets +10 -10
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.AssemblyInfo.fs +10 -10
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.fsproj.FileListAbsolute.txt +190 -191
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.sourcelink.json +1 -1
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/apphost +0 -0
- package/tests/Fossa.Bridge.Tests/obj/project.assets.json +2022 -2017
- package/trigger.ps1 +32 -32
- package/tsconfig.json +15 -15
- package/version.ps1 +11 -11
package/.github/dependabot.yml
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: nuget
|
|
4
|
-
directory: "/"
|
|
5
|
-
labels:
|
|
6
|
-
- "dependencies"
|
|
7
|
-
- "maintenance"
|
|
8
|
-
schedule:
|
|
9
|
-
interval: daily
|
|
10
|
-
open-pull-requests-limit: 10
|
|
11
|
-
reviewers:
|
|
12
|
-
- tiksn
|
|
13
|
-
assignees:
|
|
14
|
-
- tiksn
|
|
15
|
-
- package-ecosystem: npm
|
|
16
|
-
directory: '/'
|
|
17
|
-
labels:
|
|
18
|
-
- 'dependencies'
|
|
19
|
-
- 'maintenance'
|
|
20
|
-
schedule:
|
|
21
|
-
interval: monthly
|
|
22
|
-
open-pull-requests-limit: 10
|
|
23
|
-
reviewers:
|
|
24
|
-
- tiksn
|
|
25
|
-
assignees:
|
|
26
|
-
- tiksn
|
|
27
|
-
- package-ecosystem: "github-actions"
|
|
28
|
-
directory: "/"
|
|
29
|
-
labels:
|
|
30
|
-
- "dependencies"
|
|
31
|
-
- "maintenance"
|
|
32
|
-
open-pull-requests-limit: 10
|
|
33
|
-
schedule:
|
|
34
|
-
interval: "daily"
|
|
35
|
-
reviewers:
|
|
36
|
-
- "tiksn"
|
|
37
|
-
assignees:
|
|
38
|
-
- "tiksn"
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: nuget
|
|
4
|
+
directory: "/"
|
|
5
|
+
labels:
|
|
6
|
+
- "dependencies"
|
|
7
|
+
- "maintenance"
|
|
8
|
+
schedule:
|
|
9
|
+
interval: daily
|
|
10
|
+
open-pull-requests-limit: 10
|
|
11
|
+
reviewers:
|
|
12
|
+
- tiksn
|
|
13
|
+
assignees:
|
|
14
|
+
- tiksn
|
|
15
|
+
- package-ecosystem: npm
|
|
16
|
+
directory: '/'
|
|
17
|
+
labels:
|
|
18
|
+
- 'dependencies'
|
|
19
|
+
- 'maintenance'
|
|
20
|
+
schedule:
|
|
21
|
+
interval: monthly
|
|
22
|
+
open-pull-requests-limit: 10
|
|
23
|
+
reviewers:
|
|
24
|
+
- tiksn
|
|
25
|
+
assignees:
|
|
26
|
+
- tiksn
|
|
27
|
+
- package-ecosystem: "github-actions"
|
|
28
|
+
directory: "/"
|
|
29
|
+
labels:
|
|
30
|
+
- "dependencies"
|
|
31
|
+
- "maintenance"
|
|
32
|
+
open-pull-requests-limit: 10
|
|
33
|
+
schedule:
|
|
34
|
+
interval: "daily"
|
|
35
|
+
reviewers:
|
|
36
|
+
- "tiksn"
|
|
37
|
+
assignees:
|
|
38
|
+
- "tiksn"
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
# release-drafter automatically creates a draft release for you each time you complete a PR in the main branch.
|
|
2
|
-
# It uses GitHub labels to categorize changes (See categories) and draft the release.
|
|
3
|
-
# release-drafter also generates a version for your release based on GitHub labels. You can add a label of 'major',
|
|
4
|
-
# 'minor' or 'patch' to determine which number in the version to increment.
|
|
5
|
-
# You may need to add these labels yourself.
|
|
6
|
-
# See https://github.com/release-drafter/release-drafter
|
|
7
|
-
name-template: "$RESOLVED_VERSION"
|
|
8
|
-
tag-template: "$RESOLVED_VERSION"
|
|
9
|
-
change-template: "- $TITLE by @$AUTHOR (#$NUMBER)"
|
|
10
|
-
no-changes-template: "- No changes"
|
|
11
|
-
categories:
|
|
12
|
-
- title: "📚 Documentation"
|
|
13
|
-
labels:
|
|
14
|
-
- "documentation"
|
|
15
|
-
- title: "🚀 New Features"
|
|
16
|
-
labels:
|
|
17
|
-
- "enhancement"
|
|
18
|
-
- title: "🐛 Bug Fixes"
|
|
19
|
-
labels:
|
|
20
|
-
- "bug"
|
|
21
|
-
- title: "🧰 Maintenance"
|
|
22
|
-
labels:
|
|
23
|
-
- "maintenance"
|
|
24
|
-
version-resolver:
|
|
25
|
-
major:
|
|
26
|
-
labels:
|
|
27
|
-
- "major"
|
|
28
|
-
minor:
|
|
29
|
-
labels:
|
|
30
|
-
- "minor"
|
|
31
|
-
patch:
|
|
32
|
-
labels:
|
|
33
|
-
- "patch"
|
|
34
|
-
default: patch
|
|
35
|
-
template: |
|
|
36
|
-
$CHANGES
|
|
37
|
-
|
|
38
|
-
## 👨🏼💻 Contributors
|
|
39
|
-
|
|
40
|
-
$CONTRIBUTORS
|
|
41
|
-
autolabeler:
|
|
42
|
-
- label: "documentation"
|
|
43
|
-
files:
|
|
44
|
-
- "**/*.md"
|
|
45
|
-
- label: "enhancement"
|
|
46
|
-
files:
|
|
47
|
-
- "Source/**/*"
|
|
48
|
-
- label: "maintenance"
|
|
49
|
-
files:
|
|
50
|
-
- ".github/**/*"
|
|
51
|
-
- "Images/**/*"
|
|
52
|
-
- "Tests/**/*"
|
|
1
|
+
# release-drafter automatically creates a draft release for you each time you complete a PR in the main branch.
|
|
2
|
+
# It uses GitHub labels to categorize changes (See categories) and draft the release.
|
|
3
|
+
# release-drafter also generates a version for your release based on GitHub labels. You can add a label of 'major',
|
|
4
|
+
# 'minor' or 'patch' to determine which number in the version to increment.
|
|
5
|
+
# You may need to add these labels yourself.
|
|
6
|
+
# See https://github.com/release-drafter/release-drafter
|
|
7
|
+
name-template: "$RESOLVED_VERSION"
|
|
8
|
+
tag-template: "$RESOLVED_VERSION"
|
|
9
|
+
change-template: "- $TITLE by @$AUTHOR (#$NUMBER)"
|
|
10
|
+
no-changes-template: "- No changes"
|
|
11
|
+
categories:
|
|
12
|
+
- title: "📚 Documentation"
|
|
13
|
+
labels:
|
|
14
|
+
- "documentation"
|
|
15
|
+
- title: "🚀 New Features"
|
|
16
|
+
labels:
|
|
17
|
+
- "enhancement"
|
|
18
|
+
- title: "🐛 Bug Fixes"
|
|
19
|
+
labels:
|
|
20
|
+
- "bug"
|
|
21
|
+
- title: "🧰 Maintenance"
|
|
22
|
+
labels:
|
|
23
|
+
- "maintenance"
|
|
24
|
+
version-resolver:
|
|
25
|
+
major:
|
|
26
|
+
labels:
|
|
27
|
+
- "major"
|
|
28
|
+
minor:
|
|
29
|
+
labels:
|
|
30
|
+
- "minor"
|
|
31
|
+
patch:
|
|
32
|
+
labels:
|
|
33
|
+
- "patch"
|
|
34
|
+
default: patch
|
|
35
|
+
template: |
|
|
36
|
+
$CHANGES
|
|
37
|
+
|
|
38
|
+
## 👨🏼💻 Contributors
|
|
39
|
+
|
|
40
|
+
$CONTRIBUTORS
|
|
41
|
+
autolabeler:
|
|
42
|
+
- label: "documentation"
|
|
43
|
+
files:
|
|
44
|
+
- "**/*.md"
|
|
45
|
+
- label: "enhancement"
|
|
46
|
+
files:
|
|
47
|
+
- "Source/**/*"
|
|
48
|
+
- label: "maintenance"
|
|
49
|
+
files:
|
|
50
|
+
- ".github/**/*"
|
|
51
|
+
- "Images/**/*"
|
|
52
|
+
- "Tests/**/*"
|
|
@@ -1,106 +1,87 @@
|
|
|
1
|
-
name: CICD
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
release:
|
|
9
|
-
types:
|
|
10
|
-
- published
|
|
11
|
-
workflow_dispatch:
|
|
12
|
-
|
|
13
|
-
permissions: read-all
|
|
14
|
-
|
|
15
|
-
env:
|
|
16
|
-
DOTNET_NOLOGO: true
|
|
17
|
-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
18
|
-
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
19
|
-
|
|
20
|
-
jobs:
|
|
21
|
-
ci:
|
|
22
|
-
name: CI
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
steps:
|
|
25
|
-
- name: "Checkout"
|
|
26
|
-
uses: actions/checkout@v6
|
|
27
|
-
with:
|
|
28
|
-
lfs: true
|
|
29
|
-
fetch-depth: 0
|
|
30
|
-
- name:
|
|
31
|
-
uses:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
- name: "
|
|
42
|
-
shell: pwsh
|
|
43
|
-
run:
|
|
44
|
-
- name:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
name: ".trash"
|
|
89
|
-
path: "./.trash"
|
|
90
|
-
- name: Set up Docker with containerd
|
|
91
|
-
uses: docker/setup-docker-action@v4
|
|
92
|
-
with:
|
|
93
|
-
daemon-config: |
|
|
94
|
-
{
|
|
95
|
-
"features": {
|
|
96
|
-
"containerd-snapshotter": true
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
- name: "Install InvokeBuild Module"
|
|
100
|
-
shell: pwsh
|
|
101
|
-
run: Install-Module -Name InvokeBuild -Force
|
|
102
|
-
- name: "Publish"
|
|
103
|
-
env:
|
|
104
|
-
DOCKER_ACCESS_TOKEN: ${{secrets.DOCKER_ACCESS_TOKEN}}
|
|
105
|
-
shell: pwsh
|
|
106
|
-
run: .\publish.ps1 -Instance ${{github.run_id}}
|
|
1
|
+
name: CICD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
release:
|
|
9
|
+
types:
|
|
10
|
+
- published
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
permissions: read-all
|
|
14
|
+
|
|
15
|
+
env:
|
|
16
|
+
DOTNET_NOLOGO: true
|
|
17
|
+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
18
|
+
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
ci:
|
|
22
|
+
name: CI
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- name: "Checkout"
|
|
26
|
+
uses: actions/checkout@v6
|
|
27
|
+
with:
|
|
28
|
+
lfs: true
|
|
29
|
+
fetch-depth: 0
|
|
30
|
+
- name: "Install .NET Core SDK"
|
|
31
|
+
uses: actions/setup-dotnet@v5.1.0
|
|
32
|
+
- name: "Install InvokeBuild Module"
|
|
33
|
+
shell: pwsh
|
|
34
|
+
run: Install-Module -Name InvokeBuild -Force
|
|
35
|
+
- name: "Restore"
|
|
36
|
+
shell: pwsh
|
|
37
|
+
run: .\restore.ps1 -Instance ${{github.run_id}}
|
|
38
|
+
- name: "Format"
|
|
39
|
+
shell: pwsh
|
|
40
|
+
run: .\format.ps1 -Instance ${{github.run_id}}
|
|
41
|
+
- name: "Version"
|
|
42
|
+
shell: pwsh
|
|
43
|
+
run: .\version.ps1 -Instance ${{github.run_id}}
|
|
44
|
+
- name: "Build"
|
|
45
|
+
shell: pwsh
|
|
46
|
+
run: .\build.ps1 -Instance ${{github.run_id}}
|
|
47
|
+
- name: "Test"
|
|
48
|
+
shell: pwsh
|
|
49
|
+
run: .\test.ps1 -Instance ${{github.run_id}}
|
|
50
|
+
- name: "Pack"
|
|
51
|
+
shell: pwsh
|
|
52
|
+
run: .\pack.ps1 -Instance ${{github.run_id}}
|
|
53
|
+
- name: "Publish Artefacts"
|
|
54
|
+
uses: actions/upload-artifact@v7.0.0
|
|
55
|
+
with:
|
|
56
|
+
name: .trash
|
|
57
|
+
path: ".trash"
|
|
58
|
+
include-hidden-files: true
|
|
59
|
+
|
|
60
|
+
cd:
|
|
61
|
+
name: CD
|
|
62
|
+
needs: ci
|
|
63
|
+
if: github.event_name == 'release'
|
|
64
|
+
environment:
|
|
65
|
+
name: "Release"
|
|
66
|
+
url: "https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}"
|
|
67
|
+
runs-on: ubuntu-latest
|
|
68
|
+
steps:
|
|
69
|
+
- name: "Checkout"
|
|
70
|
+
uses: actions/checkout@v6
|
|
71
|
+
with:
|
|
72
|
+
lfs: true
|
|
73
|
+
fetch-depth: 0
|
|
74
|
+
- name: "Download Artefact"
|
|
75
|
+
uses: actions/download-artifact@v8.0.0
|
|
76
|
+
with:
|
|
77
|
+
name: ".trash"
|
|
78
|
+
path: "./.trash"
|
|
79
|
+
- name: "Install InvokeBuild Module"
|
|
80
|
+
shell: pwsh
|
|
81
|
+
run: Install-Module -Name InvokeBuild -Force
|
|
82
|
+
- name: "Publish"
|
|
83
|
+
env:
|
|
84
|
+
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
|
|
85
|
+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
86
|
+
shell: pwsh
|
|
87
|
+
run: .\publish.ps1 -Instance ${{github.run_id}}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
name: Lint
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
|
|
9
|
-
permissions: read-all
|
|
10
|
-
|
|
11
|
-
env:
|
|
12
|
-
DOTNET_NOLOGO: true
|
|
13
|
-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
14
|
-
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
lint:
|
|
18
|
-
name: Lint
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
|
|
21
|
-
permissions:
|
|
22
|
-
statuses: write
|
|
23
|
-
|
|
24
|
-
steps:
|
|
25
|
-
- name: Checkout code
|
|
26
|
-
uses: actions/checkout@v6
|
|
27
|
-
with:
|
|
28
|
-
fetch-depth: 0
|
|
29
|
-
|
|
30
|
-
- name: Super-linter
|
|
31
|
-
uses: super-linter/super-linter@v8.5.0
|
|
32
|
-
env:
|
|
33
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
34
|
-
VALIDATE_JSCPD: false
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
permissions: read-all
|
|
10
|
+
|
|
11
|
+
env:
|
|
12
|
+
DOTNET_NOLOGO: true
|
|
13
|
+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
14
|
+
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
lint:
|
|
18
|
+
name: Lint
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
|
|
21
|
+
permissions:
|
|
22
|
+
statuses: write
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Checkout code
|
|
26
|
+
uses: actions/checkout@v6
|
|
27
|
+
with:
|
|
28
|
+
fetch-depth: 0
|
|
29
|
+
|
|
30
|
+
- name: Super-linter
|
|
31
|
+
uses: super-linter/super-linter@v8.5.0
|
|
32
|
+
env:
|
|
33
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
34
|
+
VALIDATE_JSCPD: false
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
name: Release Drafter
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request_target:
|
|
8
|
-
types:
|
|
9
|
-
- edited
|
|
10
|
-
- opened
|
|
11
|
-
- reopened
|
|
12
|
-
- synchronize
|
|
13
|
-
workflow_dispatch:
|
|
14
|
-
|
|
15
|
-
permissions: read-all
|
|
16
|
-
|
|
17
|
-
jobs:
|
|
18
|
-
update_release_draft:
|
|
19
|
-
permissions:
|
|
20
|
-
contents: write
|
|
21
|
-
pull-requests: write
|
|
22
|
-
runs-on: ubuntu-latest
|
|
23
|
-
steps:
|
|
24
|
-
- name: "Draft Release"
|
|
25
|
-
uses: release-drafter/release-drafter@v6.2.0
|
|
26
|
-
env:
|
|
27
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
1
|
+
name: Release Drafter
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request_target:
|
|
8
|
+
types:
|
|
9
|
+
- edited
|
|
10
|
+
- opened
|
|
11
|
+
- reopened
|
|
12
|
+
- synchronize
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
permissions: read-all
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
update_release_draft:
|
|
19
|
+
permissions:
|
|
20
|
+
contents: write
|
|
21
|
+
pull-requests: write
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- name: "Draft Release"
|
|
25
|
+
uses: release-drafter/release-drafter@v6.2.0
|
|
26
|
+
env:
|
|
27
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/Fossa.Bridge.slnx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<Solution>
|
|
2
|
-
<Folder Name="/src/">
|
|
3
|
-
<Project Path="src/Fossa.Bridge/Fossa.Bridge.fsproj" />
|
|
4
|
-
</Folder>
|
|
5
|
-
<Folder Name="/tests/">
|
|
6
|
-
<Project Path="tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj" />
|
|
7
|
-
</Folder>
|
|
1
|
+
<Solution>
|
|
2
|
+
<Folder Name="/src/">
|
|
3
|
+
<Project Path="src/Fossa.Bridge/Fossa.Bridge.fsproj" />
|
|
4
|
+
</Folder>
|
|
5
|
+
<Folder Name="/tests/">
|
|
6
|
+
<Project Path="tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj" />
|
|
7
|
+
</Folder>
|
|
8
8
|
</Solution>
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 fossa-app
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 fossa-app
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
|
-
# FossaApp Bridge
|
|
2
|
-
[](https://www.nuget.org/packages/Fossa.Bridge/)
|
|
3
|
+
[](https://www.npmjs.com/package/@fossa-app/bridge)
|
|
4
|
+
[](https://tiksn.com/)
|
|
5
|
+
[](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
|
|
6
|
+
|
|
7
|
+
The FossaApp Bridge provides shared frontend and backend functionality.
|
|
8
|
+
|
|
9
|
+
## Project Purpose
|
|
10
|
+
The Fossa.Bridge project is a shared F# library designed to encapsulate logic, validation, and domain models that are common to both the .NET backend and the TypeScript/JavaScript frontend. By using [Fable](https://fable.io/), the F# code is transpiled into JavaScript/TypeScript for the frontend environment while simultaneously being compiled into a standard .NET library for the backend. This ensures a single source of truth for core business logic, API models, and data validation rules, reducing duplication and preventing synchronization issues between the client and server.
|
|
11
|
+
|
|
12
|
+
## Package Usage
|
|
13
|
+
|
|
14
|
+
### For .NET Backends (C# / F#)
|
|
15
|
+
Install the NuGet package:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
dotnet add package Fossa.Bridge
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### For JavaScript / TypeScript Frontends
|
|
22
|
+
Install the NPM package:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install @fossa-app/bridge
|
|
26
|
+
```
|
|
27
|
+
or using Yarn:
|
|
28
|
+
```bash
|
|
29
|
+
yarn add @fossa-app/bridge
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Features
|
|
33
|
+
- Shared API domain models.
|
|
34
|
+
- Common validation and helper logic.
|
|
35
|
+
- Consistent behavior across client and server.
|
|
36
|
+
|
|
37
|
+
## Building and Packaging
|
|
38
|
+
To build both NPM and NuGet packages locally, run the included PowerShell script:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
.\pack.ps1
|
|
42
|
+
```
|
package/build.ps1
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
[CmdletBinding()]
|
|
2
|
-
param (
|
|
3
|
-
[Parameter()]
|
|
4
|
-
[string]
|
|
5
|
-
$Version,
|
|
6
|
-
[Parameter()]
|
|
7
|
-
[string]
|
|
8
|
-
$Instance
|
|
9
|
-
)
|
|
10
|
-
|
|
11
|
-
.\trigger.ps1 -Task Build -Instance $Instance -Version $Version
|
|
1
|
+
[CmdletBinding()]
|
|
2
|
+
param (
|
|
3
|
+
[Parameter()]
|
|
4
|
+
[string]
|
|
5
|
+
$Version,
|
|
6
|
+
[Parameter()]
|
|
7
|
+
[string]
|
|
8
|
+
$Instance
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
.\trigger.ps1 -Task Build -Instance $Instance -Version $Version
|