static-web-apps-cli
static-web-apps-cli copied to clipboard
feat: Add new flags for Function runtime and Function version
Closes #519
@sinedied @manekinekko please check now, pushed new changes.
@sgollapudi77 - Please get approval from @sinedied / @manekinekko before merging the PR.
@sinedied / @manekinekko
Can you please review the PR? We want to get changes in sooner.
cc: @sgollapudi77
@manekinekko , @sinedied if you get some time, please review this PR.
@sulabh-msft @sgollapudi77 I don't want to block this PR any further, but some refactoring should be done in a further PR to have a single source of truth for the default runtime and versions, as they're defined in:
- src/core/constants.ts
- src/config.ts
- src/core/frameworks/frameworks.ts
- src/core/functions-versions.ts
I would suggest choosing one place,
src/core/functions-versions.tsbeing a good candidate (as once the logger is removed from there it has no dependencies), and all other referencing runtimes/versions from it. Bumping into circular dependencies is a good indication that something's not right IMHO.
Thanks Yohan, we will merge this PR into SwaCli after the Hawaii changes are released. We don't want to have any regressions before the public preview of the Hawaii. And we will follow up in the next iterations of the PR to modify the items you suggested,