From e99588429c4ef0f2877bff3b437e73e1a874865a Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Tue, 26 Aug 2014 11:25:31 +0200 Subject: [PATCH] docs(project): update setup scripts --- docs/project/SETUP.bat | 48 --------------------- docs/project/setup.bat | 96 ++++++++++++++++++++++++++++++++++++++++++ docs/project/setup.sh | 5 +++ 3 files changed, 101 insertions(+), 48 deletions(-) delete mode 100644 docs/project/SETUP.bat create mode 100644 docs/project/setup.bat diff --git a/docs/project/SETUP.bat b/docs/project/SETUP.bat deleted file mode 100644 index 161a0fa5..00000000 --- a/docs/project/SETUP.bat +++ /dev/null @@ -1,48 +0,0 @@ -SET BASE=%CD% - -mklink /D %BASE%\bpmn-js\node_modules\diagram-js-direct-editing %BASE%\diagram-js-direct-editing -mklink /D %BASE%\bpmn-js\node_modules\bpmn-js-cli %BASE%\bpmn-js-cli -mklink /D %BASE%\bpmn-js\node_modules\diagram-js %BASE%\diagram-js -mklink /D %BASE%\bpmn-js\node_modules\bpmn-moddle %BASE%\bpmn-moddle -mklink /D %BASE%\bpmn-js\node_modules\ids %BASE%\ids - - -mklink /D %BASE%\bpmn-moddle\node_modules\moddle-xml %BASE%\moddle-xml -mklink /D %BASE%\bpmn-moddle\node_modules\moddle %BASE%\moddle - - -mklink /D %BASE%\moddle-xml\node_modules\moddle %BASE%\moddle - - -mklink /D %BASE%\bpmn-js-cli\node_modules\bpmn-js %BASE%\bpmn-js -mklink /D %BASE%\bpmn-js-cli\node_modules\diagram-js %BASE%\diagram-js - - -mklink /D %BASE%\diagram-js-direct-editing\node_modules\diagram-js %BASE%\diagram-js - - -cd %BASE%\diagram-js -npm install - -cd %BASE%\diagram-js-direct-editing -npm install - -cd %BASE%\moddle -npm install - -cd %BASE%\moddle-xml -npm install - -cd %BASE%\bpmn-moddle -npm install - -cd %BASE%\bpmn-js -npm install - -cd %BASE%\bpmn-js-cli -npm install - -cd %BASE%\ids -npm install - -cd %BASE% \ No newline at end of file diff --git a/docs/project/setup.bat b/docs/project/setup.bat new file mode 100644 index 00000000..4df16b80 --- /dev/null +++ b/docs/project/setup.bat @@ -0,0 +1,96 @@ +@echo off + +rem ### +rem # Setup script to be executed in a bpmn.io project root (some empty folder chosen by YOU) +rem ## + +set BASE=%CD% + +echo cloning repositories + +git clone git@github.com:bpmn-io/diagram-js.git +git clone git@github.com:bpmn-io/diagram-js-direct-editing.git +git clone git@github.com:bpmn-io/moddle.git +git clone git@github.com:bpmn-io/moddle-xml.git +git clone git@github.com:bpmn-io/bpmn-js.git +git clone git@github.com:bpmn-io/bpmn-js-cli.git +git clone git@github.com:bpmn-io/bpmn-moddle.git +git clone git@github.com:bpmn-io/ids.git + +echo done. + + +echo setup diagram-js + +cd %BASE%\diagram-js +npm install + + +echo setup moddle + +cd %BASE%\moddle +npm install + + +echo setup moddle-xml + +cd %BASE%\moddle-xml +mkdir node_modules +mklink /D %BASE%\moddle-xml\node_modules\moddle %BASE%\moddle +npm install + + +echo setup bpmn-moddle + +cd %BASE%\bpmn-moddle +mkdir node_modules +mklink /D %BASE%\bpmn-moddle\node_modules\moddle-xml %BASE%\moddle-xml +mklink /D %BASE%\bpmn-moddle\node_modules\moddle %BASE%\moddle +npm install + + +echo setup diagram-js-direct-editing + +cd %BASE%\diagram-js-direct-editing +mkdir node_modules +mklink /D %BASE%\diagram-js-direct-editing\node_modules\diagram-js %BASE%\diagram-js +npm install + + +echo setup ids + +cd %BASE%\ids +npm install + + +echo prepare setup bpmn-js + +rem link bpmn-js <> bpmn-js-cli (circular dev dependency) + +mkdir %BASE%\bpmn-js\node_modules +mkdir %BASE%\bpmn-js-cli\node_modules + +rem link bpmn-js +mklink /D %BASE%\bpmn-js\node_modules\bpmn-moddle %BASE%\bpmn-moddle +mklink /D %BASE%\bpmn-js\node_modules\diagram-js %BASE%\diagram-js +mklink /D %BASE%\bpmn-js\node_modules\diagram-js-direct-editing %BASE%\diagram-js-direct-editing +mklink /D %BASE%\bpmn-js\node_modules\bpmn-js-cli %BASE%\bpmn-js-cli +mklink /D %BASE%\bpmn-js\node_modules\ids %BASE%\ids + +rem link bpmn-js-cli +mklink /D %BASE%\bpmn-js-cli\node_modules\bpmn-js %BASE%\bpmn-js + + +echo setup bpmn-js + +cd %BASE%\bpmn-js +npm install + + +echo setup bpmn-js-cli + +cd %BASE%\bpmn-js-cli +npm install + + +cd %BASE% \ No newline at end of file diff --git a/docs/project/setup.sh b/docs/project/setup.sh index 33a6ee2a..40d5c654 100644 --- a/docs/project/setup.sh +++ b/docs/project/setup.sh @@ -1,5 +1,9 @@ #!/bin/bash +### +# Setup script to be executed in a bpmn.io project root (some empty folder chosen by YOU) +### + base=`pwd` echo cloning repositories @@ -15,6 +19,7 @@ git clone git@github.com:bpmn-io/ids.git > /dev/null echo done. + echo setup diagram-js cd $base/diagram-js