{"id":13741502,"url":"https://github.com/kaiwu/wechat_dev_tools","last_synced_at":"2025-05-08T21:34:04.717Z","repository":{"id":249402039,"uuid":"831432405","full_name":"kaiwu/wechat_dev_tools","owner":"kaiwu","description":"develop wechat miniprogram with gleam","archived":false,"fork":false,"pushed_at":"2024-08-25T01:06:27.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-06T19:54:56.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Less","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaiwu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-20T14:29:32.000Z","updated_at":"2024-08-25T01:06:30.000Z","dependencies_parsed_at":"2024-08-03T04:18:17.786Z","dependency_job_id":null,"html_url":"https://github.com/kaiwu/wechat_dev_tools","commit_stats":null,"previous_names":["kaiwu/wechat_dev_tools"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaiwu%2Fwechat_dev_tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaiwu%2Fwechat_dev_tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaiwu%2Fwechat_dev_tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaiwu%2Fwechat_dev_tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaiwu","download_url":"https://codeload.github.com/kaiwu/wechat_dev_tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224774841,"owners_count":17367806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T04:00:59.788Z","updated_at":"2024-11-15T11:31:22.412Z","avatar_url":"https://github.com/kaiwu.png","language":"Less","funding_links":[],"categories":["Packages"],"sub_categories":["SDKs"],"readme":"# wechat_dev_tools\n\n[![Package Version](https://img.shields.io/hexpm/v/wechat_dev_tools)](https://hex.pm/packages/wechat_dev_tools)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/wechat_dev_tools/)\n\nDevelop wechat miniprograms in [gleam](https://gleam.run).\n\nIt uses [esbuild](https://esbuild.github.io/) and [esbuild-plugin-less](https://github.com/iam-medvedev/esbuild-plugin-less) to build `*.json`, `*.wxml` and `.wxss` files\n\n```sh\n$ git clone https://github.com/kaiwu/wechat_dev_tools.git your-project\n$ cd your-project\n$ npm install\n$ gleam build\n```\n\n## Development\n\nUpdate `src/bundle.gleam` so that it includes each one of your page and component\n\n```gleam\npub fn pages() -\u003e List(#(String, Constructor)) {\n  [#(\"index\", index.page)]\n}\n\npub fn components() -\u003e List(#(String, Constructor)) {\n  [#(\"basic\", basic.component)]\n}\n```\n\nNpm scripts are provided for convenience\n\n```sh\n$ npm run purge\n$ npm run clean\n$ npm run build\n$ npm run watch\n```\n\nOne can use the excellent `watchexec` command to watch gleam file changes, such as\n\n```sh\n$ # a full continuous building process\n$ watchexec -e gleam gleam build\n$ npm run watch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaiwu%2Fwechat_dev_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaiwu%2Fwechat_dev_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaiwu%2Fwechat_dev_tools/lists"}