JSPM

  • Created
  • Published
  • Downloads 227
  • Score
    100M100P100Q103261F
  • License MIT

Serverless plugin for nx

Package Exports

  • @flowaccount/nx-serverless

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@flowaccount/nx-serverless) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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"
                },
            ...
            }
        }
    }
}

deploy

tsc npm publish --access=public