Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 126 lines (94 sloc) 4.094 kb
5f862f2 Add copyright header to top of all files
Charles Jolley authored
1 # ===========================================================================
2 # Project: Abbot - SproutCore Build Tools
027e63b Fix copyright statement to say Apple Inc
Charles Jolley authored
3 # Copyright: ©2009 Apple Inc.
5f862f2 Add copyright header to top of all files
Charles Jolley authored
4 # portions copyright @2006-2009 Sprout Systems, Inc.
5 # and contributors
6 # ===========================================================================
7
8 # Default buildfile loaded by all projects. Any options you put into your
9 # project buildfile will override these defaults.
10
bc9e812 Basic workflow for building projects is now in place. Rake tasks are us...
Charles Jolley authored
11 # Import all build tasks
8186633 Fix bug that prevented buildfile from loading rake tasks when you starte...
Charles Jolley authored
12 import *Dir.glob(File.join(File.dirname(current_path), 'buildtasks', '**', '*.rake'))
bc9e812 Basic workflow for building projects is now in place. Rake tasks are us...
Charles Jolley authored
13
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless config...
Charles Jolley authored
14 mode :all do
15 config :all,
4957ea3 Added further unit tests for target; cleaned up left over files. bundle...
Charles Jolley authored
16
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless config...
Charles Jolley authored
17 # REQUIRED CONFIGS
18 # You will not usually need to override these configs, but the code
19 # assumes they will be present, so you must support them.
2cac7cf Add cache_path to entries. To be used in future features
Charles Jolley authored
20 :build_prefix => 'tmp/build',
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless config...
Charles Jolley authored
21 :staging_prefix => 'tmp/staging',
2cac7cf Add cache_path to entries. To be used in future features
Charles Jolley authored
22 :cache_prefix => 'tmp/cache',
23 :url_prefix => 'static',
041ae22 Added tools-based approach
Charles Jolley authored
24
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless config...
Charles Jolley authored
25 # Defines the directories that may contain targets, and maps them to a
26 # target type. When a project tries to find all of the targets in a
27 # project, it will use this map to find them.
28 :target_types => {
29 :apps => :app,
30 :clients => :app,
c9fa11e Add support for a pages directory.
Charles Jolley authored
31 :pages => :app, # used for static pages with your site
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless config...
Charles Jolley authored
32 :frameworks => :framework,
2ff9137 @erichocean Added bundle_loaded.js and bundle_info.js generation + tests
erichocean authored
33 :themes => :theme,
34 :bundles => :framework
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless config...
Charles Jolley authored
35 },
041ae22 Added tools-based approach
Charles Jolley authored
36
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless config...
Charles Jolley authored
37 # Allows the target to have other targets nested inside of it. Override
38 # this in your target Buildfile to disable nesting.
39 :allow_nested_targets => true,
40
41 # The default preferred language. Assets will be pulled from this
42 # language unless otherwise specified.
43 :preferred_language => :en,
44
45 # Do not include fixtures in built project.
46 :load_fixtures => false,
47
48 # Do not include debug directory in built project
86b2d92 Manifest now discovers requires and sc_resource directives and generates...
Charles Jolley authored
49 :load_debug => false,
50
6cefc5e Add support for hiding the 'protocols' directory in production mode
Charles Jolley authored
51 # Do not load protocols in production mode
52 :load_protocols => false,
53
86b2d92 Manifest now discovers requires and sc_resource directives and generates...
Charles Jolley authored
54 # Do not build tests.
332c3ab Refactored javascript and css manifest tasks into two steps - one to cre...
Charles Jolley authored
55 :load_tests => false,
56
57 # Generate a combined javascript and stylesheet
58 :combine_javascript => true,
69c3c67 Added support for generating links to javascripts and stylesheets in htm...
Charles Jolley authored
59 :combine_stylesheets => true,
12ac78d Added stubs for remaining rake tasks. Updated sc-manifest and sc-build ...
Charles Jolley authored
60
61 # by default all targets autobuild
24ee816 Added support for minifying CSS and JavaScript files. These functions d...
Charles Jolley authored
62 :autobuild => true,
63
2ff9137 @erichocean Added bundle_loaded.js and bundle_info.js generation + tests
erichocean authored
64 # by default minify javacript and stylesheets
f99e672 Tweaks to minification needed to make costello build
Charles Jolley authored
65 :minify => true,
13d345e @juanpin CombineStylesheets setting set to true
juanpin authored
66 :minify_css => true,
2220609 Add support for selecting a layout file + unit tests
Charles Jolley authored
67
68 # use the default layout defined in SproutCore
4b64dd2 Add support for CONFIG.theme, which can name a theme framework to load
Charles Jolley authored
69 :layout => 'sproutcore:lib/index.rhtml',
165f36e Fix for loading unit tests supplied by Maurits Lamers
Charles Jolley authored
70 :test_layout => 'sproutcore:lib/index.rhtml',
4b64dd2 Add support for CONFIG.theme, which can name a theme framework to load
Charles Jolley authored
71
72 # name a framework to use as the theme. will be included in required
73 # frameworks automatically if found.
555f70b Added support for generated packed versions of the javascript.js files a...
Charles Jolley authored
74 :theme => 'sproutcore/standard_theme',
75
08f5071 Add support for "overwrite_current" build option
Charles Jolley authored
76 :use_packed => true,
77
78 # if set to true then the index.html will build into the global language
79 # and target directory. This can interfere with deploying multiple builds
80 # at one but it is more convenient.
81 :overwrite_current => false
82
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless config...
Charles Jolley authored
83 end
84
85
86 mode :debug do
87 config :all,
bc9e812 Basic workflow for building projects is now in place. Rake tasks are us...
Charles Jolley authored
88
6cefc5e Add support for hiding the 'protocols' directory in production mode
Charles Jolley authored
89 # in debug mode, load fixtures, debug, tests, and protocols
90 :load_fixtures => true,
91 :load_debug => true,
92 :load_tests => true,
93 :load_protocols => true,
332c3ab Refactored javascript and css manifest tasks into two steps - one to cre...
Charles Jolley authored
94
95 # Do not combine javascript and stylesheet
96 :combine_javascript => false,
13d345e @juanpin CombineStylesheets setting set to true
juanpin authored
97 :combine_stylesheets => true,
f99e672 Tweaks to minification needed to make costello build
Charles Jolley authored
98
d85fb71 woo-hoo basic sc server works
Charles Jolley authored
99 :minify_javascript => false,
276fcb2 @juanpin Set some extra parameters for YUI to break lines every 80 characters and...
juanpin authored
100 :minify_css => false,
d85fb71 woo-hoo basic sc server works
Charles Jolley authored
101
102 :build_prefix => 'tmp/debug/build',
e27e11b Added some improved logging and an interactive mode to sc-server
Charles Jolley authored
103 :staging_prefix => 'tmp/debug/staging',
104
0ba703e Add better logging in entry_sorter. Make sc-server reload projects ever...
Charles Jolley authored
105 # debug settings for sc-server
106 :serve_exceptions => true,
9adbfa6 More better configs for debug
Charles Jolley authored
107 :reload_project => true,
c3ae463 sc-server can now load any asset from the index_root as well as the url_...
Charles Jolley authored
108
109 # In debug mode, we want to simply compute the build number each time
110 # to ensure the latest version is always loaded.
7445ecc While in debug mode, urls now have a timestamp appended to the URL. Add...
Charles Jolley authored
111 :build_number => :current,
112
113 # Instructs the URL builders to include a timestamp token at the end of
114 # urls. This option is only useful in development mode since browsers
115 # will respect the timestamp token as a way to unique the url. This
116 # should not be used in production as some proxies on the internet do
117 # not respect tokens.
118 :timestamp_urls => true,
555f70b Added support for generated packed versions of the javascript.js files a...
Charles Jolley authored
119
5f862f2 Add copyright header to top of all files
Charles Jolley authored
120 # Do not pack javascripts in development mode, we want each file to
121 # load independently.
555f70b Added support for generated packed versions of the javascript.js files a...
Charles Jolley authored
122 :use_packed => false
24ee816 Added support for minifying CSS and JavaScript files. These functions d...
Charles Jolley authored
123 end
124
125
Something went wrong with that request. Please try again.