Skip to content

Commit

Permalink
Merge pull request #126 from episerver/feature/AFORM-4135-Add_local_N…
Browse files Browse the repository at this point in the history
…uGet_packages_for_Optimizely.Headless.Form.__packages_since_it's_unreleased

Add local nuget package for headless form packages
  • Loading branch information
linhhoangOpti authored May 10, 2024
2 parents 21e0550 + 36949d6 commit 1045bfc
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ coverage/
/samples/netcoreapp/
/samples/epiCloud/
/samples/musicfestival-frontend-react/build/
/samples/musicfestival-backend-dotnet/App_Data/
6 changes: 3 additions & 3 deletions samples/ManagementSite/Alloy.ManagementSite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<NoWarn>NU5100;NU1803;NU1605;NU1504;</NoWarn>
<CmsUIVersion>12.23.0</CmsUIVersion>
<CmsCoreVersion>12.20.1</CmsCoreVersion>
<HeadlessFormVersion>0.1.1--inte-370</HeadlessFormVersion>
<HeadlessFormVersion>0.1.1--inte-380</HeadlessFormVersion>
<ContentApiVersion>12.20.1</ContentApiVersion>
<FormVersion>5.8.2-pre-021286</FormVersion>
</PropertyGroup>
Expand All @@ -27,8 +27,6 @@
<PackageReference Include="EPiServer.ImageLibrary.ImageSharp" Version="2.0.1" />
</ItemGroup>
<ItemGroup Label="HeadlessForm">
<PackageReference Include="Optimizely.Headless.Form.Service" Version="$(HeadlessFormVersion)" />
<PackageReference Include="Optimizely.Headless.Form.ContentGraph" Version="$(HeadlessFormVersion)" />
<PackageReference Include="Optimizely.Cms.Preview1.Content.EPiServer" Version="$(ContentApiVersion)" />
<PackageReference Include="Optimizely.ContentGraph.Cms" Version="3.5.1" />
</ItemGroup>
Expand All @@ -43,6 +41,8 @@
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="6.0.0" />
<PackageReference Include="Optimizely.Headless.Form.ContentGraph" Version="$(HeadlessFormVersion)" />
<PackageReference Include="Optimizely.Headless.Form.Service" Version="$(HeadlessFormVersion)" />
</ItemGroup>
<PropertyGroup>
<ApplicationIcon />
Expand Down
25 changes: 11 additions & 14 deletions samples/ManagementSite/Nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,22 @@
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="optimizely" value="https://api.nuget.optimizely.com/v3/index.json" />
<add key="github.episerver" value="https://nuget.pkg.github.com/episerver/index.json" />
<add key="headlessform.local" value="..\NugetPackages\" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget.org">
<package pattern="*" />
<package pattern="*" />
</packageSource>
<packageSource key="optimizely">
<package pattern="EPiServer.*" />
<package pattern="Optimizely.*" />
</packageSource>
<packageSource key="github.episerver">
<package pattern="Optimizely.Headless.Form.*" />
<package pattern="Optimizely.Cms.*" />
<package pattern="EPiServer.*" />
<package pattern="Optimizely.*" />
</packageSource>
<packageSource key="headlessform.local">
<package pattern="Optimizely.Headless.*" />
<package pattern="Optimizely.Cms.*" />
<package pattern="EPiServer.Forms.*" />
<package pattern="EPiServer.Forms" />
<package pattern="EPiServer.AddOns.*" />
</packageSource>
</packageSourceMapping>
<packageSourceCredentials>
<github.episerver>
<add key="Username" value="Ignored" />
<add key="ClearTextPassword" value="%GitHubEpiserverPAT%" />
</github.episerver>
</packageSourceCredentials>
</configuration>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
using EPiServer.Web;
using EPiServer.Web.Routing;
using Microsoft.AspNetCore.Mvc;
using Optimizely.Cms.Preview2.Content;
using Optimizely.Cms.Preview2.Content.Models;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Optimizely.Cms.Preview1.Content;
using Optimizely.Cms.Preview1.Content.Models;

namespace AlloyMvcTemplates.Controllers;
[Route("api/[controller]")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<ImplicitUsings>enable</ImplicitUsings>
<CmsUIVersion>12.26.0</CmsUIVersion>
<CmsCoreVersion>12.20.1</CmsCoreVersion>
<ContentApiVersion>12.20.1</ContentApiVersion>
<FormVersion>5.8.2-pre-021286</FormVersion>
<HeadlessFormVersion>0.1.1--inte-380</HeadlessFormVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -31,13 +34,13 @@
<PackageReference Include="EPiServer.ContentManagementApi" Version="3.9.1" />
<PackageReference Include="EPiServer.OpenIDConnect" Version="3.9.1" />
<PackageReference Include="EPiServer.OpenIDConnect.UI" Version="3.9.1" />
<PackageReference Include="EPiServer.Forms" Version="5.8.0" />
<PackageReference Include="EPiServer.Forms" Version="$(FormVersion)" />
</ItemGroup>

<ItemGroup Label="HeadlessForm">
<PackageReference Include="Optimizely.Headless.Form.Service" Version="0.1.0--inte-256" />
<PackageReference Include="Optimizely.Headless.Form.ContentGraph" Version="0.1.0--inte-256" />
<PackageReference Include="Optimizely.Cms.Preview2.Content.EPiServer" Version="12.20.1-ci-2644" />
<PackageReference Include="Optimizely.Headless.Form.ContentGraph" Version="$(HeadlessFormVersion)" />
<PackageReference Include="Optimizely.Headless.Form.Service" Version="$(HeadlessFormVersion)" />
<PackageReference Include="Optimizely.Cms.Preview1.Content.EPiServer" Version="$(ContentApiVersion)" />
<PackageReference Include="Optimizely.ContentGraph.Cms" Version="3.5.1" />
</ItemGroup>
</Project>
21 changes: 19 additions & 2 deletions samples/musicfestival-backend-dotnet/nuget.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="optimizely" value="https://nuget.optimizely.com/feed/packages.svc/" />
</packageSources>
<add key="headlessform.local" value="..\NugetPackages\" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
<packageSource key="optimizely">
<package pattern="EPiServer.*" />
<package pattern="Optimizely.*" />
</packageSource>
<packageSource key="headlessform.local">
<package pattern="Optimizely.Headless.*" />
<package pattern="Optimizely.Cms.*" />
<package pattern="EPiServer.Forms.*" />
<package pattern="EPiServer.Forms" />
<package pattern="EPiServer.AddOns.*" />
</packageSource>
</packageSourceMapping>
</configuration>

0 comments on commit 1045bfc

Please sign in to comment.