Thursday, March 19, 2020

Sitecore SXA CLI how-to: compile and minify CSS at the build server

During the last few weeks I worked a lot with SXA themes and the thing I was concerned about was: storing CSS/JS files in media library / serialization.

Well, there is nothing wrong with media library and it is extremely useful for distributed setups, but pushing compiled (or even minified) files to GIT just to make sure they will be added to the deployment package seemed painfully wrong.

Additionally, it caused merge conflicts when multiple people worked on front-end part of the site.

Luckily, it is not complicated at all to change that while maintaining typical delivery workflow. What we need to do is:
  1. Compile / minify .SCSS into .CSS at the build server
  2. Convert compiled file (i.e. *-min.css) into the .yml
  3. Package .yml into update package (trivial with Sitecore Courier)

Thursday, January 2, 2020

Sitecore SXA CLI tips & tricks

I've been working with SXA themes recently and came across this great blog post by Serge van den Oever on creating a custom theme for SXA using SXA CLI and wanted to share a few extra tips on top of it.

Tuesday, November 12, 2019

Automate Sitecore dev env setup with Sitecore.HabitatHome.Utilities

Having worked with Sitecore for more than 10 years, I always embraced automation in QA/Production deployments as well as development environments. Most of the projects had a nice little README that started with:

  1. Make sure you have Sitecore X.Y Update Z installed
  2. Install module X version Z and module Y on top of it
  3. Run ".\deployDevevelopmentEnvironment.ps1"

Wednesday, November 6, 2019

Sitecore Content Hub + Glass Mapper = friends?

I've been recently exploring Sitecore DAM (Content Hub) module and installed it on existing website that used Glass Mapper. I followed the installation guide, configured all required properties, updated image field value to use the logo from the Content Hub and... nothing changed at front-end, the hero image was still being served from the media library.

Monday, September 9, 2019 Continuous Deployment on Azure (2019 Edition)

It's been a while since my previous post about continuous deployment with Sitecore, lots of things have changed since then, is now hosted on Azure PAAS, the team is using Azure DevOps instead of TeamCity and much more. Over the past few years we completely revamped our deployment infrastructure and processes, and in this blog post I'll share how our current setup looks like after all of those iterations. Hint: it is now extremely simply and basically configurable in point-and-click manner.

Monday, July 22, 2019

Five things you should know before going live with Azure Search for Sitecore

If you're reading this post, you've probably configured (or about to) shiny new Sitecore 9.x production environment running in the cloud, with Azure Search as a search provider. Not having to worry about Solr Virtual Machine maintenance, Java licensing, etc. is appealing. But it is important to know that Azure Search comes with it's own nuances you might learn the hard way.

Monday, December 4, 2017

Work less, do more with Sitecore and Microsoft Flow

As a developer who works a lot on integrating different systems with each other I was extremely happy when Microsoft Flow got announced. I've started using it since the early preview and found a ton of ways it could help me automate some tedious tasks with no (or little) coding and be more productive with my daily job.

As a Sitecore developer, I also spend my time building websites on Sitecore platform and integrating them with different systems. It often starts with Save Actions in WFFM module - integrating it with online meetings platform, payment providers, CRM systems.

So what if we could integrate Sitecore with Microsoft Flow and make it the only integration provider you'll ever need? And let the service providers take care of updating their connectors in the cloud, integrating new systems with Sitecore without developers help at all?