git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: b817a22329dc2038d6896282542635e15961b37b

Files: b817a22329dc2038d6896282542635e15961b37b / 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