Theme for an events website running on Orchard Core
Orchard Core runs on the .NET Core. Download the latest version from https://www.microsoft.com/net/download/core.
The theme requires NodeJS to assist with gathering third party front-end dependencies and compiles front-end assets. Compilation of front-end assets is handled by Webpack.
When developing, it's likely you'll be working with front-end assets (located in /Assets
) that need to be compiled in to files that are referenced by the theme (in Views/Layout.cshtml
). The command shown below will compile CSS & JavaScript assets via Webpack and keep watch of files that will trigger compilation.
npm run develop
Hint: Running npm start
will run the command above after running npm install
.
When the theme is deployed to a production environment we need to serve compressed assets for optimial delivery to improve page load times. The command below will compile assets ready for optimal delivery.
npm run bundle
When the theme is compiled (using dotnet build
) it's configured to generate a .nupkg
file (this can be found in \bin\Debug\
).