Remove doom-bootstrap system (will be replaced)
This commit is contained in:
parent
39c3d6aae4
commit
ce49f94bbe
9 changed files with 16 additions and 174 deletions
|
@ -1,6 +1,8 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; lang/javascript/packages.el
|
||||
|
||||
;; requires node npm tern js-beautify eslint eslint-plugin-react
|
||||
|
||||
(package! coffee-mode)
|
||||
(package! js2-mode)
|
||||
(package! js2-refactor)
|
||||
|
@ -16,28 +18,3 @@
|
|||
(when (featurep! :feature jump)
|
||||
(package! xref-js2))
|
||||
|
||||
;;
|
||||
(def-bootstrap! nodejs
|
||||
(pcase (doom-system-os)
|
||||
('arch
|
||||
(let (progs)
|
||||
(unless (executable-find "node") (push "nodejs" progs))
|
||||
(unless (executable-find "npm") (push "npm" progs))
|
||||
(when progs
|
||||
(sudo "pacman --noconfirm -S %s" progs))))
|
||||
('debian) ;; TODO
|
||||
('macos
|
||||
(unless (executable-find "node")
|
||||
(sh "brew install node"))))
|
||||
;; return success
|
||||
(unless (cl-every 'executable-find '("node" "npm"))
|
||||
(error "Something went wrong installing NodeJS")))
|
||||
|
||||
(def-bootstrap! javascript
|
||||
:requires nodejs
|
||||
(unless (executable-find "tern")
|
||||
(sh "npm -g install tern"))
|
||||
(unless (executable-find "js-beautify")
|
||||
(sh "npm -g install js-beautify"))
|
||||
(unless (executable-find "eslint")
|
||||
(sh "npm -g install eslint eslint-plugin-react")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue