The nodejs plugin

The nodejs plugin is useful for node/npm based parts.

The plugin uses node to install dependencies from package.json. It also sets up binaries defined in package.json into the PATH.

Plugin-specific keywords

- node-packages:
  (list)
  A list of dependencies to fetch using npm.
- node-engine:
  (string)
  The version of nodejs you want the snap to run on.
- npm-run:
  (list)
  A list of targets to `npm run`.
  These targets will be run in order, after `npm install`

Examples