Skip to content

Instantly share code, notes, and snippets.

@EldonMcGuinness
Last active August 29, 2015 14:21
Show Gist options
  • Save EldonMcGuinness/53b7eab7fbebd6be9b36 to your computer and use it in GitHub Desktop.
Save EldonMcGuinness/53b7eab7fbebd6be9b36 to your computer and use it in GitHub Desktop.
Sublime Text 3 - Build Jekyll Site and Publish to Directory
{
"cmd": ["jekyll","b"],
"shell": true,
"working_dir": "${project_path:${folder}}",
"selector": "source.markdown",
"variants": [
{
"name": "Copy site to Live Directory",
"cmd": ["cp", "-fuR", "SOURCE_DIR", "DEST_DIR"],
"working_dir": "${project_path:${folder}}",
"shell": true,
"windows": {
"cmd": ["xcopy", "SOURCE_DIR", "DEST_DIR", "/C", "/S", "/Y", "/D"]
}
},
{
"name": "Build and Serve",
"cmd": ["jekyll","s"],
"shell": true,
"working_dir": "${project_path:${folder}}",
"selector": "source.markdown"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment