rhysd / neovim-component

<neovim-editor> WebComponent to embed Neovim to your app with great ease
https://github.com/rhysd/NyaoVim
MIT License
193 stars 18 forks source link

How to create a self contained minimal app? #36

Closed cancandan closed 7 years ago

cancandan commented 7 years ago

How can one package all dependencies like nvim, electron and have a single executable app?

rhysd commented 7 years ago
  1. Create new electron app repository
  2. npm install neovim-component
  3. Write minimal app referring example/minimal
  4. Package the app. Document: https://github.com/electron/electron/blob/master/docs/tutorial/application-packaging.md

electron-packager or electron-builder is greatly helpful for 4.

cancandan commented 7 years ago

Thanks but one also needs to include nvim executable to the electron package i think

rhysd commented 7 years ago

Please add nvim to somewhere in your repository and set an absolute path to the nvim at nvim-cmd property in <neovim-editor> component.

https://github.com/rhysd/neovim-component#neovim-editor-properties

cancandan commented 7 years ago

Excellent thank you