Skip to content

Commit

Permalink
Create dummy library and add dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robertxluo committed Jul 28, 2020
1 parent 91c981f commit a611866
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
"eslint-plugin-react-hooks": "^4.0.0",
"prettier": "^2.0.5"
},
"dependencies": {}
"dependencies": {
"unique-random-array": "2.0.0"
}
}
7 changes: 7 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const uniqueRandomArray = require('unique-random-array');
const ourNames = require('./names.json');

module.exports = {
all: ourNames,
random: uniqueRandomArray(ourNames),
};
6 changes: 6 additions & 0 deletions src/names.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
"Robbie",
"Jeffie",
"Mattie",
"Taie"
]

0 comments on commit a611866

Please sign in to comment.