Difference between revisions of "love.maker"

(Created page with "== love.maker == This library was written in Lua specifically for the LÖVE framework. love.maker is a library that can minify, compile and compress your project folder. If yo...")
 
(Documentation and source code)
 
Line 24: Line 24:
 
{{#set:LOVE Version=11.3+}}
 
{{#set:LOVE Version=11.3+}}
 
{{#set:Description=A library that can minify, compile and compress your LÖVE2D project folder}}
 
{{#set:Description=A library that can minify, compile and compress your LÖVE2D project folder}}
{{#set:Keyword=Debug}}
+
{{#set:Keyword=Distribution}}
 
[[Category:Libraries]]
 
[[Category:Libraries]]

Latest revision as of 14:12, 9 October 2024

love.maker

This library was written in Lua specifically for the LÖVE framework. love.maker is a library that can minify, compile and compress your project folder. If you choose to compile your Lua script files, the resulting .love file will only run on the exact same version of LÖVE or LuaJIT that was used when building. This library allows you to output .love files anywhere on your system using absolute paths.

Example

love.maker = require("maker")
love.maker.setExtensions('lua', 'png', 'txt') -- include only the specified extensions

local build = love.maker.newBuild("C://path/to/project/folder/") -- create from source folder
build:ignore('/readme.txt') -- exclude a specific file
build:ignoreMatch('^/%.git') -- exclude based on pattern matching
build:allow('/images/exception.jpg') -- whitelist a specific file

build:save('C://path/to/output/game.love', 'DEMO') -- build the .love project file
local comment = love.maker.getComment(dest)
print(comment)

Documentation and source code

https://github.com/2dengine/love.maker

https://2dengine.com/doc/maker.html