The nodejs plugin
Additional features and syntax are dependent on which base is being used, as outlined below:
The plugin uses node to install dependencies from
package.json. It also sets up binaries defined in
package.json by adding them to
This plugin uses the common plugin keywords as well as those for “sources”. For more information, see Snapcraft parts metadata.
base: core18 | core
This plugin uses the following plugin-specific keywords:
nodejs-version(string; default: 8.12.0)
The version of node.js you want the snap to run on. For example:
nodejs-package-manager(string; default: yarn)
The language package manager to use to drive installation of node packages. Can be either
The version of the yarn package manager to use to drive installation of node packages. Currently, this must start with a v, for example:
For examples, search GitHub for projects already using the plugin.
Requires Snapcraft version 3.x.
Last updated 1 year, 16 days ago.