2022-03-30 15:44:47 +08:00
|
|
|
# @alilc/lowcode-material-parser
|
2022-01-25 15:30:17 +08:00
|
|
|
|
|
|
|
|
> 入料模块
|
|
|
|
|
|
2022-02-18 15:49:23 +08:00
|
|
|
本模块负责物料接入,能自动扫描、解析源码组件,并最终产出一份符合《中后台搭建组件描述协议》的 **JSON Schema**。
|
2022-01-25 15:30:17 +08:00
|
|
|
|
2022-12-08 11:42:49 +08:00
|
|
|
详见[文档](https://lowcode-engine.cn/site/docs/guide/design/materialParser)。
|
2022-01-25 15:30:17 +08:00
|
|
|
|
|
|
|
|
## demo
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
cd demo
|
2022-03-30 15:44:47 +08:00
|
|
|
|
|
|
|
|
// parse jsx
|
|
|
|
|
node parse-jsx.js
|
|
|
|
|
|
|
|
|
|
// parse tsx
|
|
|
|
|
node parse-tsx.js
|
|
|
|
|
|
2022-01-25 15:30:17 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## API
|