Warning
This is an experimental library and not officially supported / endorsed by bpmn.io.
Apply element templates on BPMN elements in your terminal.
npm install --global element-templates-cli
element-templates-cli --diagram diagram.bpmn --template template.json --element ServiceTask --output diagram_2.bpmn
Prepare the project by installing all dependencies:
npm install
Then, depending on your use-case, you may run any of the following commands:
# run linter, build, and test the library
npm run all
# lint
npm run lint
# build
npm run build
# test
npm test
MIT