Skip to content

Commit

Permalink
Sai Structure re-organization
Browse files Browse the repository at this point in the history
  • Loading branch information
Evin Grano committed Jul 14, 2010
1 parent 17af765 commit 2556dc2
Show file tree
Hide file tree
Showing 9 changed files with 477 additions and 369 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.DS_Store
33 changes: 31 additions & 2 deletions Buildfile
Expand Up @@ -11,8 +11,8 @@ config :all,
:required => ['sproutcore/runtime'],
:layout => 'sai:lib/index.rhtml',
:test_layout => 'sai:lib/test.rhtml',
:test_required => ['sproutcore'],
:debug_required => ['sproutcore']
:test_required => ['sproutcore/runtime'],
:debug_required => ['sproutcore/runtime']

# 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
Expand All @@ -22,3 +22,32 @@ mode :debug do
:combine_javascript => true,
:combine_stylesheet => true
end

# CORE FRAMEWORKS
config :foundation, :required => []
config :canvas, :required => [:foundation]
config :graphs, :required => [:canvas]

# WRAPPER FRAMEWORKS
config :sai, :required => [:foundation, :canvas, :graph]

# SPECIAL THEMES
# These do not require any of the built-in SproutCore frameworks
%w(standard_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 :standard_theme,
:required => :empty_theme,
:theme_name => 'sc-theme',
:test_required => ['sproutcore/testing'],
:debug_required => ['sproutcore/debug']
#

24 changes: 24 additions & 0 deletions frameworks/foundation/Buildfile
@@ -0,0 +1,24 @@
# ==========================================================================
# Sai JavaScript Framework - Buildfile
# copyright (c) 2010 - Evin Grano, and contributors
# ==========================================================================

# This buildfile defines the configurations needed to link together the
# various frameworks that make up CoreOrion. If you want to override some
# of these settings, you should make changes to your project Buildfile
# instead.
config :all,
:required => ['sproutcore/runtime'],
:layout => 'sai:lib/index.rhtml',
:test_layout => 'sai:lib/test.rhtml',
:test_required => ['sproutcore'],
:debug_required => ['sproutcore']

# 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
File renamed without changes.

0 comments on commit 2556dc2

Please sign in to comment.