bpmn-js/docs/project/setup.sh
MaxTru 2e9f04aa86
fix(devSetup): build bpmn-moddle in context of devSetup
* This will ensure that `npm run start` actually works after executing the setup script
2022-03-01 13:37:32 +01:00

43 lines
561 B
Bash

#!/bin/bash
###
# Setup script to be executed in a bpmn.io project root (some empty folder chosen by YOU)
###
base=`pwd`
echo cloning repositories
git clone git@github.com:bpmn-io/diagram-js.git
git clone git@github.com:bpmn-io/bpmn-js.git
git clone git@github.com:bpmn-io/bpmn-moddle.git
echo done.
echo setup diagram-js
cd $base/diagram-js
npm install
echo setup bpmn-moddle
cd $base/bpmn-moddle
npm install
npm run build
echo setup bpmn-js
cd $base/bpmn-js
npm install
npm link ../diagram-js
npm link ../bpmn-moddle
cd $base
echo all done.