Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
document environment variables
  • Loading branch information
zeke committed Apr 25, 2018
1 parent 20d301f commit 5c2f2cf
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.example
@@ -0,0 +1,4 @@
GH_TOKEN=
REDIS_URL=
PORT=
CACHE_TTL=
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,3 +1,5 @@
.env
.npmrc
node_modules
.nyc_output
example/dist
Expand Down
2 changes: 2 additions & 0 deletions bin/update-server.js
@@ -1,5 +1,7 @@
#!/usr/bin/env node

require('dotenv-safe').load()

'use strict'

process.title = 'update-server'
Expand Down
2 changes: 2 additions & 0 deletions index.js
@@ -1,5 +1,7 @@
'use strict'

require('dotenv-safe').load()

const http = require('http')
const fetch = require('node-fetch')
const semver = require('semver')
Expand Down
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.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -4,6 +4,7 @@
"test": "prettier-standard '**/*.js' && standard && NODE_ENV=test nyc tap test/*.js"
},
"dependencies": {
"dotenv-safe": "^5.0.1",
"ms": "^2.1.1",
"node-fetch": "^2.1.1",
"redis": "^2.8.0",
Expand Down
2 changes: 2 additions & 0 deletions test/index.js
@@ -1,5 +1,7 @@
'use strict'

require('dotenv-safe').load()

const { test } = require('tap')
const fetch = require('node-fetch')
const Updates = require('..')
Expand Down

0 comments on commit 5c2f2cf

Please sign in to comment.