Skip to content

feat: env suffix for plugins/middlewares/tasks #2866

Description

@sandros94

Describe the feature

Inspired by #1849 and the work done at #2272 it would be nice to make the env suffix such as .dev.ts or .prod.ts a convention also available on plugins and possibly others like middlewares and tasks.

Additional information

  • Would you be willing to help implement this feature?

Activity

  1. added
    pending triage
    on Nov 9, 2024
  2. sandros94 commented on Nov 9, 2024

    @sandros94
    ContributorAuthor

    Am I wrong or could this be fully done inside src/core/scan.ts by just filtering inside each scan function?

    Should we limit this suffix to dev and prod?

  3. added
    enhancement
    and removed
    pending triage
    on Nov 11, 2024
  4. pi0 commented on Nov 11, 2024

    @pi0
    Member

    Inside scan.ts we can extract env conditions and in builder when filtering plugins, filter them based on them. so yes, first step is updating scan.ts. Feel free to open PR and we can iterte though it.

  5. sandros94 commented on Nov 11, 2024

    @sandros94
    ContributorAuthor

    Inside scan.ts we can extract env conditions and in builder when filtering plugins, filter them based on them. so yes, first step is updating scan.ts. Feel free to open PR and we can iterte though it.

    Perfect! Thanks, in the upcoming days I'll start drafting it

  6. changed the title [-].dev.ts suffix for dev-only plugins/middlewares/tasks[/-] [+]feat: env suffix for plugins/middlewares/tasks[/+] on Dec 5, 2024
  7. added and removed on Oct 17, 2026
  8. added
    config
    and removed
    enhancement
    on Nov 10, 2026
  9. added theissue type on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    config

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions