From 7c4e5b86ca9b1712882991d7e3f777db99f01356 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 6 Sep 2017 14:44:38 +0200 Subject: Emacs: Add yarn-remove command --- emacs/.emacs.d/main.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'emacs/.emacs.d/main.el') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 8dd3afd6..bb902583 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -593,6 +593,11 @@ (projectile-with-default-dir (projectile-project-root) (cmd-to-echo "yarn" (concat "add " package)))) + (defun yarn-remove (package) + (interactive "spackage: ") + (projectile-with-default-dir (projectile-project-root) + (cmd-to-echo "yarn" (concat "remove " package)))) + (defun yarn-run (cmd) (interactive (list (projectile-completing-read "command: " (alist-get 'scripts (json-read-file (expand-file-name "package.json" (projectile-project-root))))))) -- cgit 1.4.1