Re: [OE-core] npm class usage

2016-05-05 Thread Fabio Berton
Yes, this patch fix this problem. Thanks! On Thu, May 5, 2016 at 3:13 PM, Paul Eggleton wrote: > Right, this is the problem Brendan was describing - I believe I sent a > patch > to fix this already: > > http://patchwork.openembedded.org/patch/121039/ > > Cheers, > Paul > > On Thu, 05 May 2016 0

Re: [OE-core] npm class usage

2016-05-05 Thread Paul Eggleton
Right, this is the problem Brendan was describing - I believe I sent a patch to fix this already: http://patchwork.openembedded.org/patch/121039/ Cheers, Paul On Thu, 05 May 2016 09:51:53 Fabio Berton wrote: > Hi Paul, > > When running: > recipetool create "npm://registry.npmjs.org;name=grunt-

Re: [OE-core] npm class usage

2016-05-05 Thread Fabio Berton
Hi Paul, When running: recipetool create "npm://registry.npmjs.org;name=grunt-cli;version=1.1.0" I get this error: NOTE: Unpacking abbrev-1.0.7.tgz to /tmp/recipetool-tXXZDi/npmpkg/node_modules/nopt/node_modules/abbrev/ Traceback (most recent call last): File "sources/openembedded-core/scripts

Re: [OE-core] npm class usage

2016-05-05 Thread Brendan Le Foll
On Thu, May 05, 2016 at 07:10:43PM +1200, Paul Eggleton wrote: > Note also that devtool add / recipetool create are capable of creating pretty > complete recipes for npm packages where licenses are also correctly set per > package (so you get them in the image manifest). I'd strongly recommend us

Re: [OE-core] npm class usage

2016-05-05 Thread Paul Eggleton
Note also that devtool add / recipetool create are capable of creating pretty complete recipes for npm packages where licenses are also correctly set per package (so you get them in the image manifest). I'd strongly recommend using it for this; if you have any issues please let me know. Cheers,

Re: [OE-core] npm class usage

2016-05-04 Thread Fabio Berton
I think that meta-brendan-nodepkgs link could be on npm.bbclass file as documentation and example of use, would be helpfully. On Wed, May 4, 2016 at 2:06 PM, Brendan Le Foll wrote: > On Wed, May 04, 2016 at 02:01:40PM -0300, Fabio Berton wrote: > >Yes, it helps. > >Now I see my error...

Re: [OE-core] npm class usage

2016-05-04 Thread Brendan Le Foll
On Wed, May 04, 2016 at 02:01:40PM -0300, Fabio Berton wrote: >Yes, it helps. >Now I see my error... I need to use >SRC_URI = "npm://[1]registry.npmjs.org;name=${PN};version=${PV}" >My recipe it's getting sources from github and not from registry. >Thanks! No problem. FYI I hav

Re: [OE-core] npm class usage

2016-05-04 Thread Fabio Berton
Yes, it helps. Now I see my error... I need to use SRC_URI = "npm://registry.npmjs.org;name=${PN};version=${PV}" My recipe it's getting sources from github and not from registry. Thanks! On Wed, May 4, 2016 at 12:07 PM, Brendan Le Foll wrote: > On Wed, May 04, 2016 at 11:53:08AM -0300, Fabio B

Re: [OE-core] npm class usage

2016-05-04 Thread Brendan Le Foll
On Wed, May 04, 2016 at 11:53:08AM -0300, Fabio Berton wrote: >Hi Brendan, >Thanks for reply. >I'm trying to use npm class with this layer >[1]https://github.com/imyller/meta-nodejs >For example, I changed this recipe >[2]https://github.com/imyller/meta-nodejs/blob/master/re

Re: [OE-core] npm class usage

2016-05-04 Thread Fabio Berton
Hi Brendan, Thanks for reply. I'm trying to use npm class with this layer https://github.com/imyller/meta-nodejs For example, I changed this recipe https://github.com/imyller/meta-nodejs/blob/master/recipes/grunt/grunt-cli_1.1.0.bb to use npm class provided by oe-core and removed all classes fro

Re: [OE-core] npm class usage

2016-05-04 Thread Brendan Le Foll
On Tue, May 03, 2016 at 01:24:49PM -0300, Fabio Berton wrote: >Hi all! >I'm trying to install some recipes that use npm class and I have two >questions. >1 - Why use S = "${WORKDIR}/npmpkg"? This not work for me. That's surprising the fetcher basically extracts it that way so the c

[OE-core] npm class usage

2016-05-03 Thread Fabio Berton
Hi all! I'm trying to install some recipes that use npm class and I have two questions. 1 - Why use S = "${WORKDIR}/npmpkg"? This not work for me. 2 - Using option --no-registry inside npm_do_compile task I get this error: | npm ERR! Registry not defined and registry files not found: "/home/use