update docs, add npm modules

This commit is contained in:
AJ ONeal 2014-12-21 17:36:52 -07:00
parent 71de732501
commit 73e9a6495c
2 changed files with 44 additions and 1 deletions

View File

@ -2,3 +2,29 @@ node-install-script
===================
A script to install basic development tools for node (git, node, gcc, etc)
Works for any recent version of Ubuntu or OS X.
```bash
curl -fsSL bit.ly/easy-install-node | bash
# For older version of ubuntu
wget -nv bit.ly/easy-install-node -O - | bash
```
This is what gets installed:
* fail2ban (not necessary for development, but should be on every server)
* rsync
* curl
* wget
* git
* xcode / build-essential / gcc
* node
* jshint
* bower
* uglifyjs
* yo
* jade
* less

View File

@ -1,6 +1,6 @@
#!/bin/bash
# curl -s https://ldsconnect.org/setup.bash | bash
# curl -fsSL https://ldsconnect.org/setup.bash | bash
# wget -nv https://ldsconnect.org/setup.bash -O - | bash
BASE_URL="https://ldsconnect.org"
@ -155,4 +155,21 @@ else
echo "jade already installed"
fi
# less
if [ -z "$(which lessc | grep lessc)" ]; then
echo "installing lessc..."
npm install --silent less -g > /dev/null
else
echo "lessc already installed"
fi
# uglifyjs
if [ -z "$(which uglifyjs | grep uglifyjs)" ]; then
echo "installing uglifyjs..."
npm install --silent uglify-js -g > /dev/null
else
echo "uglifyjs already installed"
fi
echo ""