Skip to content
This repository
branch: cjolley/master
Fetching contributors…

Cannot retrieve contributors at this time

file 113 lines (94 sloc) 3.835 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
# ==========================================================================
# SproutCore JavaScript Framework - Buildfile
# copyright (c) 2009 - Apple Inc.
# portions copyright Strobe Inc. and contributors
# ==========================================================================

# This buildfile defines the configurations needed to link together the
# various frameworks that make up SproutCore. If you want to override some
# of these settings, you should make changes to your project Buildfile
# instead.

config :all,
  :layout => 'sproutcore:lib/index.rhtml',
  :test_layout => 'sproutcore:lib/index.rhtml',
  :test_required => ['sproutcore/testing'],
  :debug_required => ['sproutcore/debug', 'sproutcore/testing']

# in debug mode, combine the JS for SC by default. This will improve perf
# while working with apps. If you are hacking SC itself, you can turn this
# off in your project buildfile by referencing sproutcore specifically
mode :debug do
  config :all,
    :combine_javascript => true,
    :combine_stylesheet => true
end

# CORE FRAMEWORKS
config :bootstrap, :required => [], :use_modules => false

config :jquery, :required => []
config :handlebars, :required => []
config :runtime, :required => [:jquery]
config :datetime, :required => [:runtime]
config :core_foundation, :required => [:runtime, :handlebars]
config :foundation, :required => [:core_foundation, :datetime]
config :datastore, :required => [:runtime, :datetime]
config :desktop, :required => [:foundation]
config :media, :required => [:desktop]
config :statechart, :required => [:core_foundation], :test_required => [:core_foundation, :desktop]

# APP-LEVEL FRAMEWORKS
%w(mobile designer).each do |app_framework|
  config app_framework, :required => [:runtime, :datastore, :foundation]
end

config :mobile,
  :layout => 'sproutcore/mobile:lib/index.rhtml',
  :test_layout => 'sproutcore/mobile:lib/index.rhtml'

# WRAPPER FRAMEWORKS
config :designer, :required => [:runtime, :foundation, :desktop]
config :sproutcore, :required => [:desktop, :datastore]
config :mini, :required => [:runtime, :datastore]
config :animation, :required => :foundation
config :forms, :required => :desktop

# SPECIAL FRAMEWORKS AND THEMES
# These do not require any of the built-in SproutCore frameworks
%w(testing debug legacy_theme empty_theme).each do |target_name|
  config target_name,
    :required => [], :test_required => [], :debug_required => []
end

# CONFIGURE THEMES
config :empty_theme,
  :theme_name => 'empty-theme',
  :test_required => ['sproutcore/testing'],
  :debug_required => ['sproutcore/debug']

config :iphone_theme,
  :theme_name => 'iphone-theme',
  :required => [],
  :test_required => ['sproutcore/testing'],
  :debug_required => ['sproutcore/debug']

config :legacy_theme,
  :required => :empty_theme,
  :theme_name => 'sc-theme',
  :test_required => ['sproutcore/testing'],
  :debug_required => ['sproutcore/debug']

config :ace,
  :required => :empty_theme,
  :theme_name => nil,
  :test_required => ['sproutcore/testing'],
  :debug_required => ['sproutcore/debug'],
  :css_theme => 'ace'

# CONFIGURE APPS
config :core_tools, :required => [
  :desktop, :datastore, :animation, :forms,
  "sproutcore/ace", "sproutcore/experimental/split_view"
]

# mode :debug do
# config :core_tools, :combine_javascript => false
# end

%w(tests test_controls docs welcome).each do |app_target|
  config app_target,
    :required => [:desktop, :datastore, :core_tools],
    :theme => :ace

  # mode :debug do
  # config app_target, :combine_javascript => false
  # end

end

config :greenhouse,
  :required => [:sproutcore, :'sproutcore/designer', :statechart],
  :theme => :ace,
  :css_theme => 'ace.greenhouse'
Something went wrong with that request. Please try again.