add a rake task to update ember to current master
This commit is contained in:
parent
f02eb6afbc
commit
c7b561a80e
11
.gitignore
vendored
11
.gitignore
vendored
|
@ -1,15 +1,4 @@
|
|||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||
#
|
||||
# If you find yourself ignoring temporary files generated by your text editor
|
||||
# or operating system, you probably want to add a global ignore instead:
|
||||
# git config --global core.excludesfile ~/.gitignore_global
|
||||
|
||||
# Ignore bundler config
|
||||
/.bundle
|
||||
|
||||
# Ignore the default SQLite database.
|
||||
/db/*.sqlite3
|
||||
|
||||
# Ignore all logfiles and tempfiles.
|
||||
/log/*.log
|
||||
/tmp
|
||||
|
|
16
Rakefile
16
Rakefile
|
@ -1 +1,15 @@
|
|||
#!/usr/bin/env rake
|
||||
$: << 'lib'
|
||||
|
||||
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; rake dist'
|
||||
system 'cp tmp/ember.js/dist/ember.js assets/javascripts/vendor/ember.js'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user