Summary
In this chapter, we began with how important a task runner is for client-side tasks and how to set up a task runner, then understood the structure of a gulpfile and how to create a workflow structure. Once we had our task runner working, we put it to work by focusing on transpiling TypeScript into JavaScript and bundling and minifying it into something for a production website.
We proceeded with looking at what’s considered a standard in the industry when it comes to UIs in ASP.NET 8. We learned about how to save time by centralizing all links in one place, why it’s important to keep controllers and Razor Pages small, and the key reasons why ViewComponent
classes should be used. We learned why TagHelper
classes are better than HTMLHelper
classes and why a site should use SEO-friendly URLs.
To finalize this chapter, we looked at an example website and had a task runner bundle and minify our styles along with updating libraries automatically on build. We also...