@kalix-io/kalix-scripts
v1.1.0
Published
Create a Kalix entity codebase with a single command.
Downloads
24
Keywords
Readme
kalix-scripts
This package includes scripts and configuration used by the create-kalix-entity
tool.
Configuration is pulled from the config
section of your project's package.json
, and the command will fail if any required configuration is not present. For example:
{
...
"config": {
"dockerImage": "my-docker-repo/my-image",
"sourceDir": "./src",
"testSourceDir": "./test",
"protoSourceDir": "./proto",
"generatedSourceDir": "./lib/generated",
"compileDescriptorArgs": []
},
...
}
Install
On install, this downloads the latest version of the JavaScript codegen CLI
Scripts
Build
- Builds Protobuf descriptor file
- Runs Kalix JS codegen
Package
- Builds Docker image of the service
Deploy
- Deploys Docker image to specified repository
- Invokes Kalix deploy via
kalix
CLI