feat(guide): Import guide in to the client app

This commit is contained in:
Bouncey
2018-10-04 14:47:55 +01:00
committed by Stuart Taylor
parent 2723a943c9
commit 6e728ce16d
4338 changed files with 148283 additions and 4200 deletions

10
client/utils/readDir.js Normal file
View File

@ -0,0 +1,10 @@
const fse = require('fs-extra');
const { isAFileRE, shouldBeIgnoredRE } = require('./regEx.js');
module.exports = function readDir(dir) {
return fse
.readdirSync(dir)
.filter(item => !isAFileRE.test(item))
.filter(file => !shouldBeIgnoredRE.test(file));
};