Closed baer closed 9 years ago
I'd like to propose that there be only one way to write config. Allowing Strings as the dest
has already required you to write the 30 line normalizeOpts and will (potentially) require extra config in the validation logic.
options = {
...
// Plural form indicates that it is a collection of entry points.
entryPoints: [{
src: ""
dest: ""
}]
}
options = {
...
// Plural form indicates that it is a collection of entry points.
entryPoints: {
src: { dest: "" }
}
}
@baer
lib/schema
for now. We can split it up if that directory becomes too monolithic.Thanks!
Fair enough - I'll get this wrapped up tomorrow.
Excellent. I'll be online intermittently this week, but will be checking in every once in awhile.
@divmain - this is ready for another look. It's done but I left you two comments you should have a look at before you decide to merge/not merge. I left is as WIP until it's fully resolved.
PR to validate input for the Interlock constructor (#19)