Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 272eaaf

Browse files
committed
[Update]: Added dotnet tool and project templates Nuget packages
1 parent e4b0c88 commit 272eaaf

File tree

18 files changed

+71
-6
lines changed

18 files changed

+71
-6
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Otterkit compiler files
77
.otterkit/
8-
OtterkitConfig.json
8+
nupkg/
99

1010
# COBOL source files
1111
*.cob

Diff for: Assets/OtterkitIcon.png

19.4 KB
Loading

Diff for: OtterkitTemplatePack/otterkittemplatepack.csproj

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<PackageType>Template</PackageType>
6+
<PackageId>Otterkit.Templates</PackageId>
7+
<Title>Otterkit COBOL Templates</Title>
8+
<IncludeContentInPack>true</IncludeContentInPack>
9+
<IncludeBuildOutput>false</IncludeBuildOutput>
10+
<ContentTargetFolders>content</ContentTargetFolders>
11+
<NoDefaultExcludes>true</NoDefaultExcludes>
12+
<NoWarn>$(NoWarn);NU5128;NU5100</NoWarn>
13+
</PropertyGroup>
14+
15+
<PropertyGroup>
16+
<PackageOutputPath>./nupkg</PackageOutputPath>
17+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
18+
<Version>1.0.0-alpha</Version>
19+
<Copyright>Copyright (c) Otterkit 2022</Copyright>
20+
<Authors>Otterkit Authors</Authors>
21+
<Company>Otterkit Project</Company>
22+
<PackageIcon>OtterkitIcon.png</PackageIcon>
23+
<PackageReadmeFile>README.md</PackageReadmeFile>
24+
<PackageTags>Otterkit;COBOL;Project;Templates</PackageTags>
25+
<PackageProjectUrl>https://github.com/otterkit</PackageProjectUrl>
26+
<RepositoryUrl>https://github.com/otterkit/otterkit</RepositoryUrl>
27+
<RepositoryType>git</RepositoryType>
28+
<Description>
29+
Part of the Otterkit COBOL compiler. This package installs the templates needed to generate new Otterkit COBOL projects.
30+
</Description>
31+
</PropertyGroup>
32+
33+
<ItemGroup>
34+
<Content Include="templates\**\*" Exclude="templates\**\bin\**;templates\**\obj\**" />
35+
<Compile Remove="**\*" />
36+
</ItemGroup>
37+
38+
<ItemGroup>
39+
<None Include="../Assets/OtterkitIcon.png" Pack="true" PackagePath="/"/>
40+
<None Include="../README.md" Pack="true" PackagePath="/"/>
41+
</ItemGroup>
42+
43+
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Diff for: src/Otterkit.csproj

+27-5
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,36 @@
77
<Nullable>enable</Nullable>
88
<Optimize>true</Optimize>
99
<Deterministic>true</Deterministic>
10-
<PublishSingleFile>true</PublishSingleFile>
11-
<SelfContained>false</SelfContained>
1210
</PropertyGroup>
11+
12+
<PropertyGroup>
13+
<PackAsTool>true</PackAsTool>
14+
<ToolCommandName>otterkit</ToolCommandName>
15+
<PackageOutputPath>./nupkg</PackageOutputPath>
16+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
17+
<Version>1.0.0-alpha</Version>
18+
<Copyright>Copyright (c) Otterkit 2022</Copyright>
19+
<Authors>Otterkit Authors</Authors>
20+
<Company>Otterkit Project</Company>
21+
<PackageIcon>OtterkitIcon.png</PackageIcon>
22+
<PackageReadmeFile>README.md</PackageReadmeFile>
23+
<PackageTags>Otterkit;COBOL;Compiler;Transpiler</PackageTags>
24+
<PackageProjectUrl>https://github.com/otterkit</PackageProjectUrl>
25+
<RepositoryUrl>https://github.com/otterkit/otterkit</RepositoryUrl>
26+
<RepositoryType>git</RepositoryType>
27+
<Description>
28+
Main package for the Otterkit COBOL compiler. This package installs the compiler as a dotnet global tool.
29+
</Description>
30+
</PropertyGroup>
31+
1332
<ItemGroup>
1433
<ProjectReference Include="../libotterkit/src/OtterkitLibrary.csproj" />
1534
<EmbeddedResource Include="parsinginfo.json" />
16-
<Content Include="../OtterkitTemplates/**">
17-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
18-
</Content>
1935
</ItemGroup>
36+
37+
<ItemGroup>
38+
<None Include="../Assets/OtterkitIcon.png" Pack="true" PackagePath="/"/>
39+
<None Include="../README.md" Pack="true" PackagePath="/"/>
40+
</ItemGroup>
41+
2042
</Project>

0 commit comments

Comments
 (0)