Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/karimaziev/ivy-yarn
- Owner: KarimAziev
- License: gpl-3.0
- Created: 2022-04-30T13:46:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-09T12:21:50.000Z (5 days ago)
- Last Synced: 2024-11-09T13:24:17.549Z (5 days ago)
- Topics: emacs, emacs-lisp, emacs-package, ivy, swiper, yarn
- Language: Emacs Lisp
- Homepage:
- Size: 372 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
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'.