Created
February 10, 2014 05:04
-
-
Save shwoodard/8910646 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env sh | |
set -ef | |
bundle | |
cp config/database.yml.example config/database.yml | |
bundle exec rake db:setup | |
cd client | |
npm install | |
npm install -g bower | |
bower install | |
cd - |
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
#!/usr/bin/env sh | |
set -ex | |
rake --trace |
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
# Add your own tasks in files placed in lib/tasks ending in .rake, | |
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
require File.expand_path('../config/application', __FILE__) | |
Programme::Application.load_tasks | |
namespace :js do | |
task :test do | |
chdir 'client' do | |
sh 'grunt karma:continuous' | |
end | |
end | |
namespace :test do | |
task :watch do | |
chdir 'client' do | |
sh 'grunt karma:dev' | |
end | |
end | |
end | |
end | |
# Clear out :spec as the default rake task so | |
# so we can run js_test first. | |
Rake::Task['default'].clear | |
task :default => ['js:test', 'spec'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment