Using Rockamalg
Enapter Rockamalg allows you to amalgamate Lua files with dependencies into single Lua script. When you send your blueprint to Enapter Cloud it uses this tool.
You can use it to amalgamate your Lua files. For example, you can pass this tutorial, but amalgamate Lua script using rockamalg tool instead of modifying manifest.yml
.
#
Amalgamate DirectoryTo amalgamate Lua directory fw
into a single file ucm.lua
:
#
Amalgamate Lua Script With DependenciesDependencies is a file with names of Luarocks packages. They are described in luarocks format. It looks like:
To amalgamate Lua directory fw
with dependencies described in file named deps
:
#
Using Existing RockspecAs you already now, you can use rockspec file to describe dependencies. To use it with rockamalg: