naive-ui/scripts/read-components.js
2020-09-09 16:09:53 +08:00

12 lines
255 B
JavaScript

const fs = require('fs').promises
const path = require('path')
;(async () => {
const files = await fs.readdir(
path.resolve(__dirname, '..', 'src')
)
files.forEach(file => {
if (!file.startsWith('_')) console.log(`- [ ] ${file}`)
})
})()