From 11d81ea917c58513ce67e80c91cd831e8f45e8c6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 22 Feb 2018 12:46:07 +0100 Subject: Add npm version bump command --- emacs/.emacs.d/main.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 02960ece..08e401dc 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -535,6 +535,12 @@ (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 -- cgit 1.4.1