50 Commits

Author SHA1 Message Date
Todd Bluhm
a253a62232
chore(package): update devDependencies
- fix new lint errors
- fix missing code coverage
- update ignore files
2020-02-09 20:40:20 -06:00
Todd Bluhm
fda25184a6
chore(package): update dependencies
- fixed lint errors
2019-12-28 23:41:14 -06:00
Todd Bluhm
3656bb0752
chore(package): update commander dependency 2019-11-16 00:43:02 -06:00
greenkeeper[bot]
0ff6bad57b chore(package): update ts-standard to version 3.0.0 (#102) 2019-11-15 12:39:31 -06:00
Todd Bluhm
f7929ce8f0
chore(package): update ts-standard to v2 2019-11-01 00:27:16 -05:00
greenkeeper[bot]
19148b613e fix(package): update cross-spawn to version 7.0.0 (#90) 2019-09-06 02:16:39 -05:00
Todd Bluhm
1cd2feb837
Fixed bug causing env-cmd to fail when no failure had occurred 2019-08-30 01:29:52 -05:00
Todd Bluhm
bbc4b78ad2
Convert over to using ts-standard
- Removed all the various eslint dependencies and added ts-standard
- Updated Readme file with some minor changes
- Updated dist folder to have one level again
2019-08-29 23:39:32 -05:00
Todd Bluhm
f5e2e33939
Updated typescript-eslint packages and fixed lint errors
- Updated commander
- Brought coverage back up to 100%
- Updated tsconfig to adhere to linter parser update
2019-08-28 03:13:50 -05:00
Gregory Waxman
29dcda819a Fixes #79 (#80)
* Fixes #79

* Updated tests to properly reject rather than throw and fixed another missing await
2019-08-28 02:21:53 -05:00
greenkeeper[bot]
ff03fc75f0 chore(package): update eslint-config-standard-with-typescript to version 8.0.0 (#84) 2019-08-08 04:38:45 -05:00
Todd Bluhm
727f429a7e
Remove package-lock file, update npm keywords, fix badges in Readme 2019-06-06 20:43:05 -05:00
Todd Bluhm
5eaff2cb5a
Fix regex when parsing and preserving newline characters in env values 2019-06-05 16:05:32 -05:00
Todd Bluhm
bec00aa094
Update package.json to be more permissive with minor/patch versions
- Fix lint/tsc errors
2019-05-30 19:46:04 -05:00
Todd Bluhm
09ffda4abf
Publish v9.0.2
- Updated test cases to bring coverage back to 100%
- Updated package.json version number
- Update changelog
2019-05-30 00:58:16 -05:00
Todd Bluhm
012230dd8a
Exit with non-zero error code when an error occurs
- Added an `npm run watch` command auto-recompilation of typescript files
- Updated Changelog
2019-05-29 23:47:16 -05:00
Todd Bluhm
b1ad7e4902
Documentation updates and lint command changes
- Fixed some minor documentation issues
- Added tsc command to npm run lint to check for typescript errors
when linting
2019-05-05 21:11:19 -05:00
Todd Bluhm
cd3018f25b
Switch to dist folder and output typescript declaration files 2019-05-04 05:45:52 -05:00
Todd Bluhm
c6220bc86f
Dropped support for node v6 since its now deprecated
- Updated Changelog
2019-05-04 02:57:30 -05:00
Todd Bluhm
75a2f50311
Add polyfill for util.promisify for node v6 2019-05-04 02:44:25 -05:00
Todd Bluhm
56ed009d7b
Convert EnvCmd to Typescript
- Complete rewrite and reorganization
- Expose a usable programmatic API
- Support Async .env files by accepting javascript files
- Update all libraries/dependencies
- Support for more options in the future by using commanderjs
- More thorough test cases and code-coverage
- Better handling of signal terminations for both parent and child
processes
- Use ESLint Standard with Typescript
2019-05-04 02:16:03 -05:00
Todd Bluhm
0738042dbb Initial conversion of lib over to typescript
- All env-cmd-examples repo cases passing
- Added support for default .env-cmdrc.json file
- Added flag and help text lib
- Split up project into more reasonable files/chunks of code
- Updated copyright year to 2019
2019-01-31 16:12:55 -05:00
Todd Bluhm
7da026a121
Drop node v4 support, updated dev deps and added examples link
- Drop support for node v4
- Update dev dependencies sinon and nyc
- Updated package-lock file
- Updated license file year text
- Added examples link to readme
- Added node 10 version to automated testing
2018-10-19 15:38:44 -05:00
Todd Bluhm
ad630ef564
Updated package.json and lock file to address npm audit concerns 2018-05-17 14:19:47 -05:00
Todd Bluhm
c541e9a308
Properly propagate the correct signals/codes from the child process 2018-04-24 03:46:04 -05:00
Todd Bluhm
a4b21438a1
8.0 release 2018-04-22 13:07:32 -05:00
Todd Bluhm
569b5a9e6b
Fix bugs in parent and spawn process termination (#36)
* Fix spawn and parent process killing
- Implemented a broader solution to killing the parent/spawned process
that includes hooks for certain specific signals and then the generic
node exit event
- Added test cases to support the new termination solution

* Updated a bunch of node dependencies

* Updated change log
2018-03-21 03:02:20 -05:00
Todd Bluhm
5987f82065 Update package.json to 7.0.0 and add entry to change log 2017-09-25 13:46:03 -05:00
Todd Bluhm
26d8eaad9e Update package.json and changelog with version 6.0.0 2017-09-21 17:45:58 -05:00
Todd Bluhm
bff0958576 Refactor fallback behavior to require a --fallback flag (#28)
* Refactored fallback behavior to require a --fallback flag

- By default env-cmd will no longer crash if .env or .env-cmdrc files
are not found
- In order to use the old default .env file fallback functionality a
--fallback flag must be passed

* Update minimum nodejs version and update Readme file

* Fix coverage

* Reduce minimum nodejs version down to v4

* Minor readme tweaks
2017-09-21 17:44:35 -05:00
Todd Bluhm
51359195d9
Updated package to 5.1.0
- Added new contributor
- Updated changelog
2017-04-18 12:44:13 -04:00
Anton Versal
7e29082fa7 fixes according to amendments 2017-04-18 12:29:50 -04:00
greenkeeperio-bot
b153cedced chore(package): update standard to version 10.0.0
https://greenkeeper.io/
2017-04-04 21:26:22 -04:00
greenkeeperio-bot
adb0d2e246 chore(package): update sinon to version 2.0.0
https://greenkeeper.io/
2017-03-15 02:35:48 -04:00
Todd Bluhm
ea9d858e4a
5.0 release
- Updated Changelog
- Updated package.json
- Updated License file for new year
2017-03-03 01:43:56 -05:00
greenkeeperio-bot
90a1d94763 chore(package): update standard to version 9.0.0
https://greenkeeper.io/
2017-03-02 17:33:39 -05:00
serapath
956b0efa8e UPDATE testing 2017-02-21 10:30:10 +01:00
Todd Bluhm
71e9c85e78
Update version to 4.0 due to double quotes breaking change 2016-12-06 21:46:39 -08:00
Todd Bluhm
f37249e467
Added in support for .env-cmdrc file and updated to 3.0.0 2016-12-03 01:44:39 -06:00
Todd Bluhm
4bb8233bec Merge pull request #9 from toddbluhm/greenkeeper-cross-spawn-5.0.1
Update cross-spawn to version 5.0.1 🚀
2016-12-02 15:17:37 -06:00
Jon Scheiding
a43365e787 Putting my name all over it (toddbluhm/env-cmd#10) 2016-11-21 15:17:40 -05:00
greenkeeperio-bot
eb09fe4ad5 chore(package): update cross-spawn to version 5.0.1
https://greenkeeper.io/
2016-11-04 19:50:32 -04:00
Todd Bluhm
288b5a506c
Publish version 2.2.0
- Update changelog
- Update package.json
2016-09-23 02:00:49 -04:00
Eric Lanehart
0d2f0452a2 Credit contributors 2016-09-22 08:25:00 -04:00
Todd Bluhm
fbb5ac6d68
Regex for parsing, support inline comments, support key value format
- Moved over to using regex for parsing the env file
- Added support for inline comments
- Added support for `key value` pairing file format
- Will now ignore invalid lines in env file, instead of throwing an error
- Removed old test cases
- Added more specific test cases
2016-08-18 16:48:40 -05:00
Todd Bluhm
39616b70b1 Removed -e/--env flags, allow # comment lines in env file, bug fixes
- Removed the -e/--env flags in favor of just requiring the first arg to
env-cmd to be the relative path to the env file
- Comments are now valid in env files using the #
- Empty lines in env file are now ignored
- Fixed bug env file no longer needs to end on a newline
2016-08-17 16:24:01 -05:00
Todd Bluhm
56d10fa34f Fix npm badges 2016-08-17 00:08:32 -05:00
Todd Bluhm
11c1765192 Use more standardized npm /bin folder for executable
- Updated Readme
- Add Changelog
- Fix usage as npm .bin file
2016-08-16 23:56:47 -05:00
Todd Bluhm
516d6ba4ad Add in coveralls devDependency 2016-08-16 23:37:23 -05:00
Todd Bluhm
afc512c641 Initial code commit 2016-08-16 21:34:05 -05:00