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
As a user I'd like to be able to be able to specify compile options in wing.toml in some way so that I don't have to type them or copy them every time I compile in my project.
Open questions:
What kinds of compile options need to be overridden? Is the only use case to add platform extensions, or are there other options?
Proposed Solution
Option 1
Allow defining custom target(s) in wing.toml, and then use that target with any overrides you've specified.
Now, wing compile -t aws is a custom platform which extends tf-aws (a built-in platform) and applies the overrides described by s3-state.platform.js on top.
Option 2
Allow adding arbitrary compile flags for one or more targets/platforms that are always applied/added whenever you run wing compile -t TARGET.
Use Case
As a user I'd like to be able to be able to specify compile options in
wing.toml
in some way so that I don't have to type them or copy them every time I compile in my project.Open questions:
Proposed Solution
Option 1
Allow defining custom target(s) in
wing.toml
, and then use that target with any overrides you've specified.Now,
wing compile -t aws
is a custom platform which extendstf-aws
(a built-in platform) and applies the overrides described bys3-state.platform.js
on top.Option 2
Allow adding arbitrary compile flags for one or more targets/platforms that are always applied/added whenever you run
wing compile -t TARGET
.For example:
Then
wing compile -t tf-aws
will automatically get run aswing compile -t tf-aws --platform ~/.s3-state.platform.js
.Implementation Notes
Related:
wing.toml
file forcompile
,run
andtest
#6466Component
CLI
Community Notes
The text was updated successfully, but these errors were encountered: