@team-supercharge/oasg 13.2.0-feature-csharp-functions-00ba5a99.0 → 13.2.0-feature-csharp-functions-34b6d98d.0
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/README.md +8 -0
- package/config.schema.yml +12 -0
- package/package.json +1 -1
- package/targets/csharp-functions/publish.sh +15 -7
package/README.md
CHANGED
@@ -779,6 +779,10 @@ describe('Auth', function () {
|
|
779
779
|
"type": "csharp-functions",
|
780
780
|
"source": "source-merged",
|
781
781
|
"packageName": "Oasg.Example",
|
782
|
+
"version": "1.0.0",
|
783
|
+
"sourceUrl": "https://gitlab.supercharge.io/api/v4/projects/1900/packages/nuget/index.json",
|
784
|
+
"username": "gitlab-ci-token",
|
785
|
+
"password" : "token",
|
782
786
|
"generatorCustomArgs": "--additional-properties=packageName=$packageName"
|
783
787
|
}
|
784
788
|
```
|
@@ -786,6 +790,10 @@ describe('Auth', function () {
|
|
786
790
|
|Parameter| Description| Required | Default |
|
787
791
|
|-|-|-|-|
|
788
792
|
| packageName | C# package name (convention: Title.Case). | Y | - |
|
793
|
+
| version | Version number of the generated package | Y | - |
|
794
|
+
| sourceUrl | Url to where the package will be published | Y | - |
|
795
|
+
| username | The username to nuget source | Y | - |
|
796
|
+
| password | The password to nuget source | Y | - |
|
789
797
|
| generatorCustomArgs | Custom arguments of the generator | N | - |
|
790
798
|
|
791
799
|
---
|
package/config.schema.yml
CHANGED
@@ -355,8 +355,20 @@ targets:
|
|
355
355
|
pattern: '^csharp-functions$'
|
356
356
|
packageName:
|
357
357
|
type: string
|
358
|
+
version:
|
359
|
+
type: string
|
360
|
+
sourceUrl:
|
361
|
+
type: string
|
362
|
+
username:
|
363
|
+
type: string
|
364
|
+
password:
|
365
|
+
type: string
|
358
366
|
required:
|
359
367
|
- packageName
|
368
|
+
- version
|
369
|
+
- sourceUrl
|
370
|
+
- username
|
371
|
+
- password
|
360
372
|
|
361
373
|
definitions:
|
362
374
|
# default
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@team-supercharge/oasg",
|
3
|
-
"version": "13.2.0-feature-csharp-functions-
|
3
|
+
"version": "13.2.0-feature-csharp-functions-34b6d98d.0",
|
4
4
|
"description": "Node-based tool to lint OpenAPI documents and generate clients, servers and documentation from them",
|
5
5
|
"author": "Supercharge",
|
6
6
|
"license": "MIT",
|
@@ -1,12 +1,20 @@
|
|
1
1
|
#/bin/bash
|
2
2
|
|
3
|
-
|
3
|
+
source $(dirname "$0")/../common.sh
|
4
4
|
|
5
|
-
|
5
|
+
cd out/$targetId
|
6
6
|
|
7
|
-
#
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
# pack
|
8
|
+
dotnet restore
|
9
|
+
dotnet build -c Release
|
10
|
+
dotnet pack -c Release /p:Version=${version}
|
11
11
|
|
12
|
-
|
12
|
+
# publish
|
13
|
+
dotnet nuget add source "${sourceUrl}" \
|
14
|
+
--name oasg \
|
15
|
+
--username ${username} \
|
16
|
+
--password ${password} \
|
17
|
+
--store-password-in-clear-text
|
18
|
+
dotnet nuget push "bin/Release/*.nupkg" --source oasg
|
19
|
+
|
20
|
+
cd ../..
|