Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/karimaziev/ivy-yarn

Run yarn commands with ivy completions
https://github.com/karimaziev/ivy-yarn

emacs emacs-lisp emacs-package ivy swiper yarn

Last synced: 4 days ago
JSON representation

Run yarn commands with ivy completions

Awesome Lists containing this project

README

        

* Ivy-yarn

Execute yarn commands with ivy completions.

[[./ivy-yarn-demo.gif]]

** Requirements

- Emacs (>= 28.1)
- [[https://github.com/abo-abo/swiper][ivy]]
- json
- [[https://github.com/akermu/emacs-libvterm][vterm]] (optionally)

** Installation

*** With straight-use-package

Put the following in your init file:

#+begin_src elisp
(use-package ivy-yarn
:straight (ivy-yarn
:type git
:host github
:repo "KarimAziev/ivy-yarn"))
#+end_src

*** Manually

Or download repository and add it to your ~load-path~.

#+begin_src elisp

(add-to-list 'load-path "/path/to/ivy-yarn/")

(require 'ivy-yarn)
#+end_src

** Usage
Run in your project directory =M-x ivy-yarn RET=.

If project directory contains .nvmrc file,
a variable ~ivy-yarn-use-nvm~ is non-nil and nvm installed,
execute nvm-use before executing command.

If vterm is installed and the value of variable
~ivy-yarn-use-vterm~ is non-nil, run command in `vterm',
otherwise with `async-shell-command'.