Created
August 4, 2015 19:18
-
-
Save danlamanna/32628eae2758de729dc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'grep) | |
(setq geojs-project-dir "~/projects/geojs") | |
(setq geojs-build-dir "~/projects/geojs-build") | |
(setq geojs-venv "geojs-source") | |
(add-to-list 'safe-local-variable-values | |
'(compile-command . (format "cd %s && ctest" geojs-build-dir))) | |
(prodigy-define-service | |
:name "GeoJS Grunt" | |
:command "grunt" | |
:cwd "/home/dan.lamanna/projects/geojs" | |
:args '("watch") | |
:on-output (lambda (&rest args) | |
(let ((output (plist-get args :output)) | |
(service (plist-get args :service))) | |
(when (s-matches? "Done, without errors" output) | |
(message "GeoJS Built.")))) | |
:init (lambda () | |
(venv-workon geojs-venv)) | |
:tags '(geojs grunt)) | |
(dir-locals-set-class-variables 'geojs | |
`((nil . ((compile-command . | |
(format "cd %s && ctest" geojs-build-dir)) | |
(grep-find-ignored-files . (append '("geo.js" | |
"geo.min.js") | |
grep-find-ignored-files)))) | |
(python-mode . ((eval . ,(venv-workon geojs-venv)))))) | |
(if (file-exists-p geojs-project-dir) | |
(dir-locals-set-directory-class geojs-project-dir 'geojs)) | |
(provide 'geojs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment