naive-ui/scripts/read-components.js

12 lines
255 B
JavaScript
Raw Normal View History

2020-09-09 16:09:53 +08:00
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}`)
})
})()