forked from hicapacity/nodejs-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (25 loc) · 797 Bytes
/
install.sh
File metadata and controls
executable file
·29 lines (25 loc) · 797 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
29
#!/bin/bash
# Check for NPM
type -P npm &>/dev/null || { echo ">>> NPM not installed. Please install using: curl http://npmjs.org/install.sh | sh" >&2; exit 1; }
# Install dependencies (too lazy to figure out exact versions)
npm install express@2.3.12
npm install request@1.9.8
npm install redis@0.6.0
npm install socket.io@0.7.2
npm install node-static@0.5.6
npm install oauth@0.9.1
npm install cron@0.1.2
npm install htmlparser@1.7.3
npm install twitter-node@0.0.2
npm install ejs@0.4.3
npm install jade@0.14.1
# Create symlink in all directories
DIRS=$(find `pwd` -d 1 -type d \( -not -iname ".*" -and -not -iname "node_modules" \))
for dir in $DIRS
do
if [ -h $dir/node_modules ]
then
rm $dir/node_modules
fi
ln -s `pwd`/node_modules $dir/node_modules
done