Useful utils functions written in functional programming style
- parameter
- Validating functions' parameters
- json_api
- Format data to JSONAPI
- folktale
- folktale utils functions
- lodash
- More supports for function programming
- Add folktale/result to some lodash functions
- ramda
- Add some resuable lens
- Add folktale/result to some ramda functions
- general_utils
- useful uncategorized utils functions
- Create personal Github access token
Go to https://github.com/settings/tokens and create an access token withrepo
scope . Save the token in a secure place. - Setup url rewrite in ~/.gitconfig
git config --global url."https://<GITHUB_TOKEN>:[email protected]/".insteadOf https://[email protected]/
- Install private repository
Verbose log level for debugging access errors.
npm install --loglevel verbose --save git+https://[email protected]/<USERNAME>/<REPOSITORY>.git
In the project (deployed to Heroku) where this repo installed on:
- Set config var
heroku config:set GITHUB_TOKEN=<token_value>
- Configure
package.json
Set heroku-prebuild
...
"scripts": {
heroku-prebuild: "npm install --loglevel verbose --save git+https://[email protected]/<USERNAME>/<REPOSITORY>.git"
},
...
npm install peterblockman/jsutils.git --save
It will be automatically installed while deploying to Heroku
npm install
npm test