aboutsummaryrefslogtreecommitdiff
path: root/src/bundle.gleam
blob: 27cf34d78af7b9139bb33a0d745d676faaffaf7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)]
}