diff --git a/.gitea/workflows/lua-library.yaml b/.gitea/workflows/lua-library.yaml deleted file mode 100644 index af36b5c..0000000 --- a/.gitea/workflows/lua-library.yaml +++ /dev/null @@ -1,8 +0,0 @@ -name: Lua Library -on: [push] - -jobs: - Lua-Testing: - uses: jmaa/workflows/.gitea/workflows/lua-testing.yaml@v6.19 - Static-Analysis: - uses: jmaa/workflows/.gitea/workflows/lua-static-analysis.yaml@v6.19 diff --git a/.gitea/workflows/lua-library.yml b/.gitea/workflows/lua-library.yml new file mode 100644 index 0000000..84741d2 --- /dev/null +++ b/.gitea/workflows/lua-library.yml @@ -0,0 +1,25 @@ +name: LÖVE/Lua Library + +on: + push: + paths-ignore: ['README.md', '.gitignore', 'LICENSE', 'CONVENTIONS.md'] + +jobs: + Lua-Testing: + runs-on: ubuntu-latest + steps: + - name: Install Lua + run: | + apt-get update + apt-get install -y luajit + - name: Check out repository code + uses: actions/checkout@v3 + - name: Run testing library + run: luajit test/init.lua + Static-Analysis: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Luacheck linter + uses: https://github.com/lunarmodules/luacheck@v1.1.1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..02ef661 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# Löve: Exclude build items +/bin/ +/lib/ +.love-cache/ + +# Compiled Lua sources +luac.out + +# Misc (Image, MacOS, Backups) files +*.psd +*~ +.DS_Store + +# Tools +*.tiled-session diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..72e75cd --- /dev/null +++ b/LICENSE @@ -0,0 +1,3 @@ +Copyright (c) 2019-2025 Jon Michael Aanes + +All rights reserved. diff --git a/README.md b/README.md index 8e1d876..1029243 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,23 @@ -# Palette Swap + + + -Utility library for creating palette swaps of LÖVE-based images. +# Utility library for creating palette swaps of LÖVE-based images + +## Dependencies + +This project requires [PUC Lua 5.1](https://www.tecgraf.puc-rio.br/lua/mirror/versions.html#5.1) or [LuaJIT](https://luajit.org/luajit.html). Newer versions of PUC Lua are not supported. + +This project does not have any library requirements 😎 + +## Contributing + +Feel free to submit pull requests. Please follow the [Code Conventions](CONVENTIONS.md) when doing so. + +## License + +``` +Copyright (c) 2019-2025 Jon Michael Aanes + +All rights reserved. +``` diff --git a/init.lua b/init.lua index 9dbf9aa..28eaa8a 100644 --- a/init.lua +++ b/init.lua @@ -1 +1,5 @@ +-- WARNING! +-- THIS IS AN AUTOGENERATED FILE! +-- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + return require (((...) ~= 'init' and (...) .. '.' or '') .. 'palette-swap')