Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 600 Bytes
%w(sprockets fileutils).each{|x| require x}
main_file = 'app.jsx'
out = 'QRise_standalone.jsx'
build_folder = './build'
files = ['app.jsx', 'QRise.jsx', 'qrcode.js']
dir = Dir.pwd
unless File.exists? build_folder
FileUtils.mkdir_p build_folder
env = dir
env.register_mime_type 'application/javascript', '.jsx'
env.append_path File.join(dir,"src")
manifest = env, build_folder
manifest.compile files
open(out, "w") do |f|
f.puts "#target InDesign-7.0" ## change your CS version
f.puts env[main_file]
FileUtils.rm_rf build_folder
Something went wrong with that request. Please try again.