Fix Upstream Master Rebase conflict

This commit is contained in:
Barry Low committed 2018-11-09 01:27:29 -08:00
1 parent 43a320cdf0
commit 62de196f5b
7 files changed
+4805 -4703

No files matched your search

+15
View File
@@ -1,3 +1,18 @@
import fs from 'fs'
import path from 'path'
export const mergeDirectoryModules = dirpath =>
fs
.readdirSync(dirpath, 'utf8')
.filter(filename => !/^[_|index.]/.test(filename))
.reduce(
(acc, filename) => ({
...acc,
...require(path.resolve(dirpath, filename)).default,
}),
{}
)
export const capitalize = (string) => {
return (string).charAt(0).toUpperCase() + (string).slice(1)
}