Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.88 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.88 KB

Silvermine Serverless Utilities

NPM Version License Build Status Coverage Status

What is it?

This is a collection of utilities that might be useful to you if you are using the Serverless framework.

How do I use it?

Each utility is a little different. Here are some examples:

Get Code Version

If you want to use the current git repo code version as a variable in your serverless.yml file, you can do the following:

provider:
   name: aws
   runtime: nodejs4.3
   environment:
      CODE_VERSION: ${file(./node_modules/@silvermine/serverless-utils/src/get-code-version.js):both}
      CODE_HASH: ${file(./node_modules/@silvermine/serverless-utils/src/get-code-version.js):hash}
      CODE_TAG: ${file(./node_modules/@silvermine/serverless-utils/src/get-code-version.js):tag}

How do I contribute?

We genuinely appreciate external contributions. See our extensive documentation on how to contribute.

License

This software is released under the MIT license. See the license file for more details.