lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I've been personally using this project for quite some time now, it speed up my development time with Lua and even C/C++ projects a lot. Typically I have a terminal and a editor always showing on my screen, whenever I do a change in the source code I can instantly see the result. I wanted to share here as it may be useful and save time for others.

Em qui., 6 de fev. de 2020 às 15:29, Eduardo Bart <edub4rt@gmail.com> escreveu:

Luamon is a utility for quick live development in Lua. It will monitor for any changes in your source and automatically restart your Lua script or application. It works by watching for file and directories changes using the Inotify API. It was inspirited by nodemon, but made for Lua.

https://github.com/edubart/luamon

Features
  • Automatic restarting of application.

  • Default for lua, but easy to run any executable (such as python, make, etc).

  • Ignoring specific files or directories.

  • Watch specific directories.

  • Works with server applications or one time run utilities and REPLs.

Installation

Install using LuaRocks:

luarocks install luamon
Usage
luamon myscript.lua

Just use luamon instead of lua to run your code, your process will automatically restart when any lua file in the current directory changes. It's possible to use it for any other kind of application too, see its help.

Limitations

The packages depends on POSIX and Inotify APIs so it works only on systems that supports them, such as Linux.

Issues

Report on the project page at https://github.com/edubart/luamon