Add npm version bump command
Alan Pearce alan@alanpearce.eu
Thu, 22 Feb 2018 12:46:07 +0100
1 files changed, 6 insertions(+), 0 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -535,6 +535,12 @@ (interactive "scommand: ") (projectile-with-default-dir (projectile-project-root) (cmd-to-echo "npx" cmd))) + (defun npm-version (type) + (interactive (list + (projectile-completing-read "version: " '("major" "minor" "patch" "premajor" "preminor" "prepatch" "prerelease" "from-git")))) + (projectile-with-default-dir (projectile-project-root) + (cmd-to-echo "npm" (concat "version " type)))) + (defun ap/open-project (&optional arg) (interactive "P") (let ((project-dir (projectile-completing-read