145 Commits

Author SHA1 Message Date
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
purificant
45847ec834 fix small typo (#78) 2019-07-26 15:57:32 -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 9.0.3 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
Simone Busoli
5d8fae4c75 Detail the expected format of async env file (#67)
Clarify in README file the export format for synchronous or asynchronous `.js` files
2019-05-30 01:07:12 -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
9.0.2
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
a7bba44079
Add clarification around using the new custom env file path usage 2019-05-10 13:04:51 -05:00
greenkeeper[bot]
af9686b7a0 docs(readme): add Greenkeeper badge (#60) 2019-05-06 05:42:03 -05:00
Todd Bluhm
2dafb745f7
Fix bug where command flags were stolen by commander 9.0.1 2019-05-05 22:27:37 -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
b7cb14651b
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
- Add support for --use-shell
9.0.0
2019-05-04 16:06:21 -05:00
Todd Bluhm
4463e553e7
Updates to Readme and CLI help text 2019-05-04 16:01:59 -05:00
Todd Bluhm
4b37f41bab
Readme updates 2019-05-04 15:17:03 -05:00
Todd Bluhm
cd3018f25b
Switch to dist folder and output typescript declaration files 2019-05-04 05:45:52 -05:00
Todd Bluhm
3534069ece Add --use-shell option
- Added test cases for new option
- Fixed up other test cases
- Fixed code coverage issue
2019-05-04 05:35:26 -05:00
Todd Bluhm
86edc944ed
Fix issue where rc file option was always defined
- Fix signal termination bug by changing strict undefined checks to
also include null
2019-05-04 04:37:10 -05:00
Todd Bluhm
0523d994be
More Readme file tweaks 2019-05-04 04:05:33 -05:00
Todd Bluhm
25de68f281
Fix newline character parsing in .env files 2019-05-04 03:50:48 -05:00
Todd Bluhm
9171dc06cb
More Readme file tweaks 2019-05-04 03:22:06 -05:00
Todd Bluhm
dc06c40e9c
Add in programmatic API docs 2019-05-04 03:18:20 -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
2509f2cef7
Readme file tweaks 2019-05-04 02:47:22 -05:00
Todd Bluhm
75a2f50311
Add polyfill for util.promisify for node v6 2019-05-04 02:44:25 -05:00
Todd Bluhm
4990ab3ccd
Add async .rc file support
- Updates to Readme file
2019-05-04 02:27:27 -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
9fcfd621dd
Update README and travis ci config 2018-10-27 13:56:32 -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
3dc8552b86
Ignore .nyc_output folder in npm published package 2018-05-17 14:21:45 -05:00
Todd Bluhm
ad630ef564
Updated package.json and lock file to address npm audit concerns 8.0.2 2018-05-17 14:19:47 -05:00
Todd Bluhm
c541e9a308
Properly propagate the correct signals/codes from the child process 8.0.1 2018-04-24 03:46:04 -05:00
Todd Bluhm
a4b21438a1
8.0 release 8.0.0 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
1bf9451ae0
Stripe spaces out around equal sign when parsing an env file. (#35)
* Stripe spaces out around both key and value when parsing an env file.
2018-03-21 01:07:38 -05:00
Marcus R. Brown
7829a6c5a0 Add support for escaping double and single quoted values. (#34)
* Add support for escaping double and single quoted values.
* Add test cases for escaping quotes of values with embedded quotes.
2018-03-03 03:56:39 -06:00
Todd Bluhm
5987f82065 Update package.json to 7.0.0 and add entry to change log 7.0.0 2017-09-25 13:46:03 -05:00
Todd Bluhm
28bd3845e7 Allow for using absolute pathing, ~ pathing, and relative pathing (#30)
* Allow for using absolute pathing, ~ pathing, and relative pathing

* Add test cases for `./` and `../` pathing

* Update Readme file with new path rules
2017-09-25 13:39:06 -05:00
Todd Bluhm
26d8eaad9e Update package.json and changelog with version 6.0.0 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
a73616073f Fixed coverage and updated Readme file 2017-09-21 17:12:18 -05:00
zhrren
e4947984b9 Support multiple environment name. (#16) 2017-09-21 14:38:48 -05:00
Todd Bluhm
51359195d9
Updated package to 5.1.0
- Added new contributor
- Updated changelog
5.1.0
2017-04-18 12:44:13 -04:00
Anton Versal
7e29082fa7 fixes according to amendments 2017-04-18 12:29:50 -04:00
Anton Versal
494cddb9cd add —no-override option 2017-04-18 12:29:50 -04:00
Todd Bluhm
74d76986ae Merge pull request #22 from toddbluhm/greenkeeper-standard-10.0.0
Update standard to version 10.0.0 🚀
2017-04-09 13:37:40 -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
Todd Bluhm
7a26c4297f Update README.md
Minor readme fixes
2017-03-31 11:53:31 -04:00
Todd Bluhm
bbb01d679f Merge pull request #20 from toddbluhm/greenkeeper-sinon-2.0.0
Update sinon to version 2.0.0 🚀
2017-03-22 15:22:58 -04:00