Rakefile in infopark_fiona7-1.5.5.5.1 vs Rakefile in infopark_fiona7-1.6.1.1.0
- old
+ new
@@ -28,10 +28,18 @@
puts "#{fname} -> #{nfname}"
::File.open(nfname, 'w') do |f|
f.write Babel::Transpiler.transform(File.read(fname))["code"]
end
end
+
+ if /\.js\.jsx$/ =~ fname
+ nfname = ::File.join(::File.dirname(fname), ::File.basename(fname, '.js.jsx') + '.js')
+ puts "#{fname} -> #{nfname}"
+ ::File.open(nfname, 'w') do |f|
+ f.write Babel::Transpiler.transform(File.read(fname))["code"]
+ end
+ end
end
puts "Processing handlebars templates"
templates = []
template_namespace = 'ScrivitoHandlebarsTemplates'
@@ -69,15 +77,24 @@
if /\.es6\.js$/ =~ fname
nfname = ::File.join(::File.dirname(fname), ::File.basename(fname, '.es6.js') + '.js')
puts "#{nfname}"
::FileUtils.rm(nfname) if ::File.exists?(nfname)
end
+ if /\.js\.jsx$/ =~ fname
+ nfname = ::File.join(::File.dirname(fname), ::File.basename(fname, '.js.jsx') + '.js')
+ puts "#{nfname}"
+ ::FileUtils.rm(nfname) if ::File.exists?(nfname)
+ end
end
end
end
task "build" => ["clean:js", "package:js"] do
# dummy, needed for dependencies, the rest is added later by bundler
end
Bundler::GemHelper.install_tasks
+
+task "build" => ["clean:js"] do
+ # dummy, needed to clean-up
+end