Skip to content

Instantly share code, notes, and snippets.

@shwoodard
Created February 10, 2014 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shwoodard/8910646 to your computer and use it in GitHub Desktop.
Save shwoodard/8910646 to your computer and use it in GitHub Desktop.
#!/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 -
#!/usr/bin/env sh
set -ex
rake --trace
# 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