forked from Strider-CD/strider
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dev.sh
executable file
·31 lines (22 loc) · 871 Bytes
/
dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# simple script to set up an environment to hack on.
# installs all strider-* deps as git clone's from the master branch.
# you can hack on them by editing under node_moduldes/strider-foo
DEPS="strider-custom strider-python strider-node strider-env strider-sauce strider-simple-runner strider-extension-loader strider-github strider-ruby"
# NOTE: There are other modules we should make sure work with 1.4 too:
# DEPS="$DEPS strider-jelly strider-qunit strider-browserstack"
BASE="[email protected]:/Strider-CD"
mkdir -p node_modules
for module in $DEPS
do
if [ "$1" = "up" ]
then
(cd ../$module && git pull && rm -rf node_modules && npm i)
else
git clone $BASE/$module ../$module
(cd ../$module && npm install)
npm link ../$module
fi
done
npm i
echo "> Strider is set up! Hack on modules under node_modules. They are git repos!"