Git Process

Our advices on how to use git and Galaxy

Compiled Assets

When updating the theme, Galaxy only compile the SCSS with the entry point sass/main.scss

For Javascript inside the theme, it's not compiled by Galaxy, so before updating the theme on production, make sure to have the Javascript compiled & minified in the repo.

  • For theme updated using git pull

Make sure that master branch always contains a minified version of the JS files inside public folder.

  • For theme updated using export / import feature

If you prefer, you could choose to only recompile the JS before doing an export. Please note that we still advise to keep a compiled version of the JS inside the repo, just in case someone forgets to re-compile it before doing the export.

Advices:

You have 2 ways of doing it: A/ Do it when you have finish your ticket, before each commit (if the commit has a JS change). It's longer to do it this way, but at least you're sure it's always done, it becomes a habit or B/ If it's too time consuming, after you finish done all your commits, re-compile the JS and do an additional commit "Minify JS". This way, when we put the theme on production, it will have the minified version of the JS

Git pull / Changing branch

The below part is for xo7 & its vendors

Internal checklist:

Last updated