]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: create: support node.js code outside of npm
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 5 Sep 2016 03:58:01 +0000 (15:58 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Sep 2016 23:36:43 +0000 (00:36 +0100)
commit4fb8b399c05a1b66986fc76e13525f6c5e0d9b58
treebe6183ab3a3871fd2ef1b3f946dee8875d55c321
parentf0d6f4b7e87ea781ac0dffcc8d0310570975811b
recipetool: create: support node.js code outside of npm

If you have your own node.js application you may not publish it (or at
least not immediately) in an npm registry - it might just be in a
repository on github or on your local machine. Add support to recipetool
create for creating recipes to build such applications - extract their
dependencies, fetch them, and add corresponding npm:// URLs to SRC_URI,
and ensure that LICENSE / LIC_FILES_CHKSUM are updated to match. For
example, you can now run:

  recipetool create https://github.com/diversario/node-ssdp

(I had to borrow some code from bitbake/lib/bb/fetch2/npm.py to
implement this functionality; this should be refactored out but now
isn't the time to do that refactoring.)

Part of the fix for [YOCTO #9537].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/npm.bbclass
scripts/lib/recipetool/create_npm.py