@plastic-ant/nx-cdk
TypeScript icon, indicating that this package has built-in type declarations

0.9.2 • Public • Published

@plastic-ant/nx-cdk

MIT license Npm package version Downloads

An Nx (Project Crystal) plugin for developing with the aws-cdk

Table of Contents

Install

# npm
npm install --save-dev @plastic-ant/nx-cdk

# yarn
yarn add --dev @plastic-ant/nx-cdk

Usage

For using the inferred tasks (Project Crystal) add the plugin to your nx.json config:

"plugins": [
    {
      "plugin": "@plastic-ant/nx-cdk",
      "options": {
          synthTargetName     (optional) generated target synth, default cdk-synth
          deployTargetName    (optional) generated target deploy, default cdk-deploy
          bootstrapTargetName (optional) generated target bootstrap, default cdk-bootstrap
       }
    }
]

Included executors

Each executor has options that mirror the same cdk CLI command with the addtional of postTargets to be run synchronously.

"targets": {
      "bootstrap": {
        "executor": "@plastic-ant/nx-cdk:bootstrap",
        "options": {
          "postTargets": []
        }
      },
      "synth": {
        "executor": "@plastic-ant/nx-cdk:synth",
        "options": {
          "postTargets": ["{projectName}:postSynth"]
        }
      },
      "deploy": {
        "executor": "@plastic-ant/nx-cdk:deploy",
        "options": {
          "postTargets": ["sendSQS"]
        }
      }
    }
    ...

License

This project is MIT licensed 2024 Plastic Ant Software

Links

Package Sidebar

Install

npm i @plastic-ant/nx-cdk

Weekly Downloads

18

Version

0.9.2

License

MIT

Unpacked Size

36 kB

Total Files

16

Last publish

Collaborators

  • pas-mike