Skip to content

Commit 0413780

Browse files
authored
Merge pull request #21 from AGIBuild/feature/add-module-template
feat(cli): Add CLI integration tests and migrate to System.CommandLine 2.0.1
2 parents 4fa544b + 5c6dc5f commit 0413780

File tree

131 files changed

+7840
-408
lines changed

Some content is hidden

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

131 files changed

+7840
-408
lines changed

.nuke/build.schema.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"ExecutableTarget": {
2525
"type": "string",
2626
"enum": [
27+
"AddLocalSource",
2728
"Build",
2829
"BuildAll",
2930
"BuildApp",
@@ -35,12 +36,20 @@
3536
"GenerateBundledModules",
3637
"Pack",
3738
"PackCli",
39+
"PackLibs",
40+
"PackLocal",
3841
"PackModule",
42+
"PackTemplates",
43+
"PackVsix",
3944
"Plugin",
4045
"PublishCli",
46+
"PublishLibs",
47+
"PublishTemplates",
48+
"RemoveLocalSource",
4149
"Restore",
4250
"Run",
43-
"Test"
51+
"Test",
52+
"TestCli"
4453
]
4554
},
4655
"Verbosity": {
@@ -137,6 +146,14 @@
137146
"Solution": {
138147
"type": "string",
139148
"description": "Path to a solution file that is automatically loaded"
149+
},
150+
"source": {
151+
"type": "string",
152+
"description": "NuGet source URL (default: nuget.org)"
153+
},
154+
"version": {
155+
"type": "string",
156+
"description": "Package version (default: auto-generated)"
140157
}
141158
}
142159
},

Directory.Build.props

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,39 @@
11
<Project>
22
<!--
3-
This file is intentionally minimal.
4-
All project-specific configurations are defined in each .csproj file.
3+
This file provides common properties for all projects in the solution.
54
See build/Modulus.Architecture.props for AssemblyDomain attribute generation.
65
-->
6+
7+
<PropertyGroup>
8+
<!--
9+
Version Configuration:
10+
- Set via command line: dotnet build -p:Version=1.2.3
11+
- Set via environment: VERSION=1.2.3 nuke pack-libs
12+
- Default: Auto-increment based on UTC datetime (1.0.YYDDD.HHmm)
13+
-->
14+
<Version Condition="'$(Version)' == ''">1.0.$([System.DateTime]::UtcNow.ToString("yy"))$([System.DateTime]::UtcNow.DayOfYear.ToString("000")).$([System.DateTime]::UtcNow.ToString("HHmm"))</Version>
15+
16+
<!-- NuGet Metadata -->
17+
<Authors>Modulus Team</Authors>
18+
<Company>Agibuild</Company>
19+
<Copyright>Copyright © $([System.DateTime]::UtcNow.Year) Agibuild. All rights reserved.</Copyright>
20+
<PackageProjectUrl>https://github.com/user/Modulus</PackageProjectUrl>
21+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
22+
<PackageReadmeFile>README.md</PackageReadmeFile>
23+
<PackageIcon>icon.png</PackageIcon>
24+
<PackageTags>modulus;plugin;module;extensibility;avalonia;blazor;desktop;web</PackageTags>
25+
<RepositoryUrl>https://github.com/user/Modulus</RepositoryUrl>
26+
<RepositoryType>git</RepositoryType>
27+
28+
<!-- Build Properties -->
29+
<LangVersion>latest</LangVersion>
30+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
31+
</PropertyGroup>
32+
33+
<!-- Include README and icon in all packages -->
34+
<ItemGroup>
35+
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" Visible="false" />
36+
<None Include="$(MSBuildThisFileDirectory)docs\Images\modules-logo-100.png" Pack="true" PackagePath="icon.png" Visible="false" />
37+
</ItemGroup>
38+
739
</Project>

Modulus.sln

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Modulus.Infrastructure.Data
6969
EndProject
7070
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Modulus.Cli", "src\Modulus.Cli\Modulus.Cli.csproj", "{88BEB284-8152-4207-91D2-4A26BBC341D4}"
7171
EndProject
72+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Modulus.Cli.IntegrationTests", "tests\Modulus.Cli.IntegrationTests\Modulus.Cli.IntegrationTests.csproj", "{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}"
73+
EndProject
7274
Global
7375
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7476
Debug|Any CPU = Debug|Any CPU
@@ -378,6 +380,18 @@ Global
378380
{88BEB284-8152-4207-91D2-4A26BBC341D4}.Release|x64.Build.0 = Release|Any CPU
379381
{88BEB284-8152-4207-91D2-4A26BBC341D4}.Release|x86.ActiveCfg = Release|Any CPU
380382
{88BEB284-8152-4207-91D2-4A26BBC341D4}.Release|x86.Build.0 = Release|Any CPU
383+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
384+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Debug|Any CPU.Build.0 = Debug|Any CPU
385+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Debug|x64.ActiveCfg = Debug|Any CPU
386+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Debug|x64.Build.0 = Debug|Any CPU
387+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Debug|x86.ActiveCfg = Debug|Any CPU
388+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Debug|x86.Build.0 = Debug|Any CPU
389+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Release|Any CPU.ActiveCfg = Release|Any CPU
390+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Release|Any CPU.Build.0 = Release|Any CPU
391+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Release|x64.ActiveCfg = Release|Any CPU
392+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Release|x64.Build.0 = Release|Any CPU
393+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Release|x86.ActiveCfg = Release|Any CPU
394+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28}.Release|x86.Build.0 = Release|Any CPU
381395
EndGlobalSection
382396
GlobalSection(SolutionProperties) = preSolution
383397
HideSolutionNode = FALSE
@@ -413,5 +427,6 @@ Global
413427
{6D47D1B4-A5E3-4BD6-B857-7845F59E4076} = {0AB3BF05-4346-4AA6-1389-037BE0695223}
414428
{27F8D10F-EB5E-4903-8FBA-07457612C088} = {C8E42992-5E42-0C2B-DBFE-AA848D06431C}
415429
{88BEB284-8152-4207-91D2-4A26BBC341D4} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
430+
{0FF8FFD9-B67E-4E7C-99EF-096C41DDDC28} = {0AB3BF05-4346-4AA6-1389-037BE0695223}
416431
EndGlobalSection
417432
EndGlobal

0 commit comments

Comments
 (0)