Skip to content

Allow custom suffixes for resources files #273

@alexiscreuzot

Description

@alexiscreuzot

Current state

Currently, resources files are managed using this function :
https://github.com/thoughtbot/liftoff/blob/master/lib/liftoff/project_builder.rb#L90-L92

Problem

In some projects, the user might want to use custom templates files for resources, like .json, .txt or .yml files, without having to manually remove them from the "compile sources" build phase afterward.

Proposed solution

Adding an optional array to the liftoffrc file named additional_resources, used likeso :

additional_resources:
 - txt
 - json
 - yml

This array could then be added to the defaults suffixes in the project_builder.rb resource_file? function.

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