Make example scaffolding async (#1798)

* use async globbing to get example specs

* add bluebird as dependency to packages/example
This commit is contained in:
Chris Breiding
2018-05-29 13:38:56 -04:00
committed by Brian Mann
parent b7756cff3f
commit 5faed29a97
6 changed files with 90 additions and 66 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
const path = require('path')
const glob = require('glob')
const Promise = require('bluebird')
const glob = Promise.promisify(require('glob'))
module.exports = {
getPathToExamples () {
return glob.sync(
return glob(
path.join(
__dirname,
'..',