forked from coolaj86/node-installer.sh
update docs, add npm modules
This commit is contained in:
parent
71de732501
commit
73e9a6495c
26
README.md
26
README.md
|
@ -2,3 +2,29 @@ node-install-script
|
||||||
===================
|
===================
|
||||||
|
|
||||||
A script to install basic development tools for node (git, node, gcc, etc)
|
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
|
||||||
|
|
19
setup.bash
19
setup.bash
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/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
|
# wget -nv https://ldsconnect.org/setup.bash -O - | bash
|
||||||
|
|
||||||
BASE_URL="https://ldsconnect.org"
|
BASE_URL="https://ldsconnect.org"
|
||||||
|
@ -155,4 +155,21 @@ else
|
||||||
echo "jade already installed"
|
echo "jade already installed"
|
||||||
fi
|
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 ""
|
echo ""
|
||||||
|
|
Loading…
Reference in New Issue