all repos — nixfiles @ 8c8d10f5f0529d0b650b0b2006855972a8fa2acc

System and user configuration, managed by nix and home-manager

Emacs: Add commands for yarn add {,--dev}

Alan Pearce
commit

8c8d10f5f0529d0b650b0b2006855972a8fa2acc

parent

c090565b332d5ec6a90ef1a35f953979edd09f32

1 file changed, 10 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -439,6 +439,16 @@ (interactive "P")
(projectile-with-default-dir (projectile-project-root) (cmd-to-echo "yarn" "install"))) + (defun yarn-add-dev (package) + (interactive "spackage: ") + (projectile-with-default-dir (projectile-project-root) + (cmd-to-echo "yarn" (concat "add --dev " package)))) + + (defun yarn-add (package) + (interactive "spackage: ") + (projectile-with-default-dir (projectile-project-root) + (cmd-to-echo "yarn" (concat "add " package)))) + (defun ap/open-work-project (&optional arg) (interactive "P") (ap/open-subfolder-project work-project-directory arg))