diff options
author | kaiwu <kaiwu2004@gmail.com> | 2024-07-18 22:50:00 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2024-07-18 22:50:00 +0800 |
commit | c435113adf8af40a48780a5d07abd9e105bdbb7e (patch) | |
tree | 3669191bb51300aa60564f7324a34c05abd878ad /src/bundle.gleam | |
parent | e6deab9ee3cfd1645b6c7e4c03816333dd9be941 (diff) | |
download | wechat_dev_tools-c435113adf8af40a48780a5d07abd9e105bdbb7e.tar.gz wechat_dev_tools-c435113adf8af40a48780a5d07abd9e105bdbb7e.zip |
use bundle
Diffstat (limited to 'src/bundle.gleam')
-rw-r--r-- | src/bundle.gleam | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/bundle.gleam b/src/bundle.gleam new file mode 100644 index 0000000..27cf34d --- /dev/null +++ b/src/bundle.gleam @@ -0,0 +1,19 @@ +import wechat/object.{type JsObject} + +import app/app +import app/pages/index/index +import app/components/basic/basic + +pub type Constructor = fn() -> JsObject + +pub fn app() -> Constructor { + app.app +} + +pub fn pages() -> List(#(String, Constructor)) { + [#("index", index.page)] +} + +pub fn components() -> List(#(String, Constructor)) { + [#("basic", basic.component)] +} |