Skip to content

Ability to overwrite the bundle template / Ability to customize the comment header #1178

@Zamiell

Description

@Zamiell

I want to automatically add a comment to the top of a "main.lua" file that is transpiled with TSTL's luabundle flag.
The idea is to explain to readers that this file was generated with a tool and is not intended to be read by humans, and that the actual source code for the file is available on GitHub and people should go there to read the source code.

Unfortunately, it sounds like performing this simple task is currently impossible, because:

  1. TSTL does not support overwriting the bundle template.
  2. TSTL does not support customizing the comment header that says: --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]

I would love the ability to do one of these two things (preferably both!), either through a TSTL plugin, or through a TSTL compiler flag, or some other mechanism.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions