forked from travis-ci/travis-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
30 lines (28 loc) · 1.04 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$: << 'lib'
namespace :localeapp do
desc "syncs localeapp, yaml and handlebars"
task :update do
require 'localeapp-handlebars_i18n'
Localeapp::HandlebarsI18n.configure($stdout) do |config|
config.hbs_load_path = Dir[File.expand_path '../assets/scripts/app/templates/**/*.hbs', __FILE__]
config.yml_load_path = File.expand_path '../locales/', __FILE__
config.localeapp_api_key = ENV['LOCALEAPP_API_KEY']
end
system "localeapp push locales/#{Localeapp::HandlebarsI18n.default_locale}.yml"
Localeapp::HandlebarsI18n.send_missing_translations
system "localeapp pull"
end
end
namespace :ember do
desc 'update ember'
task :update do
if File.exists?('tmp/ember.js')
system 'cd tmp/ember.js; git fetch origin; git reset --hard origin/master'
else
system 'git clone https://github.com/emberjs/ember.js.git tmp/ember.js'
end
system 'cd tmp/ember.js; bundle update'
system 'cd tmp/ember.js; rake dist'
system 'cp tmp/ember.js/dist/ember.js assets/javascripts/vendor/ember.js'
end
end