From 9c3e2a25c0c0464f289813e3cff4e6a132375273 Mon Sep 17 00:00:00 2001 From: mdnapo Date: Sun, 7 Jul 2024 21:24:56 +0200 Subject: [PATCH] Updated docs --- MycroForge.Core/README.md | 2 +- MycroForge.Package.PluginTemplate/.gitignore | 3 ++- .../MycroForge.Package.PluginTemplate.csproj | 2 +- MycroForge.Package.PluginTemplate/README.md | 4 ++-- README.md | 6 ++++++ nuget.docker-compose.yml | 4 +--- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/MycroForge.Core/README.md b/MycroForge.Core/README.md index 2fcae58..c2145b2 100644 --- a/MycroForge.Core/README.md +++ b/MycroForge.Core/README.md @@ -2,5 +2,5 @@ ```shell dotnet build -r Release -dotnet nuget push ./bin/Release/MycroForge.Core.1.0.0.nupkg --source http://localhost:5555/v3/index.json --api-key password +dotnet nuget push --source gitea bin/Release/MycroForge.Core.1.0.0.nupkg ``` \ No newline at end of file diff --git a/MycroForge.Package.PluginTemplate/.gitignore b/MycroForge.Package.PluginTemplate/.gitignore index 388bf0e..9d84bbb 100644 --- a/MycroForge.Package.PluginTemplate/.gitignore +++ b/MycroForge.Package.PluginTemplate/.gitignore @@ -1,4 +1,5 @@ bin/ obj/ templates/ -!templates/.gitkeep \ No newline at end of file +!templates/.gitkeep +MycroForge.Package.PluginTemplate.sln diff --git a/MycroForge.Package.PluginTemplate/MycroForge.Package.PluginTemplate.csproj b/MycroForge.Package.PluginTemplate/MycroForge.Package.PluginTemplate.csproj index f2fb2ba..ed27362 100644 --- a/MycroForge.Package.PluginTemplate/MycroForge.Package.PluginTemplate.csproj +++ b/MycroForge.Package.PluginTemplate/MycroForge.Package.PluginTemplate.csproj @@ -9,7 +9,7 @@ Donné Napo Template to use when creating a plugin for the MycroForge CLI. dotnet-new;templates; - https://github.com/mdnapo/myrcoforge + https://git.devdisciples.com/devdisciples/mycroforge Template net8.0 diff --git a/MycroForge.Package.PluginTemplate/README.md b/MycroForge.Package.PluginTemplate/README.md index 6b70900..eea6aa7 100644 --- a/MycroForge.Package.PluginTemplate/README.md +++ b/MycroForge.Package.PluginTemplate/README.md @@ -9,7 +9,7 @@ https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-tem `dotnet pack` ### Push to local nuget -`dotnet nuget push ./bin/Release/MycroForge.Package.PluginTemplate.1.0.0.nupkg --source http://localhost:5555/v3/index.json --api-key password` +`dotnet nuget push bin/Release/MycroForge.Package.PluginTemplate.1.0.0.nupkg --source gitea` ### Install template package from local nuget -`dotnet new install MycroForge.Package.PluginTemplate --nuget-source http://localhost:5555/v3/index.json --force` +`dotnet new install MycroForge.Package.PluginTemplate --nuget-source gitea` diff --git a/README.md b/README.md index 529bb77..7d05eaa 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,9 @@ The MycroForge CLI assumes a linux compatible environment, so on Windows you'll Run the install script in the same directory as the downloaded zip. See the example below for linux-x64. `sudo ./install.sh m4g-.zip ` + +### Add DevDisciples NuGet source + +```bash +dotnet nuget add source --name gitea --username username --password password https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json --store-password-in-clear-text +``` \ No newline at end of file diff --git a/nuget.docker-compose.yml b/nuget.docker-compose.yml index 4da2c8f..33a383d 100644 --- a/nuget.docker-compose.yml +++ b/nuget.docker-compose.yml @@ -4,10 +4,8 @@ services: nuget: image: bagetter/bagetter:latest container_name: nuget - volumes: - - 'nuget_data:/var/baget' ports: - '5555:8080' volumes: - nuget_data: \ No newline at end of file + nuget_data: