Seed provides first-class support for Node.js projects. We currently support:
- Node.js 18.x, 16.x, 14.x, 12.x, 10.x, 8.10, & 6.10
- Dependencies built using npm. We also support private npm modules.
- Unit tests via the
npm run testcommand. You can read more on running tests here.
- Most common Serverless plugins including, Serverless Webpack.
Seed auto-detects the package manager. If a
yarn.lock is found then Yarn will be used, And if
package-lock.json is found then npm will be used. If neither are found then Seed defaults to npm.
npm 7 has a couple of breaking changes, including a new lockfile format. This means that the new lockfile is incompatible with previous versions of npm. To help with this transition, if Seed detects the newer lockfile format, it’ll automatically use npm 7 to install the dependencies.
We also have a popular starter project you can use - Serverless Node.js Starter.