This repository contains the Lua version of Jangala's devicecode, the
program that powers our Big Box and Get Box devices.
SRC_DIR, TEST_DIR and BUILD_DIR are all optional values
To ensure you have all the required dependencies, use the devcontainer (see .devcontainer/devcontainer.json).
Before testing or building the code all submodules need to be loaded in. You can select
the version of each submodule in .env.
make env SRC_DIR=<src>
Building devicecode creates a folder with only required source files and restructures the submodules to make a simpler file structure.
make build SRC_DIR=<src> BUILD_DIR=<build>
Devicecode and it's submodules can be tested, to test devicecode only
make test TEST_DIR=<tests>
to test devicecode and the submodules
make test-all TEST_DIR=<tests> SRC_DIR=<src>
To run the linter
make lint SRC_DIR=<src> TEST_DIR=<tests>