forked from DebaucheryLibrarian/traxxx
Added seed file for test data.
This commit is contained in:
@@ -161,6 +161,11 @@ const { argv } = yargs
|
||||
describe: 'Show error stack traces',
|
||||
type: 'boolean',
|
||||
default: process.env.NODE_ENV === 'development',
|
||||
})
|
||||
.option('dummy', {
|
||||
describe: 'Generate dummy data during seed',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
});
|
||||
|
||||
module.exports = argv;
|
||||
|
||||
5
src/utils/pick-random.js
Normal file
5
src/utils/pick-random.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function pickRandom(array) {
|
||||
return array[Math.floor(Math.random() * array.length)];
|
||||
}
|
||||
|
||||
module.exports = pickRandom;
|
||||
Reference in New Issue
Block a user