Sha256: 8662cf36c51ef128fdc12caf96e9966d1e785156b1be0adae5208775156b4f48

Contents?: true

Size: 1.7 KB

Versions: 2

Compression:

Stored size: 1.7 KB

Contents

require 'rubygems'
require 'asproject'

# NOTE: The asclass tools will load this file
# and use these constants...
SRC_DIR             = 'src'
TEST_DIR            = 'test'
LIB_DIR             = 'lib'
BIN_DIR             = 'bin'
SKIN_DIR            = 'assets/img'
DEFAULT_TEMPLATES   = ['as3']

############################################
# Launch the Application using Flash Player 9

desc "Compile and run main application"
task :run => :compile_main
task :default => :run

AsProject::FlashPlayer.new(:run) do |t|
  t.version = 9
  t.swf = BIN_DIR + '/<%= project_name %>Application.swf'
end

############################################
# Launch the Test Suites using Flash Player 9

desc "Compile and run test suites"
task :test => [:compile_tests]

AsProject::FlashPlayer.new(:test) do |t|
  t.version = 9
  t.swf = BIN_DIR + '/<%= project_name %>Runner.swf'
end

############################################
# Compile your Application using HAMTASC

AsProject::MXMLC.new(:compile_main) do |t|
  t.default_background_color = '#FFFFFF'
  t.default_frame_rate = 24
  t.default_size = "600 400"
  t.input = SRC_DIR + '/<%= project_name %>.as'
  t.output = BIN_DIR + '/<%= project_name %>Application.swf'
  t.source_path = SKIN_DIR
  t.warnings = true
end

############################################
# Compile your Application using HAMTASC

AsProject::MXMLC.new(:compile_tests) do |t|
  t.default_background_color = '#FFFFFF'
  t.default_frame_rate = 24
  t.default_size = "800 450"
  t.input = SRC_DIR + '/<%= project_name %>Runner.as'
  t.output = BIN_DIR + '/<%= project_name %>Runner.swf'
  t.warnings = true
  t.source_path << SRC_DIR
  t.source_path << LIB_DIR + '/asunit'
  t.source_path << TEST_DIR
  t.source_path << SKIN_DIR
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asproject-0.1.89 templates/asproject/as3/project/rakefile.rb
asproject-0.1.92 templates/asproject/as3/project/rakefile.rb