Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asakasinsky/716c9e377542924b726db18aab1747d2 to your computer and use it in GitHub Desktop.
Save asakasinsky/716c9e377542924b726db18aab1747d2 to your computer and use it in GitHub Desktop.
Leiningen.sublime-build
# Copy the following and place it a file called Leiningen.sublime-build in the Sublime user packages folder (~/.config/sublime-text-2/Packages/User on Linux).
# Select this as the build system for the project using Tools/Build System/Leiningen.
# You can then bring up the Sublime Command Palette (ctrl+shift+P on Windows/Linux) and issue any of the commands # (build, documentation, clean, run, test, etc). By default, build is bound to ctrl+b and run to ctrl+shift+b.
{
"cmd": ["lein", "compile", ":all"],
"working_dir": "$project_path",
"variants": [
{ "cmd": ["lein", "marg", "-m", "-d", "docs"],
"name": "Documentation"
},
{ "cmd": ["lein", "clean"],
"name": "Clean"
},
{ "cmd": ["lein", "run"],
"name": "Run"
},
{ "cmd": ["lein", "test"],
"name": "Test"
},
{ "cmd": ["lein", "retest"],
"name": "Re-test"
},
{ "cmd": ["lein", "uberjar"],
"name": "Uberjar"
},
{ "cmd": ["lein", "jar"],
"name": "Jar"
},
{ "cmd": ["lein", "check"],
"name": "Check"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment