@plastic-ant/nx-cdktf
v0.8.8
Published
An Nx (Project Crystal) plugin for developing with the cdktf
Maintainers
Readme
@plastic-ant/nx-cdktf
An Nx (Project Crystal) plugin for developing with the cdktf
Table of Contents
Install
# npm
npm install --save-dev @plastic-ant/nx-cdktf
# yarn
yarn add --dev @plastic-ant/nx-cdktfUsage
For using the inferred tasks (Project Crystal) add the plugin to your nx.json config:
"plugins": [
{
"plugin": "@plastic-ant/nx-cdktf",
"options": {
synthTargetName (optional) generated target synth, default cdktf-synth
deployTargetName (optional) generated target deploy, default cdktf-deploy
getTargetName (optional) generated target get, default cdktf-get
}
}
]Included executors
Each executor has options that mirror the same cdktf CLI command with the addtional of postTargets to be run synchronously.
"targets": {
"get": {
"executor": "@plastic-ant/nx-cdktf:get",
"options": {
"postTargets": []
}
},
"synth": {
"executor": "@plastic-ant/nx-cdktf:synth",
"options": {
"postTargets": ["{projectName}:postSynth"]
}
},
"deploy": {
"executor": "@plastic-ant/nx-cdktf:deploy",
"options": {
"postTargets": ["sendSQS"]
}
}
}
...License
This project is MIT licensed 2024 Plastic Ant Software
