From 73e9a6495c7d500ee7e51d5065ffb8e26c5537b1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 21 Dec 2014 17:36:52 -0700 Subject: [PATCH] update docs, add npm modules --- README.md | 26 ++++++++++++++++++++++++++ setup.bash | 19 ++++++++++++++++++- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fda205a..c663bce 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/setup.bash b/setup.bash index e4edbd6..e455e94 100644 --- a/setup.bash +++ b/setup.bash @@ -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 ""