lang/javascript: remove +javascript/install (replaced by bootstrap)
This commit is contained in:
parent
8b1c1b0416
commit
3722f17808
1 changed files with 0 additions and 19 deletions
|
@ -1,24 +1,5 @@
|
|||
;;; lang/javascript/autoload.el
|
||||
|
||||
;;;###autoload
|
||||
(defun +javascript/install ()
|
||||
"Installs NodeJS and tern."
|
||||
(interactive)
|
||||
(pcase (doom-system-os)
|
||||
('arch
|
||||
(unless (and (executable-find "node")
|
||||
(executable-find "npm"))
|
||||
(doom-sudo "pacman --needed --noconfirm -S nodejs npm")))
|
||||
('debian) ;; TODO
|
||||
('macos
|
||||
(unless (executable-find "node")
|
||||
(doom-sh "brew install node")))
|
||||
(_ (error "Not a supported OS")))
|
||||
(unless (executable-find "node")
|
||||
(error "node isn't installed, run `+javascript/install' again"))
|
||||
(unless (executable-find "tern")
|
||||
(sh "npm -g install tern")))
|
||||
|
||||
(defvar +javascript-npm-conf (make-hash-table :test 'equal))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue