Sha256: 16cd89ab0c97cbd4c4a631acf168108bd5d61c0d0f04f2704177b79a7d91b4d7
Contents?: true
Size: 543 Bytes
Versions: 5
Compression:
Stored size: 543 Bytes
Contents
require 'fileutils' #Compile all the *.js files into one file BUILD_PATH = '../../../products/drivers/browser.js' task :build do out = "/* THIS IS AN AUTOGENETARED FILE, DO NOT EDIT THIS */\n" Dir["./vendor/*.js"].each do |js| code = File.read(js) out << code out << "\n" end Dir["*.js"].each do |js| code = File.read(js) out << code out << "\n" end Dir.chdir File.dirname(__FILE__) do FileUtils.rm_f BUILD_PATH FileUtils.mkdir_p File.dirname(BUILD_PATH) File.write BUILD_PATH, out end end
Version data entries
5 entries across 5 versions & 1 rubygems