I’m still learning all about Jekyll and Gulp. Today for example I’ve tweaked my gulp process to properly build, serve, and watch using Jekyll in my gulpfile.js. The gulpfile.js is where you setup all your processes, it automates your build process.
My current process includes the following:
- ‘delete’ clears out the previous build
- ‘style’ compiles Sass, creates on CSS file, and minifies the file
- ‘html’ minifies html files
- ‘images’ compresses images
- ‘jekyll’, ‘jekyll-serve’, ‘jekyll-watch’ builds and serves the Jekyll installation
- ‘watch’ looks for changes and will rerun any of the previous sections to keep the files up to date.
This project is very small at the moment but I can definitely see these tools coming in handy when a project gets larger.