Commit 0d2e1a26 authored by Michele Memoli's avatar Michele Memoli

final commit

parent 7c25308d
.DS_store
node_modules/
.idea/
out.csv
stories:
- As a user, I can do soemthing cool
- As a user, I can do another thing
- As a researcher, I know about something
components:
- Screenshots
- Car-mode Layout
- Discover layout
- Popup
- Favouriting mechanism
- Scrollview (search)
- Scrollview (ungrouped)
- Scrollview (grouped)
- Scrollview – Station item
- Scrollview – Station Item (stacked)
- Scrollview – Programme item
- Scrollview – Station item (trending)
- Scrollview – Station item (local)
- Nav
- Home layout – 1st
- Home layout – N+1th
- Recently played Tracks
- My Radioplayer layout
- Play Drawer Layout – Open
- Play Drawer Layout – Closed
- Search Results Page
- Settings layout
- Station Page layout
- Social Post – Tweet
- Social Post – Facebook
- Station Shedule
- Recommended shows
orientation:
- landscape
......@@ -17,4 +41,5 @@ platform:
resolution:
- small
- medium
- large
const stringify = require('csv-stringify');
const csvWriter = require('csv-write-stream')
const fs = require('fs')
const Combinatorics = require('js-combinatorics');
const yaml = require('node-yaml');
const input = yaml.readSync('./config.yml')
const values = Object.keys(input).reduce((curr, facet) => {
const headers = Object.keys(input)
const values = headers.reduce((curr, facet) => {
return curr.concat([input[facet]])
}, [])
const cp = Combinatorics.cartesianProduct(...values)
cp.map(scenario => {
console.log(scenario)
})
const writer = csvWriter({ headers })
writer.pipe(fs.createWriteStream('out.csv'))
cp.map(scenario => writer.write(scenario));
writer.end()
......@@ -26,7 +26,7 @@
"nodemon": "^1.11.0"
},
"dependencies": {
"csv-stringify": "^1.0.4",
"csv-write-stream": "^2.0.0",
"js-combinatorics": "^0.5.2",
"node-yaml": "^3.1.0"
}
......
......@@ -206,11 +206,13 @@ cryptiles@2.x.x:
dependencies:
boom "2.x.x"
csv-stringify@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/csv-stringify/-/csv-stringify-1.0.4.tgz#bc18bab9ad4cef3195fd257980b58b479c42d3e5"
csv-write-stream@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/csv-write-stream/-/csv-write-stream-2.0.0.tgz#fc2da21a48d6ea5f8c17fde39cfb911e4f0292b0"
dependencies:
lodash.get "^4.0.0"
argparse "^1.0.7"
generate-object-property "^1.0.0"
ndjson "^1.3.0"
dashdash@^1.12.0:
version "1.14.1"
......@@ -392,6 +394,12 @@ gauge@~2.7.3:
strip-ansi "^3.0.1"
wide-align "^1.1.0"
generate-object-property@^1.0.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0"
dependencies:
is-property "^1.0.0"
getpass@^0.1.1:
version "0.1.7"
resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa"
......@@ -580,6 +588,10 @@ is-primitive@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
is-property@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84"
is-redirect@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24"
......@@ -631,7 +643,7 @@ json-stable-stringify@^1.0.1:
dependencies:
jsonify "~0.0.0"
json-stringify-safe@~5.0.1:
json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
......@@ -716,10 +728,6 @@ lodash.defaults@^3.1.2:
lodash.assign "^3.0.0"
lodash.restparam "^3.0.0"
lodash.get@^4.0.0:
version "4.4.2"
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
lodash.isarguments@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a"
......@@ -804,6 +812,15 @@ nan@^2.3.0:
version "2.6.2"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45"
ndjson@^1.3.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/ndjson/-/ndjson-1.5.0.tgz#ae603b36b134bcec347b452422b0bf98d5832ec8"
dependencies:
json-stringify-safe "^5.0.1"
minimist "^1.2.0"
split2 "^2.1.0"
through2 "^2.0.3"
nested-error-stacks@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/nested-error-stacks/-/nested-error-stacks-1.0.2.tgz#19f619591519f096769a5ba9a86e6eeec823c3cf"
......@@ -1026,7 +1043,7 @@ read-all-stream@^3.0.0:
pinkie-promise "^2.0.0"
readable-stream "^2.0.0"
readable-stream@^2.0.0, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.4:
readable-stream@^2.0.0, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.1.5:
version "2.3.3"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c"
dependencies:
......@@ -1147,6 +1164,12 @@ sntp@1.x.x:
dependencies:
hoek "2.x.x"
split2@^2.1.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/split2/-/split2-2.1.1.tgz#7a1f551e176a90ecd3345f7246a0cfe175ef4fd0"
dependencies:
through2 "^2.0.2"
split@0.3:
version "0.3.3"
resolved "https://registry.yarnpkg.com/split/-/split-0.3.3.tgz#cd0eea5e63a211dfff7eb0f091c4133e2d0dd28f"
......@@ -1240,6 +1263,13 @@ tar@^2.2.1:
fstream "^1.0.2"
inherits "2"
through2@^2.0.2, through2@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be"
dependencies:
readable-stream "^2.1.5"
xtend "~4.0.1"
through@2, through@~2.3, through@~2.3.1:
version "2.3.8"
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
......@@ -1331,3 +1361,7 @@ xdg-basedir@^2.0.0:
resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-2.0.0.tgz#edbc903cc385fc04523d966a335504b5504d1bd2"
dependencies:
os-homedir "^1.0.0"
xtend@~4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment