Lines Matching refs:npm
5 # This bbclass builds and installs an npm package to the target. The package
11 # inherit npm
15 # Override the auto generated npm architecture.
32 """Maps arch names to npm arch names"""
46 NPM_PACKAGE = "${WORKDIR}/npm-package"
47 NPM_CACHE = "${WORKDIR}/npm-cache"
48 NPM_BUILD = "${WORKDIR}/npm-build"
49 NPM_REGISTRY = "${WORKDIR}/npm-registry"
52 """Get the npm global configuration"""
61 ## 'npm pack' runs 'prepare' and 'prepack' scripts. Support for
65 """Emulate 'npm pack' on a specified directory"""
80 # TODO: real 'npm pack' does not include directories while 'tar'
94 Step one: configure the npm cache and the main npm package
97 They have to be packed (this remove unneeded files) and added to the npm
109 from bb.fetch2.npm import NpmEnvironment
110 from bb.fetch2.npm import npm_unpack
127 """Return the npm integrity of a specified tarball"""
149 orig_shrinkwrap_file = d.expand("${S}/npm-shrinkwrap.json")
151 cached_shrinkwrap_file = d.expand("${NPM_PACKAGE}/npm-shrinkwrap.json")
185 # Add the dependency to the npm cache
236 Step two: install the npm package
242 A combination of 'npm pack' and 'npm install' is used to ensure that the
244 default npm behavior).
248 from bb.fetch2.npm import NpmEnvironment
282 cmd = "npm install %s %s" % (shlex.quote(tarball), d.getVar("EXTRA_OENPM"))
327 rm -f ${D}/${nonarch_libdir}/node_modules/*/npm-shrinkwrap.json
328 rm -f ${D}/${nonarch_libdir}/node_modules/@*/*/npm-shrinkwrap.json
330 # node(1) is using /usr/lib/node as default include directory and npm(1) is