doomemacs/modules/lang/javascript/packages.el

29 lines
581 B
EmacsLisp
Raw Normal View History

;; -*- no-byte-compile: t; -*-
;; lang/javascript/packages.el
2017-01-16 23:30:37 -05:00
(package! js2-mode)
(package! jsx-mode)
(package! coffee-mode)
(package! tern)
(package! company-tern)
(package! js2-refactor)
2017-01-16 23:30:37 -05:00
(bootstrap! javascript
"Sets up NodeJS, the TrepanJS debugger."
2017-01-16 23:30:37 -05:00
:if-arch
(unless (and (executable-find "node")
(executable-find "npm"))
(sudo "pacman --needed --noconfirm -S nodejs npm"))
2017-01-16 23:30:37 -05:00
;; :if-deb
;; TODO
2017-01-16 23:30:37 -05:00
:if-macos
(unless (executable-find "node")
(sh "brew install node"))
2017-01-16 23:30:37 -05:00
:after
(unless (executable-find "tern")
(sh "npm -g install trepanjs tern")))