0.0.1 • Published 4 years ago

@flowaccount/serverless v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@nx/serverless

Angular CLI Builders for Serverless Framework projects, designed for use alongside nx

Why

nx superpowers the angular CLI, to add support for a range of backend project types.

However, what if your backend uses Serverless?

This project includes builders for that!

  • @nx/Serverless:build - builds your functions and layers
  • @nx/Serverless:package - packages your Serverless template ready for deployment
  • @nx/Serverless:deploy - deploys your CloudFormation template

@nx/Serverless:build

Add the following to your angular.json

{
    "api": {
        "root": "apps/api",
        "sourceRoot": "apps/api/src",
        "projectType": "application",
        "prefix": "api",
        "schematics": {},
        "architect": {
            "build": {
                "builder": "@nx/Serverless:build",
                "options": {
                    "outputPath": "dist/apps/api",
                    "template": "apps/api/template.yaml",
                    "tsConfig": "apps/api/tsconfig.app.json"
                },
            ...
            }
        }
    }
}