moov2 / Moov2.OrchardCore.EventsTheme

Orchard Core theme for events website.
0 stars 0 forks source link

Events Theme

Theme for an events website running on Orchard Core

Build Status

Build Status NuGet

Prerequisities

.NET Core

Orchard Core runs on the .NET Core. Download the latest version from https://www.microsoft.com/net/download/core.

NodeJS

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.

Commands

Compiling Front-end Assets

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

Packaging

When the theme is compiled (using dotnet build) it's configured to generate a .nupkg file (this can be found in \bin\Debug\).