-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace legacy package template with RCL
- Loading branch information
1 parent
f286b11
commit 45d3f16
Showing
19 changed files
with
135 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Do not inherit customized EditorConfig for template content | ||
root = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<Project> | ||
<!-- Enable multi-level merging with src --> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..\src\'))" /> | ||
<!-- Enable multi-level merging with src --> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..\src\'))" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,65 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<Title>Umbraco CMS - Templates</Title> | ||
<Description>Contains templates for Umbraco CMS, as well as the templates for creating new packages for the Umbraco CMS.</Description> | ||
<PackageType>Template</PackageType> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<IncludeSymbols>false</IncludeSymbols> | ||
<NoDefaultExcludes>true</NoDefaultExcludes> | ||
<IncludeContentInPack>true</IncludeContentInPack> | ||
<ContentTargetFolders>.</ContentTargetFolders> | ||
<NoWarn>NU5128</NoWarn> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<Title>Umbraco CMS - Templates</Title> | ||
<Description>Contains templates for Umbraco CMS, as well as the templates for creating new packages for the Umbraco CMS.</Description> | ||
<PackageType>Template</PackageType> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<IncludeSymbols>false</IncludeSymbols> | ||
<NoDefaultExcludes>true</NoDefaultExcludes> | ||
<IncludeContentInPack>true</IncludeContentInPack> | ||
<ContentTargetFolders>.</ContentTargetFolders> | ||
<NoWarn>NU5128</NoWarn> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="UmbracoPackage\**" Exclude="bin;obj" /> | ||
<Content Include="UmbracoPackageRcl\**" Exclude="bin;obj" /> | ||
<Content Include="UmbracoProject\**" Exclude="bin;obj" /> | ||
<Content Include="..\src\Umbraco.Web.UI\Program.cs"> | ||
<Link>UmbracoProject\Program.cs</Link> | ||
<PackagePath>UmbracoProject</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\Views\Partials\blocklist\**"> | ||
<Link>UmbracoProject\Views\Partials\blocklist\%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
<PackagePath>UmbracoProject\Views\Partials\blocklist</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\Views\Partials\grid\**"> | ||
<Link>UmbracoProject\Views\Partials\grid\%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
<PackagePath>UmbracoProject\Views\Partials\grid</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\Views\Partials\blockgrid\**"> | ||
<Link>UmbracoProject\Views\Partials\blockgrid\%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
<PackagePath>UmbracoProject\Views\Partials\blockgrid</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\Views\_ViewImports.cshtml"> | ||
<Link>UmbracoProject\Views\_ViewImports.cshtml</Link> | ||
<PackagePath>UmbracoProject\Views</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\wwwroot\favicon.ico"> | ||
<Link>UmbracoProject\wwwroot\favicon.ico</Link> | ||
<PackagePath>UmbracoProject\wwwroot</PackagePath> | ||
</Content> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="UmbracoPackage\**" Exclude="bin;obj" /> | ||
<Content Include="UmbracoProject\**" Exclude="bin;obj" /> | ||
<Content Include="..\src\Umbraco.Web.UI\Program.cs"> | ||
<Link>UmbracoProject\Program.cs</Link> | ||
<PackagePath>UmbracoProject</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\Views\Partials\blocklist\**"> | ||
<Link>UmbracoProject\Views\Partials\blocklist\%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
<PackagePath>UmbracoProject\Views\Partials\blocklist</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\Views\Partials\grid\**"> | ||
<Link>UmbracoProject\Views\Partials\grid\%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
<PackagePath>UmbracoProject\Views\Partials\grid</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\Views\Partials\blockgrid\**"> | ||
<Link>UmbracoProject\Views\Partials\blockgrid\%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
<PackagePath>UmbracoProject\Views\Partials\blockgrid</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\Views\_ViewImports.cshtml"> | ||
<Link>UmbracoProject\Views\_ViewImports.cshtml</Link> | ||
<PackagePath>UmbracoProject\Views</PackagePath> | ||
</Content> | ||
<Content Include="..\src\Umbraco.Web.UI\wwwroot\favicon.ico"> | ||
<Link>UmbracoProject\wwwroot\favicon.ico</Link> | ||
<PackagePath>UmbracoProject\wwwroot</PackagePath> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<!-- Update template.json files with the default UmbracoVersion value set to the current build version --> | ||
<ItemGroup> | ||
<PackageReference Include="Umbraco.JsonSchema.Extensions" Version="0.3.0" PrivateAssets="all" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Update="**\.template.config\template.json" Pack="false" /> | ||
</ItemGroup> | ||
<Target Name="GetUpdatedTemplateJsonPackageFiles" BeforeTargets="GenerateNuspec" AfterTargets="GetUmbracoBuildVersion"> | ||
<ItemGroup> | ||
<_TemplateJsonFiles Include="**\.template.config\template.json" Exclude="bin\**;obj\**" /> | ||
<_TemplateJsonFiles> | ||
<DestinationFile>$(IntermediateOutputPath)%(RelativeDir)%(Filename)%(Extension)</DestinationFile> | ||
</_TemplateJsonFiles> | ||
</ItemGroup> | ||
<Copy SourceFiles="@(_TemplateJsonFiles)" DestinationFiles="%(DestinationFile)" /> | ||
<JsonPathUpdateValue JsonFile="%(_TemplateJsonFiles.DestinationFile)" Path="$.symbols.UmbracoVersion.defaultValue" Value=""$(PackageVersion)"" /> | ||
<ItemGroup> | ||
<_PackageFiles Include="%(_TemplateJsonFiles.DestinationFile)"> | ||
<PackagePath>%(_TemplateJsonFiles.RelativeDir)</PackagePath> | ||
</_PackageFiles> | ||
</ItemGroup> | ||
</Target> | ||
<!-- Update template.json files with the default UmbracoVersion value set to the current build version --> | ||
<ItemGroup> | ||
<PackageReference Include="Umbraco.JsonSchema.Extensions" Version="0.3.0" PrivateAssets="all" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Update="**\.template.config\template.json" Pack="false" /> | ||
</ItemGroup> | ||
<Target Name="GetUpdatedTemplateJsonPackageFiles" BeforeTargets="GenerateNuspec" AfterTargets="GetUmbracoBuildVersion"> | ||
<ItemGroup> | ||
<_TemplateJsonFiles Include="**\.template.config\template.json" Exclude="bin\**;obj\**" /> | ||
<_TemplateJsonFiles> | ||
<DestinationFile>$(IntermediateOutputPath)%(RelativeDir)%(Filename)%(Extension)</DestinationFile> | ||
</_TemplateJsonFiles> | ||
</ItemGroup> | ||
<Copy SourceFiles="@(_TemplateJsonFiles)" DestinationFiles="%(DestinationFile)" /> | ||
<JsonPathUpdateValue JsonFile="%(_TemplateJsonFiles.DestinationFile)" Path="$.symbols.UmbracoVersion.defaultValue" Value=""$(PackageVersion)"" /> | ||
<ItemGroup> | ||
<_PackageFiles Include="%(_TemplateJsonFiles.DestinationFile)"> | ||
<PackagePath>%(_TemplateJsonFiles.RelativeDir)</PackagePath> | ||
</_PackageFiles> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
templates/UmbracoPackage/App_Plugins/UmbracoPackage/package.manifest
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ContentTargetFolders>.</ContentTargetFolders> | ||
<Product>UmbracoPackage</Product> | ||
<PackageId>UmbracoPackage</PackageId> | ||
<Title>UmbracoPackage</Title> | ||
<Description>...</Description> | ||
<PackageTags>umbraco plugin package</PackageTags> | ||
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">UmbracoPackage</RootNamespace> | ||
</PropertyGroup> | ||
<Project Sdk="Microsoft.NET.Sdk.Razor"> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<AddRazorSupportForMvc Condition="'$(SupportPagesAndViews)' == 'True'">true</AddRazorSupportForMvc> | ||
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">UmbracoPackage</RootNamespace> | ||
<StaticWebAssetBasePath>App_Plugins/UmbracoPackage</StaticWebAssetBasePath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Umbraco.Cms.Web.Website" Version="UMBRACO_VERSION_FROM_TEMPLATE" /> | ||
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="UMBRACO_VERSION_FROM_TEMPLATE" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<PackageId>UmbracoPackage</PackageId> | ||
<Product>UmbracoPackage</Product> | ||
<Title>UmbracoPackage</Title> | ||
<Description>...</Description> | ||
<PackageTags>umbraco plugin package</PackageTags> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="App_Plugins\UmbracoPackage\**" ExcludeFromSingleFile="true" CopyToPublishDirectory="Always" /> | ||
<None Include="buildTransitive\**" Pack="true" PackagePath="buildTransitive" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(SupportPagesAndViews)' == 'True'"> | ||
<FrameworkReference Include="Microsoft.AspNetCore.App" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Umbraco.Cms.Web.Website" Version="UMBRACO_VERSION_FROM_TEMPLATE" /> | ||
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="UMBRACO_VERSION_FROM_TEMPLATE" /> | ||
</ItemGroup> | ||
</Project> |
21 changes: 0 additions & 21 deletions
21
templates/UmbracoPackage/buildTransitive/UmbracoPackage.targets
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"id": "UmbracoPackage", | ||
"name": "UmbracoPackage", | ||
"allowPackageTelemetry": true | ||
} |
22 changes: 0 additions & 22 deletions
22
templates/UmbracoPackageRcl/.template.config/dotnetcli.host.json
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
templates/UmbracoPackageRcl/.template.config/ide.host.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.