Add option for values
mfrye opened this issue · 4 comments
Awesome plugin btw. I'm using this in a project and it would be really useful to define some vars as .constants and some as .values. That way for the values you'd have a default that's created and you can update it after the app loads.
I have currently not planed that. Do you have any idea how to integrate this in the configuration?
Yeah I can review your code and try to add in when I have a minute. I figured it would just be a separate optional config object. So basically check if values is defined and if so you can mimic most of the logic for the constants write to file.
Yeah what I ended up doing for our app is to create a variables module and then have dependencies be the constants module and a separate values module. The values module is really useful to save stuff locally like access tokens, logged_in status, user_id, etc.
I added this feature. This will be released in 0.5.0. See #12 for further information.
Sweet. Yeah sorry I forgot to come back to this. We ended up going a different way.