Emacs: Add npx-run command for node projects
1 file changed, 5 insertions(+), 0 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -528,6 +528,11 @@ ((string-equal (projectile-project-type) "node-yarn") (cmd-to-echo "yarn" (concat "run " cmd))) (t (cmd-to-echo "npm" (concat "run " cmd)))))) + (defun npx-run (cmd) + (interactive "scommand: ") + (projectile-with-default-dir (projectile-project-root) + (cmd-to-echo "npx" cmd))) + (defun ap/open-project (&optional arg) (interactive "P") (let ((project-dir (projectile-completing-read