Skip to content

feature - let file names have variables #11

@OyuDays

Description

@OyuDays

since you can use the build command on directories, it would be very useful to be able to automatically name the files in the directories according to the variable

example:

templates/
> $id-template.json
> $id-template.toml

$ npx @rose-pine/build -t templates/ -o output/

output/
> main/
>> rose-pine-template.json
>> rose-pine-template.toml
> dawn/
>> rose-pine-dawn-template.json
>> rose-pine-dawn-template.toml
> moon/
>> rose-pine-moon-template.json
>> rose-pine-moon-template.toml

an additional thing would be to let the template folder also have variables in its name

example:

$id-template/

$ npx @rose-pine/build -t templates/ -o output/

output/
> rose-pine-template/
> rose-pine-dawn-template
> rose-pine-moon-template

as it stands right now the files simply keep their original name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions