Open Chriscbr opened 4 months ago
cc @MarkMcCulloh @ekeren
Hi,
This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
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:
Component
CLI
Community Notes