Skip to content

Instantly share code, notes, and snippets.

@danlamanna
Last active August 29, 2015 14:27
Show Gist options
  • Save danlamanna/0bf7bfc42be78df3d60f to your computer and use it in GitHub Desktop.
Save danlamanna/0bf7bfc42be78df3d60f to your computer and use it in GitHub Desktop.
(defproject girder
:path "~/projects/girder"
:vars '((project-venv "girder")
(build-dir (concat project-path "/build")))
:init (progn
(prodigy-define-service
:name "Girder Dev"
:command "python"
:cwd girder-project-dir
:args '("-m" "girder")
:init (lambda ()
(venv-workon project-venv))
:tags '(girder))
(prodigy-define-service
:name "Girder Dev Grunt"
:command "grunt"
:cwd girder-project-dir
:args '("watch" "--debug-js")
:init (lambda ()
(venv-workon project-venv))
:tags '(girder grunt)))
:locals `((nil . ((compile-command . (format "cd %s && ctest -j4" build-dir))))
(js2-mode . ((flycheck-jshintrc . ,(concat project-path "/tests/jshint.cfg"))
(flycheck-jscsrc . ,(concat project-path "/tests/jsstyle.cfg"))))
(python-mode . ((eval . ,(venv-workon project-venv))
(flycheck-python-flake8-executable . "/usr/bin/flake8")
(flycheck-flake8rc . ,(concat project-path "tests/flake8.cfg"))))))
(defproject minerva-girder
:inherits girder
:path "~/projects/minerva/stuff/girder"
:vars '((project-venv "minerva-girder")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment