Build tools for ComputerCraft based off npm and yarn.
Download or build mittere, and run the following command:
mittere init
It will walk you through setting up your project, similar to setting up a npm project.
Once completed, files will be created for your project. All build files for your project should fall into the created sources directory. If you are making a program, you can use mittere watch to run your program and restart it when changes occur.
Building mittere is the same as building a mittere project. When building, ALWAYS BACK UP THE OLD MITTERE EXECUTABLE! Not doing so can cause huge headaches in building again. When built, the executable will be outputted to mittere.lua. This can be modified in mittere.package.lua if necessary.
A project can require("mittereMeta") to get the package information the project was built with. This can be used for version checking and other uses.
Below is a spec outlining the mittere.package.lua file.
stringname: Name of the projectstringversion: Version of the project. This should follow semvar.stringdescription: A short description of the projectstring[]authors: An array of authors of the projectstringrootDir: The sources directory of the projectstringinitFile: The first file that will be ran when executing the projectstringoutputFile: The file that will be built tostringtype: Either module or programstring[string]tests: An array of tests that can be ran. The key should be a string, and the value an executable path.string[string]tasks: See tests.