This is an adaption and extension of a already very good gulp script from Steve Edson's post Automating optimisations with Gulp.
For further explanation take a look at my blog post about it.
- Clone this repo and move the files into your jekyll root folder
- Edit the gulpconfig.json file and place your server and cloudflare credentials in there
- run
npm install gulp -g
to install gulp globally and be able to rungulp
commands - run
npm install
to install all needed dependencies - run
gulp deploy
to do the whole build and deploy to your server
Builds and deploys all files to your server
Builds without deploying all files to your server, for testing reasons. You can run jekyll serve
and do a parallel gulp dry-run
command to see how your local output will look like.
Does to normal jekyll build
and deploys directly to your server, without any optimizations.