Skip to content

Parse required variables from file #683

@willwill96

Description

@willwill96

Apologies if this has already been asked or if this is the wrong place to put this question.

It's typical for me to create a CLI command along with my ejs templates. It would be nice if I could automate some of the argument and/or type definitions.

What I'm looking for is a utility to scaffold typescript types based on my ejs template. I am not looking for anything too complicated (I'm not looking for type inference).

At a minimum, just getting a list of all required variable names would be good enough for my purposes.

It feels like this is something that may already be available somewhere in .ejs, but maybe it's not part of the public API, or my google skills are just rusty 😆

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions