BitBake 1.26 (Yocto 1.8) layer adding fetch support for Node.js NPM repositories.
Adds support for npm://<package name>;version=<package version>
in recipe SRC_URI
.
-
Add
bitbake-npm
layer tosources/layers.txt
bitbake-npm,git://github.com/imyller/bitbake-npm.git,master,HEAD
-
Add
bitbake-npm
layer toEXTRALAYERS
inconf/bblayers.conf
EXTRALAYERS +=" \ ${TOPDIR}/sources/bitbake-npm \ "
-
Run
oebb.sh update
-
Inherit
npm-fetch
class in recipeinherit npm-fetch
-
Use
npm://
URI sources in the recipeSRC_URI
SRC_URI = "npm://forever;version=0.11.1"
Note: defining a version
is optional