kn-plugin-workflow
is a plugin of the Knative Client, to enable users to quickly set up a local SonataFlow project from the command line.
All the commands in this section should be performed in the monorepo root.
- Node
>= 18.14.0
(To install, follow these instructions: https://nodejs.org/en/download/package-manager/) - pnpm
8.7.0
(To install, follow these instructions: https://pnpm.io/installation) - Go
1.21.5
(To install, follow these instructions: https://go.dev/doc/install)
- docker (To install, follow these instructions: https://docs.docker.com/engine/install)
- podman (To install, follow these instructions: https://podman.io/docs/installation)
The following command will install the kn-plugin-workflow
dependencies and link it with any other monorepo
package that is listed in the package.json
:
pnpm bootstrap -F "@kie-tools/kn-plugin-workflow..."
It has two different strategies to build the kn-plugin-workflow
:
build:dev
(The build will generate one artifact that is compatible with your local machine)build:prod
(The build will generate artifacts for all available architecture and run the available tests)
To build the kn-plugin-workflow
run the following command:
pnpm -r -F "@kie-tools/kn-plugin-workflow..." <build-strategy>
The artifact(s) generated by running the above command are placed in the packages/kn-plugin-workflow/dist
directory.
To build the kn-plugin-workflow
and run end-to-end tests, use the following commands:
export KIE_TOOLS_BUILD__runEndToEndTests=true
pnpm -r -F "@kie-tools/kn-plugin-workflow..." build:prod