[Build] extract build iconfont (#1242)

This commit is contained in:
neverland
2018-06-08 10:43:46 +08:00
committed by GitHub
parent f134841ec2
commit c520694ee1
27 changed files with 1305 additions and 1264 deletions

8
build/get-components.js Normal file
View 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', '.DS_Store'];
return dirs.filter(dirName => excludes.indexOf(dirName) === -1);
};