Skip to content

Commit 7ec4c46

Browse files
authored
Merge pull request #244 from conveyal/dev
Next release
2 parents d3ccbea + 6517a18 commit 7ec4c46

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

lib/eslintrc.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@
2424
"prefer-const": ["warn", {
2525
"destructuring": "all",
2626
"ignoreReadBeforeAssign": false
27-
}]
27+
}],
28+
"flowtype/sort-keys": [
29+
"error",
30+
"asc", {
31+
"caseSensitive": true,
32+
"natural": false
33+
}
34+
]
2835
},
2936
"settings": {
3037
"flowtype": {

lib/js-transform.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const babelify = require('babelify')
22
const envify = require('envify/custom')
33
const markdown = require('browserify-markdown')
4+
const pkg = require('../lib/pkg')
5+
const commit = require('this-commit')()
46
const through = require('through2')
57
const YAML = require('yamljs')
68

@@ -11,9 +13,12 @@ module.exports = function transform ({ config, env }) {
1113
{},
1214
process.env,
1315
{
16+
BUILD_TIMESTAMP: (new Date()).getTime(),
17+
COMMIT_SHA: commit,
1418
CONFIG_PATH: config.path,
1519
MESSAGES: JSON.stringify(config.messages),
1620
NODE_ENV: env,
21+
REPO_URL: pkg.repository && pkg.repository.url && pkg.repository.url.replace('.git', ''),
1722
SETTINGS: JSON.stringify(config.settings),
1823
STORE: JSON.stringify(config.store)
1924
},

0 commit comments

Comments
 (0)