[breaking change] rebuild style struct (#2021)

This commit is contained in:
neverland
2018-11-03 21:08:06 +08:00
committed by GitHub
parent a5576762d8
commit 11ce2a602f
165 changed files with 1371 additions and 4729 deletions
+9 -1
View File
@@ -1,8 +1,16 @@
const fs = require('fs');
const path = require('path');
const excludes = [
'index.js',
'index.less',
'style',
'mixins',
'utils',
'.DS_Store'
];
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);
};