Re: lodash

2015-12-07 Thread Zuzana Svetlikova
Do I understand it correctly, that whenever I'll need a lodash.something 
dependency, I'll just need to require lodash package?

- Original Message -
From: "Tom Hughes" <t...@compton.nu>
To: "Node.js on Fedora" <nodejs@lists.fedoraproject.org>
Sent: Sunday, December 6, 2015 6:13:33 PM
Subject: Re: lodash

On 06/12/15 13:52, Jamie Nguyen wrote:
> On 05/12/15 07:50, Tom Hughes wrote:
>>> I've knocked up a prototype now:
>>>
>>> https://tomh.fedorapeople.org/lodash.spec
>>> https://tomh.fedorapeople.org/lodash-3.10.1-1.fc23.src.rpm
>>>
>>> The precise details are slightly different than I described because I
>>> was looking at the current head not the 3.10.1 release when I wrote that.
>>
>> So this has now become rather more urgent because Jared uploaded a new
>> version of nodejs-argparse last night requires lodash 3 and, judging by
>> the test failures, it really does need it and can't be fixdeped.
>>
>> Jamie - as you're the owner of nodejs-lodash (the only one of the three
>> existing packages that isn't mine) do you have any objection to this plan?
>
> I have no objections at all. Thanks for your hard work! :-)

I've opened https://bugzilla.redhat.com/show_bug.cgi?id=1288858 for this 
now.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://compton.nu/
___
nodejs mailing list
nodejs@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/nodejs@lists.fedoraproject.org
___
nodejs mailing list
nodejs@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/nodejs@lists.fedoraproject.org


Re: lodash

2015-12-06 Thread Tom Hughes

On 06/12/15 13:52, Jamie Nguyen wrote:

On 05/12/15 07:50, Tom Hughes wrote:

I've knocked up a prototype now:

https://tomh.fedorapeople.org/lodash.spec
https://tomh.fedorapeople.org/lodash-3.10.1-1.fc23.src.rpm

The precise details are slightly different than I described because I
was looking at the current head not the 3.10.1 release when I wrote that.


So this has now become rather more urgent because Jared uploaded a new
version of nodejs-argparse last night requires lodash 3 and, judging by
the test failures, it really does need it and can't be fixdeped.

Jamie - as you're the owner of nodejs-lodash (the only one of the three
existing packages that isn't mine) do you have any objection to this plan?


I have no objections at all. Thanks for your hard work! :-)


I've opened https://bugzilla.redhat.com/show_bug.cgi?id=1288858 for this 
now.


Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
___
nodejs mailing list
nodejs@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/nodejs@lists.fedoraproject.org


Re: lodash

2015-12-05 Thread Jared K. Smith
On Sat, Dec 5, 2015 at 2:50 AM, Tom Hughes <t...@compton.nu> wrote:

> So this has now become rather more urgent because Jared uploaded a new
> version of nodejs-argparse last night requires lodash 3 and, judging by the
> test failures, it really does need it and can't be fixdeped.



I apologize for pushing out the updated nodejs-argparse package last night
without thoroughly checking the updated requirements.  I'll be more careful
next time.

--
Jared Smith
___
nodejs mailing list
nodejs@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/nodejs@lists.fedoraproject.org


Re: lodash

2015-12-04 Thread Tom Hughes

On 17/11/15 19:30, Tom Hughes wrote:


On 16/11/15 16:46, Jared K. Smith wrote:


On Sat, Nov 14, 2015 at 10:50 AM, Tom Hughes <t...@compton.nu
<mailto:t...@compton.nu>> wrote:

So, what do people think?


Sounds reasonable to me.


I've knocked up a prototype now:

   https://tomh.fedorapeople.org/lodash.spec
   https://tomh.fedorapeople.org/lodash-3.10.1-1.fc23.src.rpm

The precise details are slightly different than I described because I
was looking at the current head not the 3.10.1 release when I wrote that.


So this has now become rather more urgent because Jared uploaded a new 
version of nodejs-argparse last night requires lodash 3 and, judging by 
the test failures, it really does need it and can't be fixdeped.


Jamie - as you're the owner of nodejs-lodash (the only one of the three 
existing packages that isn't mine) do you have any objection to this plan?


Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
___
nodejs mailing list
nodejs@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/nodejs@lists.fedoraproject.org


Re: lodash-node

2014-08-15 Thread Tom Hughes

On 14/08/14 22:41, T.C. Hollingsworth wrote:

On Tue, Aug 5, 2014 at 11:35 AM, Tom Hughes t...@compton.nu wrote:


What do people think about this approach?


Looks nice.  I was having nightmares about texlive.spec but your lua
magic here is much nicer and easier to see what's going on.  Excellent
work!  Please commit.


I've pushed it in rawhide and F21 now.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
___
nodejs mailing list
nodejs@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/nodejs


Re: lodash-node

2014-04-22 Thread Jamie Nguyen
On 22/04/14 17:39, Tom Hughes wrote:
 On 17/04/14 19:02, Jamie Nguyen wrote:
 
 The lodash-node module can be re-built by doing this:

$ lodash modularize compat -o compat
$ lodash modularize underscore -o underscore
$ lodash modularize modern -o modern

 So you'll probably need to package lodash-cli first, remove
 lodash-node/{compat,modern,underscore}, and rebuild using the above
 commands.

 That's my understanding anyway. I, err, could be wrong about all of the
 above..
 
 I think you're about right, but it turns out there's an extra bit of fun
 here, namely that lodash-cli uses the closure-compiler npm, which is
 just a wrapper for the closure javascript minifier which has already
 been declared unpackagable...


Actually, closure is packaged for rawhide :)

http://koji.fedoraproject.org/koji/packageinfo?packageID=17960


Sadly, I don't think it will make it into Fedora 20 or EPEL 6. It's
blocking on a too-old release of guava:

https://bugzilla.redhat.com/show_bug.cgi?id=1023832


-- 
Jamie Nguyen




signature.asc
Description: OpenPGP digital signature
___
nodejs mailing list
nodejs@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/nodejs


Re: lodash-node

2014-04-17 Thread Jamie Nguyen
On 16/04/14 16:35, Tom Hughes wrote:
 I have an existing package that has a new version with a dependency on
 lodash-node so I was trying to package it but ran into the question of
 exactly what it is and how to deal with it...
 
 We have lodash packaged already and as bast I can figure out lodash-node
 is the result of using lodash-cli to build node modules from lodash.
 Though I'm not sure what that means when lodash is already a node module?!?
 
 In any case does that mean I should package lodash-cli first and then
 make the lodash-node package do that build step?

lodash-cli allows commands like this:

  $ lodash compat
  $ lodash underscore
  $ lodash modern

The file created by each of the above contain a subset of lodash
functionality tailored to whatever preset you've chosen.

lodash-node contains three subsets (compat, underscore, modern), but
splits every single routine/function/method into a separate file. This
allows individual methods to be required:

  var isEqual = require('lodash-node/modern/objects/isEqual');

The lodash-node module can be re-built by doing this:

  $ lodash modularize compat -o compat
  $ lodash modularize underscore -o underscore
  $ lodash modularize modern -o modern

So you'll probably need to package lodash-cli first, remove
lodash-node/{compat,modern,underscore}, and rebuild using the above
commands.

That's my understanding anyway. I, err, could be wrong about all of the
above..


Kind regards,

-- 
Jamie Nguyen




signature.asc
Description: OpenPGP digital signature
___
nodejs mailing list
nodejs@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/nodejs