From b8e32cdf30d3c67db4fa438fc7cdde49de2f46f1 Mon Sep 17 00:00:00 2001 From: softmarshmallow Date: Fri, 31 Dec 2021 18:33:54 +0900 Subject: [PATCH] add module & declare flag proposal docs --- packages/support-flags/--declare/README.md | 19 +++++++++++++++++++ packages/support-flags/--module/README.md | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 packages/support-flags/--declare/README.md diff --git a/packages/support-flags/--declare/README.md b/packages/support-flags/--declare/README.md new file mode 100644 index 00000000..b3f03ea2 --- /dev/null +++ b/packages/support-flags/--declare/README.md @@ -0,0 +1,19 @@ +--- +stage: + - proposal + - draft +--- + +# Declare flag + +When specific layer or a group of layer (container of multiple layers) is `declared`, the code output will split the part as a variable or a function / class (in the same module). + +**Accepted keys** + +- `--declare` +- `--funcion` (for react users) +- `--widget` (for flutter users) + +## See also + +- [--module](../--module) diff --git a/packages/support-flags/--module/README.md b/packages/support-flags/--module/README.md index 6c457a2b..9d5ca202 100644 --- a/packages/support-flags/--module/README.md +++ b/packages/support-flags/--module/README.md @@ -1,3 +1,18 @@ +--- +stage: + - proposal + - draft +--- + # Module flag When specific layer or a group of layer (container of multiple layers) is defined as a module, the code output will split the part as a module (file splitting). + +**Accepted keys** + +- `--module` +- `--split-module` + +## See also + +- [--declare](../--declare)