Function: projectile-tasks-from-npm
projectile-tasks-from-npm is a byte-compiled function defined in
projectile.el.
Signature
(projectile-tasks-from-npm PROJECT-ROOT)
Documentation
Return the npm scripts of the project in PROJECT-ROOT as tasks.
The scripts run through whichever package manager the project's lock file points at.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-tasks-from-npm (project-root)
"Return the npm scripts of the project in PROJECT-ROOT as tasks.
The scripts run through whichever package manager the project's lock
file points at."
(when-let* ((file (projectile--task-file project-root "package.json")))
(let ((runner (projectile--npm-runner project-root)))
(projectile--json-tasks file 'scripts runner (concat runner " run %s")))))