Closed gabrielstuff closed 7 years ago
See : https://github.com/soixantecircuits/altruist/blob/master/actions/facebook.js#L14 https://github.com/soixantecircuits/altruist/blob/master/actions/mandrill.js https://github.com/soixantecircuits/altruist/blob/master/actions/twitter.js https://github.com/soixantecircuits/altruist/blob/feature-print/actions/win32printer.js
and all the other action param. We should have a unique config loader, which allow for overriding settings. Thus it will make uniform the setting loading.
See all the existing methodologies :
http://exploringjs.com/es6/ch_destructuring.html http://www.2ality.com/2014/01/object-assign.html https://github.com/sindresorhus/deep-assign https://github.com/jonschlinkert/assign-deep
Guess the best !
See : https://github.com/soixantecircuits/altruist/blob/master/actions/facebook.js#L14 https://github.com/soixantecircuits/altruist/blob/master/actions/mandrill.js https://github.com/soixantecircuits/altruist/blob/master/actions/twitter.js https://github.com/soixantecircuits/altruist/blob/feature-print/actions/win32printer.js
and all the other action param. We should have a unique config loader, which allow for overriding settings. Thus it will make uniform the setting loading.
See all the existing methodologies :
http://exploringjs.com/es6/ch_destructuring.html http://www.2ality.com/2014/01/object-assign.html https://github.com/sindresorhus/deep-assign https://github.com/jonschlinkert/assign-deep
Guess the best !