Skip to content

Adapter API to parse ignore files to warn of suggested ignores #2258

@jthegedus

Description

@jthegedus

Describe the problem

Different adapters require different ignore settings.

The current proposed soln that is in use today is for all adapter output to be under .svelte-kit/<somedir> though this may change in future per adapter.

The proposed solution would provide adapter authors with an alternative.

Describe the proposed solution

Use gitignore-parser to let Adapters to loudly warn users. From this exchange:

Should we expect to see gitignore-parser provided via the Adapter API in the near future?

Yes, I think we should — we could have an API like utils.warn_if_unignored([opts.output])

Alternatives considered

Writing this in my documentation

Importance

would make my life easier

Additional Information

raising the issues:

initial proposition:

revert of initial proposition

Metadata

Metadata

Assignees

No one assigned

    Labels

    adapters - generalSupport for functionality general to all adaptersfeature / enhancementNew feature or requestp2-nice-to-haveSvelteKit cannot be used by a small number of people, quality of life improvements, etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions