84 Commits

Author SHA1 Message Date
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
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
5.0.0
2017-03-03 01:43:56 -05:00
Todd Bluhm
3c965639a2 Merge pull request #19 from toddbluhm/comment_fixes
Fix the # comment in env var name issue, other major changes
2017-03-03 01:31:45 -05:00
Todd Bluhm
909df18ddb
Fix the # comment in env var name issue 2017-03-03 01:26:05 -05:00
Todd Bluhm
907bf640d9 Merge pull request #18 from toddbluhm/greenkeeper-standard-9.0.0
Update standard to version 9.0.0 🚀
2017-03-02 17:48:22 -05:00
Todd Bluhm
8d88f6164b
Fix files after js standard linter update 2017-03-02 17:42:26 -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
Todd Bluhm
437258f287 Merge pull request #17 from serapath-contribution/master
ADD default .env file as a fallback
2017-03-02 17:30:01 -05:00
serapath
956b0efa8e UPDATE testing 2017-02-21 10:30:10 +01:00
Alexander Praetorius
fa24b79ca8 UPDATE readme describe .env fallback option 2017-02-21 10:00:17 +01:00
Alexander Praetorius
1dff4fa2a3 ADD default .env file as a fallback
If a repository contains a `.env` example file or - in case of a private repository - a `.env` file with production values,
a developer can add a local (e.g. `.env.local` file to `.gitignore`) and feed it to `env-cmd`.
So in development a custom local configuration can be used, but in production, `env-cmd` falls back to `.env`
2017-02-21 09:51:36 +01:00