Skip to content

Commit 27e01af

Browse files
committed
Merge remote-tracking branch 'origin/main' into issue/OCC-351
2 parents f98aa49 + ca11149 commit 27e01af

39 files changed

Lines changed: 119 additions & 5979 deletions

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore any App_Data folder
2+
**/App_Data/
3+
4+
# Ignore all built assets
5+
**/[b|B]in/
6+
**/[O|o]bj/

.github/workflows/build-and-test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,15 @@ jobs:
3131
name: Codespell
3232
uses: Lombiq/GitHub-Actions/.github/workflows/codespell.yml@dev
3333

34+
lint:
35+
name: Lint Scripts, Styles, and Texts
36+
uses: Lombiq/NodeJs-Extensions/.github/workflows/lint.yml@dev
37+
with:
38+
scripts: 'src/Modules/OrchardCore.Commerce, src/Modules/OrchardCore.Commerce.ContentFields, src/Modules/OrchardCore.Commerce.Payment.Stripe'
39+
styles-css: 'src/Modules/OrchardCore.Commerce, src/Modules/OrchardCore.Commerce.Payment'
40+
3441
post-pull-request-checks-automation:
35-
needs: [build-and-test-linux, build-and-test-windows, codespell]
42+
needs: [build-and-test-linux, build-and-test-windows, codespell, lint]
3643
if: github.event.pull_request != ''
3744
uses: Lombiq/GitHub-Actions/.github/workflows/post-pull-request-checks-automation.yml@dev
3845
secrets:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
obj/
55
bin/
66
artifacts/
7-
wwwroot/
7+
is-cache/
88
node_modules/
99
*.user
1010
.pnpm-debug.log

Directory.Packages.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<PackageVersion Include="Lombiq.HelpfulLibraries.OrchardCore" Version="$(LombiqHelpfulLibrariesVersion)" />
1818
<PackageVersion Include="Lombiq.HelpfulLibraries.AspNetCore" Version="$(LombiqHelpfulLibrariesVersion)" />
1919
<PackageVersion Include="Lombiq.HelpfulLibraries.Refit" Version="$(LombiqHelpfulLibrariesVersion)" />
20-
<PackageVersion Include="Lombiq.NodeJs.Extensions" Version="2.1.3" />
2120
<PackageVersion Include="Lombiq.Tests" Version="5.0.0" />
2221
<PackageVersion Include="Lombiq.Tests.UI" Version="$(LombiqTestsUIVersion)" />
2322
<PackageVersion Include="Lombiq.Tests.UI.AppExtensions" Version="$(LombiqTestsUIVersion)" />

Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# TARGETARCH and TARGETOS are set automatically when --platform is provided.
2+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
3+
ARG TARGETOS
4+
LABEL stage=build-env
5+
WORKDIR /source
6+
7+
# copy required files for building
8+
# .dockerignore excludes App_Data and binaries from these
9+
COPY ./src ./src
10+
COPY Directory.Build.props .
11+
COPY Directory.Packages.props .
12+
13+
# build, results are placed in /app
14+
RUN dotnet publish src/OrchardCore.Commerce.Web/OrchardCore.Commerce.Web.csproj -c Release -o /app --framework net8.0 /p:RunAnalyzers=false
15+
16+
# build runtime image
17+
FROM mcr.microsoft.com/dotnet/aspnet:8.0-nanoserver-1809 AS build_windows
18+
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS build_linux
19+
FROM build_${TARGETOS} AS aspnet
20+
21+
EXPOSE 80
22+
ENV ASPNETCORE_URLS=http://+:80
23+
WORKDIR /app
24+
COPY --from=build-env /app/ .
25+
ENTRYPOINT ["dotnet", "OrchardCore.Commerce.Web.dll"]

Dockerfile-CI

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This Docker file is intended for the CI
2+
# A prerequisite is a published application in the .build/release
3+
FROM --platform=$BUILDPLATFORM golang:alpine AS build
4+
ARG TARGETOS
5+
6+
FROM mcr.microsoft.com/dotnet/aspnet:8.0-nanoserver-1809 AS build_windows
7+
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS build_linux
8+
FROM build_${TARGETOS} AS aspnet
9+
10+
EXPOSE 80
11+
ENV ASPNETCORE_URLS http://+:80
12+
WORKDIR /app
13+
COPY .build/release /app
14+
ENTRYPOINT ["dotnet", "OrchardCore.Commerce.Web.dll"]

Dockerfile-CI.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Buildkit Only working in linux
2+
3+
# Ignore all
4+
**
5+
6+
# Except precompiled files
7+
!/.build/release/*

Readme.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,6 @@ See the [discussions page](https://github.com/OrchardCMS/OrchardCore.Commerce/di
2424

2525
### Pre-requisites
2626

27-
This project uses [`Lombiq Node.js Extensions`](https://github.com/Lombiq/NodeJs-Extensions) to compile and lint client-side assets. See its pre-requisites [here](https://github.com/Lombiq/NodeJs-Extensions/tree/dev#pre-requisites).
28-
29-
If you want to include OrchardCore.Commerce as a git submodule instead of NuGet package, include the [`Lombiq Helpful Libraries`](https://github.com/Lombiq/Helpful-Libraries/) and `Lombiq Node.js Extensions` submodules as well. In your solution directory create a _Directory.Build.props_ file if one doesn't exist. This should contain the properties that configure the path to the _Lombiq.HelpfulLibraries.OrchardCore.csproj_ file and the _Lombiq.NodeJs.Extensions_ project directory. For example:
30-
31-
```xml
32-
<Project>
33-
<PropertyGroup>
34-
<LombiqHelpfulLibrariesPath>$(MSBuildThisFileDirectory)/src/Libraries/Lombiq.HelpfulLibraries</LombiqHelpfulLibrariesPath>
35-
<LombiqNodeJsExtensionsPath>$(MSBuildThisFileDirectory)/src/Utilities/Lombiq.NodeJs.Extensions/Lombiq.NodeJs.Extensions</LombiqNodeJsExtensionsPath>
36-
</PropertyGroup>
37-
</Project>
38-
```
39-
4027
If you have [Lombiq Analyzers](https://github.com/Lombiq/.NET-Analyzers) included in your project as a submodule you should also add the following property to the _Directory.Build.props_ file:
4128

4229
```xml

docs/resources/libraries/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ The below table lists the different Tests libraries and code analyzers:
1414
|------------------------------------------------------------------------|--------------------------------------------------------------------------------|----------------------------------------------------------------------------------|
1515
| [Lombiq.Analyzers](https://github.com/Lombiq/.NET-Analyzers) | .NET code analyzers and code convention settings | [BSD-3-Clause](https://github.com/Lombiq/.NET-Analyzers/blob/dev/License.md) |
1616
| [Lombiq.HelpfulLibraries](https://github.com/Lombiq/Helpful-Libraries) | libraries that can be handy when developing for Orchard | [BSD-3-Clause](https://github.com/Lombiq/Helpful-Libraries/blob/dev/License.md) |
17-
| [Lombiq.NodeJs.Extensions](https://github.com/Lombiq/.NET-Analyzers) | .NET code analyzers and code convention settings | [BSD-3-Clause](https://github.com/Lombiq/NodeJs-Extensions/blob/dev/License.md) |
1817
| [Lombiq.Tests.UI](https://github.com/Lombiq/UI-Testing-Toolbox) | Web UI testing toolbox for Orchard Core applications with Selenium | [BSD-3-Clause](https://github.com/Lombiq/UI-Testing-Toolbox/blob/dev/License.md) |
1918
| [VS Test SDK](https://github.com/microsoft/vstest/) | Visual Studio Test Platform. | [MIT](https://github.com/microsoft/vstest/blob/master/LICENSE) |
2019
| [xUnit 3](https://github.com/xunit/xunit) | Free, open source, community-focused unit testing tool for the .NET Framework. | [MIT](https://github.com/xunit/xunit/blob/main/LICENSE) |

mkdocs.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ plugins:
6666
- search
6767
- git-authors
6868
- git-revision-date-localized
69-
- exclude:
70-
glob:
71-
# Excluding the large node folder with all its MD files. We can't exclude everything apart from docs because there are links to e.g. C# files too.
72-
- "*node_modules*"
7369

7470
# Page tree
7571
nav:

0 commit comments

Comments
 (0)