vant/build/get-components.js
2018-06-08 10:43:46 +08:00

9 lines
305 B
JavaScript

const fs = require('fs');
const path = require('path');
module.exports = function() {
const dirs = fs.readdirSync(path.resolve(__dirname, '../packages'));
const excludes = ['index.js', 'vant-css', 'mixins', 'utils', '.DS_Store'];
return dirs.filter(dirName => excludes.indexOf(dirName) === -1);
};