Created
June 18, 2011 16:34
-
-
Save dgmike/1033253 to your computer and use it in GitHub Desktop.
Install Lessjs + CSSLint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# pre install | |
sudo apt-get install g++ curl libssl-dev apache2-utils | |
sudo apt-get install git-core | |
sudo apt-get install python-software-properties | |
# install nodejs | |
sudo add-apt-repository ppa:jerome-etienne/neoip | |
sudo apt-get update | |
sudo apt-get install nodejs | |
# install npm | |
curl http://npmjs.org/install.sh | sudo sh | |
# install lessjs | |
cd /opt | |
sudo npm install less | |
cd /usr/local/bin/ | |
sudo ln -s /opt/node_modules/less/bin/lessc . | |
# use it! | |
# lessc [file] | |
# install csslint | |
sudo npm install -g csslint | |
# use it! | |
# csslint [file] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2019 Using Debian, as root