add_jobs(
    {
        name = "my_filter",
        url = "github.com/akashic-records-of-the-abyss/basic_regolith",
        version = "latest"
    },
    {
        name = "another_shell",
        runWith = "shell",
        command = "echo",
        arguments = { "1, 2, 3, 4 ,5 ,6 ,7, ", "2, ", "3, ", }
    },
    {
        name = "nodejs",
        runWith = "nodejs",
        script = "./local_filters/node_js/index.js"
    },
    {
        name = "my_shell",
        runWith = "shell",
        command = "echo 'I should be ran last!'"
    })

set_project_information({
    license = "MIT",
    authors = { "Akashic Records Of The Abyss" },
    name = "my cool addon!",
    default_profile = "default",
    bp_dir = "./packs/BP",
    rp_dir = "./packs/RP",
    data_dir = "./packs/data",
    enable_standard_library = true
})

profile("default", function()
    target("development") -- This is required to be first!
    build_type("standard")
    read_only(false)
    apply_jobs("json_normalizer", "nodejs", {
            filter = "another_shell",
            arguments = { "UvU" }
        },
        {
            filter = "my_filter",
            when = function(run_context)
                return true
            end
        },
        {
            filter = "gametests",
            settings = {
                buildOptions = {
                    entryPoints = { "data/gametests/src/main.ts" },
                    minify = false,
                    bundle = true
                },
                moduleUUID = "3e35560f-c4b0-4d51-92b4-52e07ac4a84e",
                modules = {
                    "@minecraft/server@1.15.0" }
            }

        }, "my_shell")
end)
