18 Jan 2018
I’ve written about my Jekyll build script before. I use this script to deploy this site among others. It is terribly over-engineered and unnecessary.
Here is the new and improved version. Instructions for use are below the code itself.
Features
- JS Minification
- JS Babel Compiler
- HTML Minification
- CSS Minification
- Thumbnail Generation
- Intelligent Image Compression
- Favicon Generation
- Jekyll Build Process
- Automatic Upload to S3
- Setup Mode (Installs Dependencies)
- Sane Image Names (
jpeg
, JPG
, etc to jpg
)
How to Use
Copy the script into a new text file and save the file in the root of your Jekyll directory as upload.sh
.
Make sure to set up the options under # BUILD OPTIONS - EDIT THESE
in upload.sh
.
Install dependencies by running sh upload.sh -s
. Requires homebrew
.
Then, run the build script by running sh upload.sh -c
.
Sample Build Output
Any problems, just email me.