-
-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* drop support for Node v4, use node-tap as test runner * rm examples * explicitly end async test for cli * try sync child for windows tests * extract cli option parsing so it is included in coverage * add cli option test relating to #306 * Fix tests on Windows by avoiding bug in spawn-wrap by using spawnSync instead of execSync (#307)
- Loading branch information
Showing
28 changed files
with
4,683 additions
and
3,512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
coverage/ | ||
examples/ | ||
.nyc_output/ | ||
test/ | ||
.editorconfig | ||
.npmignore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
language: node_js | ||
|
||
sudo: false | ||
node_js: | ||
- 4 | ||
- 6 | ||
- 8 | ||
- 9 | ||
|
||
jobs: | ||
include: | ||
- stage: coverage | ||
node_js: 8 | ||
script: npm run ci:coverage | ||
- 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
(function () { | ||
var options = {} | ||
process.argv.forEach(function (val, idx, arr) { | ||
var matches = val.match(/^dotenv_config_(.+)=(.+)/) | ||
if (matches) { | ||
options[matches[1]] = matches[2] | ||
} | ||
}) | ||
|
||
require('./lib/main').config(options) | ||
require('./lib/main').config( | ||
require('./lib/cli-options')(process.argv) | ||
) | ||
})() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const re = /^dotenv_config_(.+)=(.+)/ | ||
|
||
module.exports = function optionMatcher (args) { | ||
return args.reduce(function (acc, cur) { | ||
const matches = cur.match(re) | ||
if (matches) { | ||
acc[matches[1]] = matches[2] | ||
} | ||
return acc | ||
}, {}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.