Rakefile in emma-css-rails-0.8.0.0 vs Rakefile in emma-css-rails-0.9.0.0
- old
+ new
@@ -1,6 +1,16 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
+namespace :npm do
+ task :copy do
+ sh 'rm -rf vendor/assets/stylesheets/emma.css/'
+ sh 'mkdir vendor/assets/stylesheets/emma.css/'
+ sh 'cp -r node_modules/emma.css/ vendor/assets/stylesheets/emma.css/'
+ sh 'rm vendor/assets/stylesheets/emma.css/package.json'
+ sh "sed -n '1,1p' vendor/assets/stylesheets/emma.css/emma.css"
+ end
+end
+
task :default => :spec