Commit Graph

20 Commits

Author SHA1 Message Date
Derrick Hammer a3f3e157b9
*improve object path check 2022-12-19 13:48:39 -05:00
Derrick Hammer 785e0b836c
*Pass fallback to objectPath.get 2022-12-19 13:48:12 -05:00
Derrick Hammer e535abd2ff
*Need to use the _ property 2022-12-19 11:35:24 -05:00
Derrick Hammer afb5389243
*Heavily refactor and simplification
*Support dot notation in accessing and creating settings
*Ensure we only load .json files
2022-12-19 11:29:03 -05:00
Derrick Hammer 6e37b22988
*Do mkdir on just configdir 2022-12-06 16:48:30 -05:00
Derrick Hammer 7c631f3af5
*Force create of config directory if it does not exist 2022-12-06 16:38:58 -05:00
Derrick Hammer c416218d88
*Switch case needs to be on true not the value 2022-09-21 17:36:30 -04:00
Derrick Hammer 438c3df467
*Merge arrays with splat, don't push 2022-09-21 17:28:16 -04:00
Derrick Hammer ea0e7a3696
*add error including path if json parse fails 2022-09-21 17:20:54 -04:00
Derrick Hammer 1491fa7567
*openJson needs to be bound 2022-09-21 17:18:45 -04:00
Derrick Hammer e49ce56cb8
*Remove getFile call 2022-09-21 17:16:38 -04:00
Derrick Hammer 8b49a6ed6b
*Ensure key is both not undefined and not null 2022-09-21 16:55:46 -04:00
Derrick Hammer cf07c6074e
*set options to empty object 2022-09-21 16:44:01 -04:00
Derrick Hammer c98b544689
*Process json after saving to store in active config 2022-09-21 16:37:56 -04:00
Derrick Hammer c893ddd428
*add missing file argument 2022-09-21 16:30:03 -04:00
Derrick Hammer d50269aac7
*add saveConfigJson method 2022-09-21 16:27:38 -04:00
Derrick Hammer d260933384
*Update LoadOptions 2022-09-21 15:56:34 -04:00
Derrick Hammer 19891e34f8
*Export Config class 2022-09-21 15:47:42 -04:00
Derrick Hammer 334078669a
*add api to read files from dir and parse as JSON 2022-09-21 15:46:01 -04:00
Derrick Hammer 82dddc75cf
*Initial port to typescript 2022-09-21 14:16:00 -04:00