]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: create: add basic support for new npm fetcher/class
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 29 Feb 2016 11:48:26 +0000 (00:48 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Mar 2016 23:08:06 +0000 (23:08 +0000)
commit41d0e4d75f13b53a6c1b6a8df9be4742be7534e0
tree6b8882c8fdc8c355fedd45e53709cdc92598fcc6
parent39cab544b80ca4450106c9ede3180929ba24703c
recipetool: create: add basic support for new npm fetcher/class

Add detection for npm modules and support for extracting the name and
version from package.json as is usually part of an npm module contents.

Note: this will likely only produce a buildable recipe if you use an
npm:// URL; simply pointing to a node.js source repository isn't going
to fetch the module's dependencies. It also doesn't set up the
shrinkwrap/lockdown automatically, so there is some room for improvement
later.

Implements [YOCTO #8690].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/recipetool/create_npm.py [new file with mode: 0644]