Merge pull request #3093 from sei40kr/taskrunner

Add tools/taskrunner module
This commit is contained in:
Henrik Lissner 2020-05-18 03:41:02 -04:00 committed by GitHub
commit 220916ae17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 84 additions and 3 deletions

View file

@ -0,0 +1,38 @@
#+TITLE: tools/taskrunner
#+DATE: November 9, 2019
#+SINCE: {replace with next tagged release version}
#+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#configuration][Configuration]]
- [[#troubleshooting][Troubleshooting]]
* Description
This module integrates [[https://github.com/emacs-taskrunner/emacs-taskrunner][Taskrunner]] into Doom Emacs, which scraps runnable tasks
from build systems like make, gradle, npm and the like.
** Module Flags
This module provides no flags.
** Plugins
+ [[https://github.com/emacs-taskrunner/emacs-taskrunner][emacs-taskrunner]]
+ [[https://github.com/emacs-taskrunner/ivy-taskrunner][ivy-taskrunner]]
+ [[https://github.com/emacs-taskrunner/helm-taskrunner][helm-taskrunner]]
* Prerequisites
This module has no prereqisites.
* Features
Keybindings
| Binding | Description |
| ~p z~ | ~List project tasks~ |
* Configuration
* Troubleshooting

View file

@ -0,0 +1,9 @@
;;; app/taskrunner/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +taskrunner/project-tasks ()
"Invokes `ivy-taskrunner' or `helm-tasksrunner', depending on which is
available."
(interactive)
(cond ((featurep! :completion ivy) (ivy-taskrunner))
((featurep! :completion helm) (helm-taskrunner))))

View file

@ -0,0 +1,11 @@
;;; tools/taskrunner/config.el -*- lexical-binding: t; -*-
(use-package! helm-taskrunner
:when (featurep! :completion helm)
:defer t
:config (helm-taskrunner-minor-mode +1))
(use-package! ivy-taskrunner
:when (featurep! :completion ivy)
:defer t
:config (ivy-taskrunner-minor-mode +1))

View file

@ -0,0 +1,14 @@
;; -*- no-byte-compile: t; -*-
;;; tools/taskrunner/packages.el
(package! taskrunner :pin "716323aff410b4d864d137c9ebe4bbb5b8587f5e")
(when (featurep! :completion helm)
(package! helm-taskrunner
:pin "70ef8117aafdc01a1f06151a82cecb9a2fcf4d32"
:recipe (:host github :repo "emacs-taskrunner/helm-taskrunner")))
(when (featurep! :completion ivy)
(package! ivy-taskrunner
:pin "c731ee6279f65061ef70e79d3818ea1d9678e6da"
:recipe (:host github :repo "emacs-taskrunner/ivy-taskrunner")))