Permalink
Browse files

Merge pull request #21 from byterussian/rake_init

Added Rake init task
  • Loading branch information...
2 parents 535e985 + 218c590 commit 1bb3424fd7d1ae7ad5906a27398fa1f142081e14 @caarlos0 committed Jan 17, 2014
Showing with 10 additions and 8 deletions.
  1. +1 −1 README.md
  2. +9 −0 Rakefile
  3. +0 −7 script/init.sh
View
@@ -20,7 +20,7 @@ a base for whole thing.
- Rename it to `YOUR-USER.github.io`
- Clone it: `git clone https://github.com/YOUR-USER/YOUR-USER.github.io`
- With Ruby, bundler, Node.js and NPM previously installed, run the init script
-`./scripts/init`;
+`bundle && rake init`;
- Start it up in watch mode: `foreman start -f Procfile.dev`.
You should have a server up and running locally at <http://localhost:4000>.
View
@@ -90,4 +90,13 @@ task :icons do
File.delete origin
end
+desc "Install libs required by theme"
+task :init do
+ puts "Downloading and installing required javascript plugins"
+ `npm install -g grunt-cli bower`
+ `npm install`
+ `bower install`
+ puts "Downloading Bootstrap and Font Awesome"
+ `grunt`
+end
View
@@ -1,7 +0,0 @@
-#!/bin/bash
-set -e
-bundle
-npm install -g grunt-cli bower
-npm install
-bower install
-grunt

0 comments on commit 1bb3424

Please sign in to comment.