Step by step guide to setup a new Sitecore Helix solution without Gulp

Habitat and Helix

Habitat is an example on how you can set up a Sitecore Helix solution. I have seen several projects using it as a starter.
Habitat is not intended to be a starter solution, or as a recommendation of tools for your solutions. https://github.com/Sitecore/Habitat
I created some notes and steps in notepad while setting up my first and second Helix project. I shared these notes with my team members and it has been used as a way to start new Helix solutions for our team.

Setup new Sitecore Helix Solution

1, Install site 
For Sitecore 8 use SIM.
For Sitecore 9 install site with install.ps1.

2. Create a new project in Visual Studio Online




3. Clone the project





4. Create empty solution


5. Add your Sitecore .gitignore
This is my starter .gitignore.

6. Add nuget.config

7. Add  "empty" node-templates for feature, foundation and project
These will be extended as the solution grows.
My starter node templates on GitHub.
Feature node template with Glass Mapper.

8. Add add-helix-module.configuation
This configuration has a few more configurations than the original created by Marc Duiker.
moduleFoundationTemplatePath, moduleFeatureTemplatePath and moduleProjectTemplatePath is used to have a unique node template for each of the add helix commands.
I explained this in a previous blog post.
sitecoreVersion was added to easier get the correct nuget packages for the current Sitecore version.

The current version of my add-helix-module.configuation sitecoreVersion changes to packages.config sitecoreVersion changes to node .proj file
9. Add build-and-deploy-configuration
This configuration is used in the Build and deploy PowerShell script created by my team member.
With this we can build and deploy Helix solutions without Gulp.
We can now run these commands in the console:
  • build-and-deploy
  • build-and-deploy unicorn
  • unicorn
Look at his post for details and his GitHub for the latest version of the PowerShell script and configuration.

10. Add publishingsettings.targets
This is a helper for the local publish profile. The local publish profile is created for each of the projects based on the module templates.

Your structure should look something like this now

GitHub

My GitHub with the starter files

Additional notes

I recommend to start every new Sitecore Helix solution from scratch
I will later create blog posts on how to add Unicorn(serialization), and GlassMapper to this "empty" solution

Comments

Popular posts from this blog

Step by step guide to add Glass Mapper to Helix solution

Using interfaces with Glass Mapper

Enable PowerPaste to Sitecore Rich Text Editor