-
Notifications
You must be signed in to change notification settings - Fork 376
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
Move unnecessary normal dependencies to devDependencies #168
Conversation
That depends on which parts of the package you're using. Are you suggesting the laws should be defined in a separate npm package, or that since they're only used for testing they should only not be installed in production? |
Ah, good point. I forgot that package also exposes laws tests. Not sure what a right course of action here then. I'll close this PR for now, maybe we'll figure out something later. |
Use of duggy in -const {tagged} = require('daggy');
-const Compose = tagged('c');
+function Compose(c) {
+ if (!(this instanceof Compose)) {
+ return new Compose(c)
+ }
+ this.c = c
+} (actually same is in And about fantasy-combinators we use |
I'm not a fan of code duplication for the sake of it :| On Thu, 22 Sep 2016, 10:23 Irakli Safareli, [email protected]
|
On one side a) we have 2 dependencies and on other side b) duplication of 3 online functions and expansion of 2 constructors. If we go with b) FL will have 0 dependency so library contributors will be easily convinced to use FL as dependency. Of course this point has value in case we want libs to depend on FL, which I think is what we should be aiming for as it will make it clear what version of FL a lib conforms to without digging into it's docs. |
Good point about determining to which version of FL a library conforms to. Didn't thought about it this way. |
Also it's handy to see libs which depend on FL in npm |
Wow, that's a good alternative to implementations.md that can be more complete and automatically up to date! |
I think if it boils down to this it's beyond pathetic. I just don't see value in it. If we think this, then I'd go the whole hog and remove all the other libraries in fantasy-land repos and just host a markdown file. |
These dependencies are not needed for
fantasy-land
npm package to work.