Skip to content
Aurelia .Net Template
Branch: master
Clone or download
MaximBalaganskiy Merge pull request #9 from HamedFathi/patch-1
Update AureliaDotnetTemplate.csproj
Latest commit 9eb648c May 27, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ClientApp Clean up May 26, 2019
Controllers
wwwroot
.editorconfig
.gitignore
.travis.yml
AureliaDotnetTemplate.csproj
AureliaDotnetTemplate.sln
Program.cs
README.md
Startup.cs
appsettings.Development.json
appsettings.json
index.ejs
package-lock.json
package.json
postcss.config.js Upgrade to Asp.Net Core 3 May 23, 2019
tsconfig.json
tslint.json Give it some style May 31, 2018
webpack.config.js

README.md

Aurelia .Net Template

This project has picked up where the official Microsoft Aurelia template left. It's got more clear webpack configuration and latest Aurelia and Bootstrap packages. Those interested in Materialize instead of Bootstrap please proceed to Aurelia .Net Materialize Template.

Basically, there are two coexisting applications in this template - one is Asp.Net Core Web Api which additionaly serves local files and the second one is an Aurelia app. Previously, the template used Asp.Net Spa Services to start a webpack dev server for development. This does not happen anymore. Why? It is causing a webpack rebuild each time you recompile C# code (trust me, it IS SLOW on a decent sized project), which is not practical when Api and UI are developed in parallel.

Instead, when developing UI, just run npm run webpack:watch in the background. The Asp.Net Core FileServer middleware will serve the fresh files when you refresh the browser. Yes, this means no HMR, but, honestly, it does not work more often than it does, especially when ValidationController is injected into an Aurelia view.

The template is obviously opinionated but always open to suggestions and PRs.

You can’t perform that action at this time.