all repos — archive/dotfiles @ ac7721bd3c6574d275e38b9211fec63ae6bd36b4

Superseded by nixfiles

Emacs: Add yarn-install command
Alan Pearce alan@alanpearce.uk
Mon, 05 Dec 2016 12:54:28 +0100
commit

ac7721bd3c6574d275e38b9211fec63ae6bd36b4

parent

c15bd0732c9530d739d05b77ca80979ffd33494d

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -386,6 +386,10 @@ (let ((project-dir (projectile-completing-read "Open project: "                                                                (ap/subfolder-projects from-dir))))
                   (projectile-switch-project-by-name (expand-file-name project-dir from-dir) arg)))
 
+              (defun yarn-install (&optional arg)
+                (interactive "P")
+                (projectile-with-default-dir (projectile-project-root)
+                  (cmd-to-echo "yarn" "install")))
 
               (defun ap/open-work-project (&optional arg)
                 (interactive "P")