aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai WU <kaiwu2004@gmail.com>2024-07-20 09:21:45 +0800
committerKai WU <kaiwu2004@gmail.com>2024-07-20 09:21:45 +0800
commita44ef845cb95f44b95284a738bdf2050ace40a01 (patch)
tree45b21b13a9c8d4c6fd9f32d73fe34b2946570519
parentb01a12b8371d27080a9ecdbc82cffe5d3b1220fa (diff)
downloadwechat_dev_tools-a44ef845cb95f44b95284a738bdf2050ace40a01.tar.gz
wechat_dev_tools-a44ef845cb95f44b95284a738bdf2050ace40a01.zip
simple readme
-rw-r--r--README.md19
-rw-r--r--gleam.toml2
-rw-r--r--manifest.toml6
3 files changed, 9 insertions, 18 deletions
diff --git a/README.md b/README.md
index cdc5700..0f3e3c7 100644
--- a/README.md
+++ b/README.md
@@ -3,22 +3,19 @@
[![Package Version](https://img.shields.io/hexpm/v/wechat_dev_tools)](https://hex.pm/packages/wechat_dev_tools)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/wechat_dev_tools/)
-```sh
-gleam add wechat_dev_tools@1
-```
-```gleam
-import wechat_dev_tools
+wechat_dev_tools is a template which enables developing wechat miniprograms in gleam.
+it uses [esbuild]() and [esbuild-plugin-less]() to build `*.json`, `*.wxml` and `.wxss` files
-pub fn main() {
- // TODO: An example of the project in use
-}
+```sh
+$ npm i
+$ gleam build
```
-
Further documentation can be found at <https://hexdocs.pm/wechat_dev_tools>.
## Development
```sh
-gleam run # Run the project
-gleam test # Run the tests
+$ npm run clean
+$ npm run build
+$ npm run watch
```
diff --git a/gleam.toml b/gleam.toml
index fdd4e7b..fbbbace 100644
--- a/gleam.toml
+++ b/gleam.toml
@@ -16,8 +16,6 @@ repository = { type = "github", user = "kaiwu", repo = "wechat_dev_tools" }
[dependencies]
gleam_stdlib = ">= 0.34.0 and < 2.0.0"
gleam_javascript = ">= 0.11.0 and < 1.0.0"
-filepath = ">= 1.0.0 and < 2.0.0"
-gleamyshell = ">= 2.0.1 and < 3.0.0"
wechat = { path = "../wechat" }
envoy = ">= 1.0.1 and < 2.0.0"
diff --git a/manifest.toml b/manifest.toml
index 4686694..0735bd1 100644
--- a/manifest.toml
+++ b/manifest.toml
@@ -3,21 +3,17 @@
packages = [
{ name = "envoy", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "envoy", source = "hex", outer_checksum = "CFAACCCFC47654F7E8B75E614746ED924C65BD08B1DE21101548AC314A8B6A41" },
- { name = "filepath", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "EFB6FF65C98B2A16378ABC3EE2B14124168C0CE5201553DE652E2644DCFDB594" },
{ name = "gleam_javascript", version = "0.11.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_javascript", source = "hex", outer_checksum = "483631D3001FCE8EB12ADEAD5E1B808440038E96F93DA7A32D326C82F480C0B2" },
{ name = "gleam_json", version = "2.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "CB10B0E7BF44282FB25162F1A24C1A025F6B93E777CCF238C4017E4EEF2CDE97" },
{ name = "gleam_stdlib", version = "0.39.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "2D7DE885A6EA7F1D5015D1698920C9BAF7241102836CE0C3837A4F160128A9C4" },
- { name = "gleamyshell", version = "2.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleamyshell", source = "hex", outer_checksum = "14AE384BC6CBE520A0FCC790B44B2A5A94921E5C7BE67713CDCF07A7663D3ACD" },
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
{ name = "json", version = "1.4.1", build_tools = ["mix"], requirements = [], otp_app = "json", source = "hex", outer_checksum = "9ABF218DBE4EA4FCB875E087D5F904EF263D012EE5ED21D46E9DBCA63F053D16" },
{ name = "wechat", version = "0.1.0", build_tools = ["gleam"], requirements = ["gleam_javascript", "gleam_json", "gleam_stdlib", "json"], source = "local", path = "../wechat" },
]
[requirements]
-envoy = { version = ">= 1.0.1 and < 2.0.0"}
-filepath = { version = ">= 1.0.0 and < 2.0.0" }
+envoy = { version = ">= 1.0.1 and < 2.0.0" }
gleam_javascript = { version = ">= 0.11.0 and < 1.0.0" }
gleam_stdlib = { version = ">= 0.34.0 and < 2.0.0" }
-gleamyshell = { version = ">= 2.0.1 and < 3.0.0" }
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }
wechat = { path = "../wechat" }