forked from Strider-CD/strider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·28 lines (20 loc) · 761 Bytes
/
dev.sh
File metadata and controls
executable file
·28 lines (20 loc) · 761 Bytes
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
#!/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=$(node -e "var _ = require('lodash'), deps = _.keys(require('./package').dependencies); console.log(_.filter(deps, function(i){ return /^strider-/.test(i) }).join(' '));")
BASE="git@github.com:/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!"