mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
delete components.json
This commit is contained in:
8
build/bin/get-components.js
Normal file
8
build/bin/get-components.js
Normal file
@@ -0,0 +1,8 @@
|
||||
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'];
|
||||
return dirs.filter(dirName => excludes.indexOf(dirName) === -1)
|
||||
}
|
Reference in New Issue
Block a user