You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: env suffix for plugins/middlewares/tasks #2866
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?
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.
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
Activity
sandros94 commentedon Nov 9, 2024
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
devandprod?pi0 commentedon Nov 11, 2024
Inside
scan.tswe can extractenvconditions 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.sandros94 commentedon Nov 11, 2024
Perfect! Thanks, in the upcoming days I'll start drafting it
[-].dev.ts suffix for dev-only plugins/middlewares/tasks[/-][+]feat: env suffix for plugins/middlewares/tasks[/+]