kn-plugin-workflow
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.
Read the documentation
Build from source
All the commands in this section should be performed in the monorepo root.
Prerequisites
Prerequisites for running integration tests
Installing and linking dependencies
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..."
Building
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>
Plugin/artifact location
The artifact(s) generated by running the above command are placed in the packages/kn-plugin-workflow/dist
directory.
Integration Tests
To build the kn-plugin-workflow
and run integration tests, use the following commands:
export KIE_TOOLS_BUILD__runIntegrationTests=true
pnpm -r -F "@kie-tools/kn-plugin-workflow..." build:prod