Commit b783617 1 parent b324f13 commit b783617 Copy full SHA for b783617
File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
# wechat_dev_tools
2
2
3
- wechat_dev_tools is a template which enables developing wechat miniprograms in [ gleam] ( https://gleam.run ) .
3
+ Develop wechat miniprograms in [ gleam] ( https://gleam.run ) .
4
4
It uses [ esbuild] ( ) and [ esbuild-plugin-less] ( ) to build ` *.json ` , ` *.wxml ` and ` .wxss ` files
5
5
6
6
[ ![ Package Version] ( https://img.shields.io/hexpm/v/wechat_dev_tools )] ( https://hex.pm/packages/wechat_dev_tools )
7
7
[ ![ Hex Docs] ( https://img.shields.io/badge/hex-docs-ffaff3 )] ( https://hexdocs.pm/wechat_dev_tools/ )
8
8
9
9
``` sh
10
+ $ git clone https://github.com/kaiwu/wechat_dev_tools.git your-project
11
+ $ cd your-project
10
12
$ npm install
11
13
$ gleam build
12
14
```
13
15
Further documentation can be found at < https://hexdocs.pm/wechat_dev_tools > .
14
16
15
17
## Development
16
18
19
+ Update ` src/bundle.gleam ` so that it includes each one of your page and component
20
+
21
+ ``` gleam
22
+ pub fn pages() -> List(#(String, Constructor)) {
23
+ [#("index", index.page)]
24
+ }
25
+
26
+ pub fn components() -> List(#(String, Constructor)) {
27
+ [#("basic", basic.component)]
28
+ }
29
+ ```
30
+
31
+ Npm scripts are provided for convenience
32
+
17
33
``` sh
18
34
$ npm run purge
19
35
$ npm run clean
You can’t perform that action at this time.
0 commit comments