mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
11 lines
316 B
JavaScript
11 lines
316 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const EXCLUDES = ['index.ts', 'index.less', 'style', 'mixins', 'utils', '.DS_Store'];
|
|
|
|
module.exports = function() {
|
|
const src = path.resolve(__dirname, '../src');
|
|
const dirs = fs.readdirSync(src);
|
|
return dirs.filter(dir => !EXCLUDES.includes(dir));
|
|
};
|