aboutsummaryrefslogtreecommitdiff
path: root/src/bundle.gleam
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2024-07-18 22:50:00 +0800
committerkaiwu <kaiwu2004@gmail.com>2024-07-18 22:50:00 +0800
commitc435113adf8af40a48780a5d07abd9e105bdbb7e (patch)
tree3669191bb51300aa60564f7324a34c05abd878ad /src/bundle.gleam
parente6deab9ee3cfd1645b6c7e4c03816333dd9be941 (diff)
downloadwechat_dev_tools-c435113adf8af40a48780a5d07abd9e105bdbb7e.tar.gz
wechat_dev_tools-c435113adf8af40a48780a5d07abd9e105bdbb7e.zip
use bundle
Diffstat (limited to 'src/bundle.gleam')
-rw-r--r--src/bundle.gleam19
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)]
+}