Re: [OE-core] npm thoughts

2017-03-05 Thread Anders Darander
* Trevor Woerner [170228 19:01]: > Ideally "devtool add ..." wouldn't choke and crash when it encounters a > LICENSE string it doesn't understand. When parsing license strings from random > places on The Internet it's inevitable odd things will come up :-) I recently also stumbled upon this. I'v

Re: [OE-core] npm thoughts

2017-03-03 Thread Alexander Kanavin
On 03/03/2017 12:45 PM, Josef Holzmayr wrote: - Given the current situation, the best practise seems to be to have package.json take care of the needed modules, and have it handle that. Means in my opinion that there should be as little npm-based stuff installed as possible. Exactly one, in the o

Re: [OE-core] npm thoughts

2017-03-03 Thread Josef Holzmayr
Additional packaging/dependency thoughts: Using the devtool mechanism to create a recipe basically packs up all dependencies. While this is a relatively easy solution to make sure that the resulting package is functional, I can see some issues: - Dependency tracking via bitbake is virtually non

Re: [OE-core] npm thoughts

2017-03-03 Thread Josef Holzmayr
Hi Trevor, On 28.02.2017 19:00, Trevor Woerner wrote: Ideally "devtool add ..." wouldn't choke and crash when it encounters a LICENSE string it doesn't understand. When parsing license strings from random places on The Internet it's inevitable odd things will come up :-) Yeah, it even seems to

Re: [OE-core] npm thoughts

2017-02-28 Thread Trevor Woerner
In face-to-face conversations there was an expressed opinion that it would be great if npm had a "--dry-run" -type option to list off the dependencies of a package.json file. As it turns out, it does! $ npm install --dry-run electron-quick-start@1.0.0 /z/npm/source/electron-quick-

Re: [OE-core] npm thoughts

2017-02-28 Thread Trevor Woerner
Ideally "devtool add ..." wouldn't choke and crash when it encounters a LICENSE string it doesn't understand. When parsing license strings from random places on The Internet it's inevitable odd things will come up :-) -- ___ Openembedded-core mailing lis

Re: [OE-core] npm thoughts

2017-02-28 Thread Trevor Woerner
My first thought is that "devtool add ..." shouldn't act differently depending on whether it is pointed at a checkout of the code or whether it is pointed at the code's npm repository. -- ___ Openembedded-core mailing list Openembedded-core@lists.openemb

[OE-core] npm thoughts

2017-02-27 Thread Trevor Woerner
Hi, I was trying out devtool+npm with the electron quick-start node stuff and noticed some interesting results. This simple app can be found at https://github.com/electron/electron-quick-start According to https://wiki.yoctoproject.org/wiki/TipsAndTricks/NPM there are two ways to create a recipe