Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent validation of dates/timestamps #191

Closed
erikkemperman opened this issue Jul 9, 2016 · 4 comments
Closed

Consistent validation of dates/timestamps #191

erikkemperman opened this issue Jul 9, 2016 · 4 comments
Milestone

Comments

@erikkemperman
Copy link
Member

erikkemperman commented Jul 9, 2016

Looking at possibly cleaning up options processing a little, it seems to me that handling of dates/timestamps could perhaps be done with more consistency:

Would it make sense to make value-or-function more robust in this sense and then using that across the board?

(Edited to add some links)

@phated
Copy link
Member

phated commented Jul 11, 2016

Yeah, I was also trying to make this stuff more consistent. I think if vfs.src() implements a function similar to prepareWrite that we will be able to DRY up the options stuff and make them more consistent.

@phated
Copy link
Member

phated commented Dec 30, 2016

@erikkemperman what is the status of this? I'm assuming it will end up in vinyl-prepare, right?

@erikkemperman
Copy link
Member Author

Yeah, if I remember correctly I had branches off vinyl-fs and vinyl-prepare to separate src stuff similar to what you did with dest. Then things got a bit diffuse, from my pov, with glob-stream work.

I still have those branches if you'd like to take a look. I'm on my phone now but can look them up later.

Apologies for leaving this hanging, between an extended stay in Sicily (ah, the food!), a new GF, and insane deadlines at work, this sort of fell overboard.

@erikkemperman
Copy link
Member Author

https://github.com/erikkemperman/vinyl-prepare/commits/refactor-prepare-read

https://github.com/erikkemperman/vinyl-fs/commits/refactor-prepare-read

Probably needs rebasing but maybe better if you check first if it's going the right direction. The discussion we had on this is mostly here:

https://github.com/gulpjs/vinyl-prepare/issues/4

And yes, this issue with inconsistent date/time handling would be addressed by earlier work on value-or-function and using that throughout.

erikkemperman added a commit to erikkemperman/vinyl-fs that referenced this issue Apr 25, 2017
@phated phated closed this as completed in badc72b Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants