git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 8d668726e7d11fcdfc803f3c47ed305680c7194f

Files: 8d668726e7d11fcdfc803f3c47ed305680c7194f / app / features.js

761 bytesRaw
1const cuke = require('cuke-tap')
2const path = require('path')
3const glob = require('glob')
4const join = require('path').join
5const parallel = require('run-parallel')
6
7parallel([
8 function (cb) {
9 glob('{features/*.feature,*/index.feature,*/features/*.feature}', { cwd: __dirname }, cb)
10 },
11 function (cb) {
12 glob('{steps/*.js,*/steps.js,*/steps/*.js}', { cwd: __dirname }, cb)
13 }
14], function (err, results) {
15 if (err) { throw err }
16
17 const features = results[0].map(function (file) {
18 return join(__dirname, file)
19 })
20 const steps = results[1].map(function (file) {
21 return require(join(__dirname, file))
22 })
23
24 console.log("features", features)
25 console.log("steps", steps)
26
27 if (features.length > 0) {
28 cuke(features, steps)
29 }
30})
31

Built with git-ssb-web