Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 117 lines (86 sloc) 3.674 kB
5f862f2 Add copyright header to top of all files
Charles Jolley authored
1 # ===========================================================================
2 # Project: Abbot - SproutCore Build Tools
3 # Copyright: ©2009 Apple, Inc.
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…
Charles Jolley authored
11 # Import all build tasks
8186633 Fix bug that prevented buildfile from loading rake tasks when you sta…
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…
Charles Jolley authored
13
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless con…
Charles Jolley authored
14 mode :all do
15 config :all,
4957ea3 Added further unit tests for target; cleaned up left over files. bun…
Charles Jolley authored
16
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless con…
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.
20 :build_prefix => 'tmp/build',
21 :staging_prefix => 'tmp/staging',
22 :url_prefix => 'static',
041ae22 Added tools-based approach
Charles Jolley authored
23
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless con…
Charles Jolley authored
24 # Defines the directories that may contain targets, and maps them to a
25 # target type. When a project tries to find all of the targets in a
26 # project, it will use this map to find them.
27 :target_types => {
28 :apps => :app,
29 :clients => :app,
30 :frameworks => :framework,
51a8b47 Added support for a themes directory to hold themes separate from fra…
Charles Jolley authored
31 :themes => :theme
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless con…
Charles Jolley authored
32 },
041ae22 Added tools-based approach
Charles Jolley authored
33
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless con…
Charles Jolley authored
34 # Allows the target to have other targets nested inside of it. Override
35 # this in your target Buildfile to disable nesting.
36 :allow_nested_targets => true,
37
38 # The default preferred language. Assets will be pulled from this
39 # language unless otherwise specified.
40 :preferred_language => :en,
41
42 # Do not include fixtures in built project.
43 :load_fixtures => false,
44
45 # Do not include debug directory in built project
86b2d92 Manifest now discovers requires and sc_resource directives and genera…
Charles Jolley authored
46 :load_debug => false,
47
6cefc5e Add support for hiding the 'protocols' directory in production mode
Charles Jolley authored
48 # Do not load protocols in production mode
49 :load_protocols => false,
50
86b2d92 Manifest now discovers requires and sc_resource directives and genera…
Charles Jolley authored
51 # Do not build tests.
332c3ab Refactored javascript and css manifest tasks into two steps - one to …
Charles Jolley authored
52 :load_tests => false,
53
54 # Generate a combined javascript and stylesheet
55 :combine_javascript => true,
69c3c67 Added support for generating links to javascripts and stylesheets in …
Charles Jolley authored
56 :combine_stylesheets => true,
12ac78d Added stubs for remaining rake tasks. Updated sc-manifest and sc-bui…
Charles Jolley authored
57
58 # by default all targets autobuild
24ee816 Added support for minifying CSS and JavaScript files. These function…
Charles Jolley authored
59 :autobuild => true,
60
61 # by default do not minify javacript or stylesheets
f99e672 Tweaks to minification needed to make costello build
Charles Jolley authored
62 :minify => true,
13d345e @juanpin CombineStylesheets setting set to true
juanpin authored
63 :minify_css => true,
2220609 Add support for selecting a layout file + unit tests
Charles Jolley authored
64
65 # use the default layout defined in SproutCore
4b64dd2 Add support for CONFIG.theme, which can name a theme framework to load
Charles Jolley authored
66 :layout => 'sproutcore:lib/index.rhtml',
67
68 # name a framework to use as the theme. will be included in required
69 # frameworks automatically if found.
555f70b Added support for generated packed versions of the javascript.js file…
Charles Jolley authored
70 :theme => 'sproutcore/standard_theme',
71
72 :use_packed => true
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless con…
Charles Jolley authored
73 end
74
75
76 mode :debug do
77 config :all,
bc9e812 Basic workflow for building projects is now in place. Rake tasks are…
Charles Jolley authored
78
6cefc5e Add support for hiding the 'protocols' directory in production mode
Charles Jolley authored
79 # in debug mode, load fixtures, debug, tests, and protocols
80 :load_fixtures => true,
81 :load_debug => true,
82 :load_tests => true,
83 :load_protocols => true,
332c3ab Refactored javascript and css manifest tasks into two steps - one to …
Charles Jolley authored
84
85 # Do not combine javascript and stylesheet
86 :combine_javascript => false,
13d345e @juanpin CombineStylesheets setting set to true
juanpin authored
87 :combine_stylesheets => true,
f99e672 Tweaks to minification needed to make costello build
Charles Jolley authored
88
d85fb71 woo-hoo basic sc server works
Charles Jolley authored
89 :minify_javascript => false,
13d345e @juanpin CombineStylesheets setting set to true
juanpin authored
90 :minify_css => true,
d85fb71 woo-hoo basic sc server works
Charles Jolley authored
91
92 :build_prefix => 'tmp/debug/build',
e27e11b Added some improved logging and an interactive mode to sc-server
Charles Jolley authored
93 :staging_prefix => 'tmp/debug/staging',
94
0ba703e Add better logging in entry_sorter. Make sc-server reload projects e…
Charles Jolley authored
95 # debug settings for sc-server
96 :serve_exceptions => true,
9adbfa6 More better configs for debug
Charles Jolley authored
97 :reload_project => true,
c3ae463 sc-server can now load any asset from the index_root as well as the u…
Charles Jolley authored
98
99 # In debug mode, we want to simply compute the build number each time
100 # to ensure the latest version is always loaded.
7445ecc While in debug mode, urls now have a timestamp appended to the URL. …
Charles Jolley authored
101 :build_number => :current,
102
103 # Instructs the URL builders to include a timestamp token at the end of
104 # urls. This option is only useful in development mode since browsers
105 # will respect the timestamp token as a way to unique the url. This
106 # should not be used in production as some proxies on the internet do
107 # not respect tokens.
108 :timestamp_urls => true,
555f70b Added support for generated packed versions of the javascript.js file…
Charles Jolley authored
109
5f862f2 Add copyright header to top of all files
Charles Jolley authored
110 # Do not pack javascripts in development mode, we want each file to
111 # load independently.
555f70b Added support for generated packed versions of the javascript.js file…
Charles Jolley authored
112 :use_packed => false
920adf9 manifest:hide_buildfiles now hides debug and fixture files unless con…
Charles Jolley authored
113
24ee816 Added support for minifying CSS and JavaScript files. These function…
Charles Jolley authored
114 end
115
116
Something went wrong with that request. Please try again.