kennu / serverless-plugin-autoinstall

Automatically runs npm install in each Component folder before deploying functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoInstall Plugin for Serverless

Kenneth Falck kennu@iki.fi 2016

This is a plugin that automatically runs npm install under each Serverless Component when functions are deployed. This ensures that you don't accidentally deploy a component without a node_modules folder, or with out-of-date dependencies in node_modules when package.json has been modified.

Installation

First install the plugin into your Serverless project:

npm install --save serverless-plugin-autoinstall

Then edit your s-project.json, locate the plugins: [] section, and add the plugin as follows:

plugins: [
    "serverless-plugin-autoinstall"
]

About

Automatically runs npm install in each Component folder before deploying functions


Languages

Language:JavaScript 100.0%