Skip to content

Instantly share code, notes, and snippets.

@mattfarina
Created February 18, 2012 20:21
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattfarina/1860912 to your computer and use it in GitHub Desktop.
Save mattfarina/1860912 to your computer and use it in GitHub Desktop.
server:
@@jekyll --server
render:
@@echo "Building the site..."
@@jekyll --no-future
minify:
@@echo "Minifying the CSS..."
@@java -jar _build/yuicompressor.jar --verbose --type css -o _site/path/to/style.css _site/path/to/style.css
@@echo "Minifying the HTML..."
@@java -jar _build/htmlcompressor.jar -r --type html -o _site _site
build: render minify
deploy: build
@@echo 'Deploying site.'
@@rsync -avq --delete-after _site/ sshAlias:/path/to/site/html
.PHONY: server render build minify deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment