naive-ui/scripts/md-to-vue.js
Yugang Cao bb0aa878e2
chore: add md-to-vue script (#1846)
* chore: add md-to-vue script

* fix: update

* Update scripts/md-to-vue.js

* Update scripts/utils/loader.js

* fix: update fn name

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-12-20 00:10:44 +08:00

8 lines
216 B
JavaScript

const { convertFilesByComponentName } = require('./utils/loader')
async function translateMdToVue () {
const componentName = process.argv[2]
await convertFilesByComponentName(componentName)
}
translateMdToVue()