This is an adaption and extension of a already very good gulp script from Steve Edson's post Automating optimisations with Gulp.
npm install gulp -g
to install gulp globally and be able to run gulp
commandsnpm install
to install all needed dependenciesgulp deploy
to do the whole build and deploy to your serverBuilds 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.