Sha256: ae2cd9e2d76794daacbf643424b2e5233e991de1faf655db78aacb55fa9d7e36
Contents?: true
Size: 809 Bytes
Versions: 10
Compression:
Stored size: 809 Bytes
Contents
version '1.6.1' src_dir ::File.dirname(__FILE__) + '/test_src' target_dir DIST bundle 'foo.js' do file 'file1.js' file 'file2.js' end bundle 'foo2.js' do license 'license.txt' file 'file3.js' file 'file4.js' end file 'file4.js' file 'text.txt' file 'nested/foo.txt' file 'nested/foo.txt' => 'flat_foo.txt' # Filter all filter do |src, config| src.gsub(/<VERSION>/, config.version.full) end # filter full src only filter :src do |src, config| src.gsub(/<SRC_MODE>/, 'src') end # filter minified src only filter :min do |src, config| src.gsub(/<SRC_MODE>/, 'min') end after_write do |config| config.version.releaseable.each do |v| from = "#{config.src_dir}/foo.txt" to = "#{config.target_dir}/#{v}/foo.txt" puts "copying #{to}" FileUtils.cp(from, to) end end
Version data entries
10 entries across 10 versions & 1 rubygems