Last active
December 30, 2015 05:09
-
-
Save sobi3ch/7780753 to your computer and use it in GitHub Desktop.
What to do to smoothly run 'grunt' command in source bootstrap project. Made on Ubuntu 13.10. Run from home dir.
This file contains 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 | |
# install all necessary packages | |
sudo apt-get update && sudo apt-get install -y libfontconfig1 ruby1.9.1-dev git zip nodejs npm | |
# install jekyll | |
sudo gem install jekyll --no-ri --no-rdoc | |
# link /usr/bin/nodejs > /usr/bin/node; phantomeJS has some problem if command is not strict 'node'. DEbian/ubuntu normally has 'nodejs' | |
sudo ln -s /usr/bin/nodejs /usr/bin/node | |
# install grunt globally | |
sudo npm install -g grunt-cli | |
# fix privileges | |
cd && sudo chmod g+w -R .npm/ tmp/ && sudo chown `whoami`:`whoami` -R .npm/ tmp/ | |
# get boogstrap and unpack | |
wget https://github.com/twbs/bootstrap/archive/v3.0.2.zip && unzip v3.0.2.zip && cd bootstrap-3.0.2 | |
# cd bootstrap | |
npm install | |
echo 'READY! Now just `cd bootstrap-3.0.2` and run `grunt`' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment