@jet-cdk/jet-nx
v0.2.3
Published
Nx plugin to support Jet, a lightweight toolkit for developing serverless apps with the AWS CDK.
Downloads
9
Readme
jet-nx
Nx support for @jet-cdk/jet
Usage
Install
npm install -D @jet-cdk/jet-nx
Generate
To generate a new app using jet:
nx g @jet-cdk/jet-nx:jet-cdk-app
To add jet tasks and a basic ts-focused config file to your existing cdk app:
nx g @jet-cdk/jet-nx:add-to-cdk-app
It is recommended to set some default stages in the jet config file to avoid having to pass them in repeatedly.
List stages
After generating to list stages:
nx list-stages my-app
Develop
To enter the development workflow:
nx dev my-app --stage=dev-chris
You may also add varying configurations to your workspace.json, running against different stages and stacks
Deploy
nx deploy my-app --stage=production
The original cdk deploy
target is renamed to cdk-deploy
.