@sheertex/infra-devops

devops tooling

Usage no npm install needed!

<script type="module">
  import sheertexInfraDevops from 'https://cdn.skypack.dev/@sheertex/infra-devops';
</script>

README

infra-devops

Devops tooling for Sheertex repos

Quickstart

Installation

yarn add -D @sheertex/infra-devops

Usage

Publishing AWS lambda functions

Add publish script to package.json file of your project

"scripts": {
    "deploy:lambda": "publish lambda",
    ...
  },

Execute script when you want to publish your lambda functions

yarn run deploy:lambda

All files that have *.lambda.js or *.lambda.ts in their name will be published.

Contributing

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • cd infra-devops
  • yarn install

Running locally

  • yarn launch:dev <args>
  • yarn build && yarn launch:prod <args>

Publishing new version

  • yarn test (make sure all tests passed)
  • Bump version in the package.json
  • npm publish --access public