Skip to content

Commit

Permalink
Merge pull request #244 from conveyal/dev
Browse files Browse the repository at this point in the history
Next release
  • Loading branch information
evansiroky authored Sep 5, 2018
2 parents d3ccbea + 6517a18 commit 7ec4c46
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@
"prefer-const": ["warn", {
"destructuring": "all",
"ignoreReadBeforeAssign": false
}]
}],
"flowtype/sort-keys": [
"error",
"asc", {
"caseSensitive": true,
"natural": false
}
]
},
"settings": {
"flowtype": {
Expand Down
5 changes: 5 additions & 0 deletions lib/js-transform.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const babelify = require('babelify')
const envify = require('envify/custom')
const markdown = require('browserify-markdown')
const pkg = require('../lib/pkg')
const commit = require('this-commit')()
const through = require('through2')
const YAML = require('yamljs')

Expand All @@ -11,9 +13,12 @@ module.exports = function transform ({ config, env }) {
{},
process.env,
{
BUILD_TIMESTAMP: (new Date()).getTime(),
COMMIT_SHA: commit,
CONFIG_PATH: config.path,
MESSAGES: JSON.stringify(config.messages),
NODE_ENV: env,
REPO_URL: pkg.repository && pkg.repository.url && pkg.repository.url.replace('.git', ''),
SETTINGS: JSON.stringify(config.settings),
STORE: JSON.stringify(config.store)
},
Expand Down

0 comments on commit 7ec4c46

Please sign in to comment.