Sha256: 5e9835e0e5a202cd46d77c2460f514be4f6dc5d6087e391664b4b77ea3d004de

Contents?: true

Size: 1.71 KB

Versions: 3

Compression:

Stored size: 1.71 KB

Contents

require 'rubygems'
require 'bundler'
require 'bundler/setup'

require 'rake/clean'
require 'flashsdk'
require 'flexunit'

##
# Set USE_FCSH to true in order to use FCSH for all compile tasks.
#
# You can also set this value by calling the :fcsh task
# manually like:
#
#   rake fcsh run
#
# These values can also be sent from the command line like:
#
#   rake run FCSH_PKG_NAME=flex3
#
# ENV['USE_FCSH']         = true
# ENV['FCSH_PKG_NAME']    = 'flex4'
# ENV['FCSH_PKG_VERSION'] = '1.0.14.pre'
# ENV['FCSH_PORT']        = 12321

##############################
# Debug

# Compile the debug swf
mxmlc "<%= bin %>/<%= debug_swf_name %>" do |t|
  t.input = "<%= src %>/<%= class_name %>.as"
  t.debug = true
end

desc "Compile and run the debug swf"
flashplayer :run => "<%= bin %>/<%= debug_swf_name %>"

##############################
# Test

library :flexunit, :flexunit_as3
library :flexunit, :flexunit_uilistener

# Compile the test swf
mxmlc "<%= bin %>/<%= test_swf_name %>" do |t|
  t.input = "<%= src %>/<%= test_runner_name %>.as"
  t.library_path << "lib/flexunit/"
  t.source_path << 'test'
  t.default_size = "100,100"
  t.debug = true
end

desc "Compile and run the test swf"
flashplayer :test => "<%= bin %>/<%= test_swf_name %>"

##############################
# SWC

compc "<%= bin %>/<%= class_name %>.swc" do |t|
  t.input_class = "<%= class_name %>"
  t.source_path << 'src'
end

desc "Compile the SWC file"
task :swc => '<%= bin %>/<%= class_name %>.swc'

##############################
# DOC

desc "Generate documentation at <%= doc %>/"
asdoc '<%= doc %>' do |t|
  t.doc_sources << "<%= src %>"
  t.exclude_sources << "<%= src %>/<%= test_runner_name %>.as"
end

##############################
# DEFAULT
task :default => :run

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flexunit-0.0.9.pre lib/flexunit4/generators/templates/Rakefile
flexunit-0.0.8.pre lib/flexunit4/generators/templates/Rakefile
flexunit-0.0.7.pre lib/flexunit4/generators/templates/Rakefile