0.0.5 • Published 5 months ago
@plastic-ant/nx-cdk-local v0.0.5
@plastic-ant/nx-cdk-local
An Nx (Project Crystal) plugin for developing with the AWS CDK Local(Stack)
Table of Contents
Install
# npm
npm install --save-dev @plastic-ant/nx-cdk-local
# yarn
yarn add --dev @plastic-ant/nx-cdk-localUsage
For using the inferred tasks (Project Crystal) add the plugin to your nx.json config:
"plugins": [
{
"plugin": "@plastic-ant/nx-cdk-local",
"options": {
synthTargetName (optional) generated target synth, default cdk-local-synth
deployTargetName (optional) generated target deploy, default cdk-local-deploy
bootstrapTargetName (optional) generated target bootstrap, default cdk-local-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-local:bootstrap",
"options": {
"postTargets": []
}
},
"synth": {
"executor": "@plastic-ant/nx-cdk-local:synth",
"options": {
"postTargets": ["{projectName}:postSynth"]
}
},
"deploy": {
"executor": "@plastic-ant/nx-cdk-local:deploy",
"options": {
"postTargets": ["sendSQS"]
}
}
}
...License
This project is MIT licensed 2024 Plastic Ant Software