https://github.com/ioriens/wxml-transpiler
Port of wcc.exe to JavaScript. wxml 文件编译器 --- 里面有很多无用代码,有空再整理下
https://github.com/ioriens/wxml-transpiler
minapp miniapp parser transpiler wxml wxml-to-js
Last synced: 9 months ago
JSON representation
Port of wcc.exe to JavaScript. wxml 文件编译器 --- 里面有很多无用代码,有空再整理下
- Host: GitHub
- URL: https://github.com/ioriens/wxml-transpiler
- Owner: IOriens
- License: mit
- Created: 2017-08-19T04:09:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-07T03:22:34.000Z (over 5 years ago)
- Last Synced: 2025-05-07T20:35:03.987Z (9 months ago)
- Topics: minapp, miniapp, parser, transpiler, wxml, wxml-to-js
- Language: JavaScript
- Homepage:
- Size: 10.6 MB
- Stars: 24
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wxml-transpiler
## Intro
Port of wcc.cpp/wcc/wcc.exe to JavaScript: use compiler carried with Vue.js to transpile wxml ([Grammers to Support](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/view/wxml/)).
## Give it a Try
> Get Started
```sh
# install deps
npm i
# build dep
npm run build
# run
node test/test
```
> Dev Opts
```sh
# auto rebuild
npm run dev
# autorestart type check system
## brew install watch
watch -t npm run flow
# autorestart test
npm run autotest
```
## Todo
- error position feedback
- `propStore` should better not be global
- push props in parseText to reuse pushed props
## License
[MIT](http://opensource.org/licenses/MIT)