2.0.0 • Published 5 months ago

@cubesoft/nx-lambda-build v2.0.0

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

nx-lambda-build

Getting started

Prerequisite

This module is based on Nx, you will need to set up an Nx workspace before you can use nx-cdk.

npx create-nx-workspace

Installation

npm i -D @cubesoft/nx-lambda-build

Creating a nx-lambda-build project

nx g @cubesoft/nx-lambda-build:nx-lambda-build <name> [--dry-run]

Build a lambda handler

Run the command below to build your lambda handler and generate a package.json file with all used packages.

nx build <project> [--configuration <configuration name>] # Provide a specific build configuration

Project options

"targets": {
    "build": {
        "executor": "@cubesoft/nx-lambda-build:build",
        "options": {
            "target": "node16",
            "architecture": "arm64",
            "platform": "linux",
            "installModules": true
        }
    }
}

target: esbuild build target architecture: esbuild target architecture platform: npm install platform installModules: whether node_modules should be installed and bundled with the handler zip package

Add a new lambda handler (currently not working)

Run the command below to add a new lambda handler. This will automatically add the required entrypoint in the handlers.json file for you.

nx g @cubesoft/nx-lambda-build:handler <path> [--dry-run]
2.0.0

5 months ago

1.0.0

12 months ago

0.21.0

1 year ago

0.20.0

1 year ago

0.19.0

1 year ago

0.34.0

1 year ago

0.33.0

1 year ago

0.16.0

1 year ago

0.17.0

1 year ago

0.32.0

1 year ago

0.31.0

1 year ago

0.30.0

1 year ago

0.29.0

1 year ago

0.28.0

1 year ago

0.27.0

1 year ago

0.26.0

1 year ago

0.25.0

1 year ago

0.24.0

1 year ago

0.23.0

1 year ago

0.22.0

1 year ago

0.13.0

1 year ago

0.14.0

1 year ago

0.10.0

2 years ago

0.11.0

2 years ago

0.9.0

2 years ago

0.12.0

2 years ago

0.8.0

2 years ago