Re: [yocto] devtool add ignores "devDependencies" from package.json when generates npm-shrinkwrap.json file

2020-08-28 Thread Cardenas Jose Antonio (JCARDENA)
Yes, it worked! Thank you very much!

From: Jean-Marie Lemetayer 
Sent: jueves, 27 de agosto de 2020 14:41
To: Cardenas Jose Antonio (JCARDENA) 
Cc: yocto@lists.yoctoproject.org
Subject: Re: [yocto] devtool add  ignores "devDependencies" from 
package.json when generates npm-shrinkwrap.json file


CAUTION: This email originated from outside the organization. Do not click on 
links or open attachments unless you recognize the sender and know the content 
is safe.
Hi Jose,

You have to use devtool with the --npm-dev option.

Best regards,
Jean-Marie

On Thu, Aug 27, 2020 at 12:47 PM Cardenas Jose Antonio (JCARDENA) 
mailto:joseantonio.carde...@niko.eu>> wrote:
Hi all,

Trying to create a recipe from scratch with “devtool add” tool, a 
npm-shrinkwrap.json file is created from reading of package.json from the 
module that is going to be installed.

The building goes fine but I can’t run the application in the target because 
nodejs misses the modules placed in “devDependencies” from package.json.
I have tried to include NPM_INSTALL_DEV = "1" in the recipe but I get an error 
because the modules that appears in “devDependencies” from package.json are not 
included in npm-shrinkwrap.json.

There is any way to regenerate npm-shrinkwrap.json with devtool taking in 
account devdependencies or a way to create npm-shrinkwrap.json with “devtool 
add” in a way that takes in account devDependencies?

Regards
Jose

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50398): https://lists.yoctoproject.org/g/yocto/message/50398
Mute This Topic: https://lists.yoctoproject.org/mt/76448481/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [yocto] devtool add ignores "devDependencies" from package.json when generates npm-shrinkwrap.json file

2020-08-27 Thread Jean-Marie Lemetayer
Hi Jose,

You have to use devtool with the --npm-dev option.

Best regards,
Jean-Marie

On Thu, Aug 27, 2020 at 12:47 PM Cardenas Jose Antonio (JCARDENA) <
joseantonio.carde...@niko.eu> wrote:

> Hi all,
>
>
>
> Trying to create a recipe from scratch with “devtool add” tool, a
> npm-shrinkwrap.json file is created from reading of package.json from the
> module that is going to be installed.
>
>
>
> The building goes fine but I can’t run the application in the target
> because nodejs misses the modules placed in “devDependencies” from
> package.json.
>
> I have tried to include NPM_INSTALL_DEV = "1" in the recipe but I get an
> error because the modules that appears in “devDependencies” from
> package.json are not included in npm-shrinkwrap.json.
>
> There is any way to regenerate npm-shrinkwrap.json with devtool taking in
> account devdependencies or a way to create npm-shrinkwrap.json with
> “devtool add” in a way that takes in account devDependencies?
>
>
>
> Regards
>
> Jose
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50389): https://lists.yoctoproject.org/g/yocto/message/50389
Mute This Topic: https://lists.yoctoproject.org/mt/76448481/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[yocto] devtool add ignores "devDependencies" from package.json when generates npm-shrinkwrap.json file

2020-08-27 Thread Cardenas Jose Antonio (JCARDENA)
Hi all,

Trying to create a recipe from scratch with "devtool add" tool, a 
npm-shrinkwrap.json file is created from reading of package.json from the 
module that is going to be installed.

The building goes fine but I can't run the application in the target because 
nodejs misses the modules placed in "devDependencies" from package.json.
I have tried to include NPM_INSTALL_DEV = "1" in the recipe but I get an error 
because the modules that appears in "devDependencies" from package.json are not 
included in npm-shrinkwrap.json.

There is any way to regenerate npm-shrinkwrap.json with devtool taking in 
account devdependencies or a way to create npm-shrinkwrap.json with "devtool 
add" in a way that takes in account devDependencies?

Regards
Jose
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50386): https://lists.yoctoproject.org/g/yocto/message/50386
Mute This Topic: https://lists.yoctoproject.org/mt/76448481/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-