docs(project): update setup scripts

This commit is contained in:
Nico Rehwaldt 2014-08-26 11:25:31 +02:00
parent 6b2ab71779
commit e99588429c
3 changed files with 101 additions and 48 deletions

View File

@ -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%

96
docs/project/setup.bat Normal file
View File

@ -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%

View File

@ -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