fruffin / serverless-dotnet

A serverless plugin to run 'dotnet' commands as part of the deploy process

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless DotNet

serverless npm version license

A Serverless v1.0 plugin to build your C# lambda functions on deploy.

This plugin is for you if you don't want to have to run dotnet restore, dotnet publish and zip the output manually every time you want to deploy.

Install

npm install serverless-dotnet

Add the plugin to your serverless.yml file:

plugins:
  - serverless-dotnet

And that's all there is to it. From this point, dotnet restore and dotnet publish will run as part of each serverless deploy run and the output will be zipped into the .serverless folder of your service, as it would for other runtimes.

Note

If you are using the aws-csharp service template, you will need to remove the following line from your serverless.yml file as these are not needed any more:

package:
 artifact: bin/Release/netcoreapp1.0/publish/deploy-package.zip

About

A serverless plugin to run 'dotnet' commands as part of the deploy process

License:MIT License


Languages

Language:JavaScript 100.0%