You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
i personally won't use this functionality, since i prefer the declarative method, it might be a good feature after full release. this also could lend itself to namespacing like so:
// namespace 'ns'conf.namespace('ns',()=>{// default target in 'ns' (i.e. called using 'ns')conf.target(()=>{console.log('default target');});// 'ns:child1'conf.target('child1',()=>{console.log('this target is at :ns:child1');});});
this would essentially be wrapper methods that would produce the config object as the end result, rather than any different implementation, but it might be worth implementing at some point. the only problem would be in supporting the same level of configurability that the declarative-based method supports, but it would likely be done by allowing objects to be passed in that have the same properties as the config object.
might be interesting to provide functions for building Takefile config object imperatively, so it more closely resembles jake. example:
i personally won't use this functionality, since i prefer the declarative method, it might be a good feature after full release. this also could lend itself to namespacing like so:
this would essentially be wrapper methods that would produce the config object as the end result, rather than any different implementation, but it might be worth implementing at some point. the only problem would be in supporting the same level of configurability that the declarative-based method supports, but it would likely be done by allowing objects to be passed in that have the same properties as the config object.