sproutit-sproutcore 1.0.0.20090407205609
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Buildfile +115 -0
- data/History.txt +7 -0
- data/README.txt +102 -0
- data/Rakefile +54 -0
- data/Todo.txt +1 -0
- data/bin/sc-build +13 -0
- data/bin/sc-build-number +13 -0
- data/bin/sc-gen +13 -0
- data/bin/sc-init +13 -0
- data/bin/sc-manifest +13 -0
- data/bin/sc-server +13 -0
- data/bin/sproutcore +14 -0
- data/buildtasks/build.rake +73 -0
- data/buildtasks/entry.rake +59 -0
- data/buildtasks/manifest.rake +469 -0
- data/buildtasks/render.rake +21 -0
- data/buildtasks/target.rake +42 -0
- data/gen/Buildfile +16 -0
- data/gen/app/Buildfile +36 -0
- data/gen/app/README +1 -0
- data/gen/app/USAGE +13 -0
- data/gen/app/templates/apps/{target_name}/core.js +27 -0
- data/gen/app/templates/apps/{target_name}/english.lproj/loading.rhtml +9 -0
- data/gen/app/templates/apps/{target_name}/english.lproj/main_page.js +22 -0
- data/gen/app/templates/apps/{target_name}/english.lproj/strings.js +15 -0
- data/gen/app/templates/apps/{target_name}/main.js +30 -0
- data/gen/controller/Buildfile +18 -0
- data/gen/controller/README +1 -0
- data/gen/controller/USAGE +13 -0
- data/gen/controller/templates/controllers/{filename}.js +18 -0
- data/gen/controller/templates/tests/controllers/{filename}.js +15 -0
- data/gen/framework/Buildfile +36 -0
- data/gen/framework/README +1 -0
- data/gen/framework/USAGE +13 -0
- data/gen/framework/templates/frameworks/{target_name}/core.js +21 -0
- data/gen/framework/templates/frameworks/{target_name}/english.lproj/strings.js +15 -0
- data/gen/language/Buildfile +26 -0
- data/gen/language/README +1 -0
- data/gen/language/USAGE +13 -0
- data/gen/language/templates/{filename}/strings.js +14 -0
- data/gen/model/Buildfile +16 -0
- data/gen/model/README +1 -0
- data/gen/model/USAGE +15 -0
- data/gen/model/templates/fixtures/{filename}.js +35 -0
- data/gen/model/templates/models/{filename}.js +19 -0
- data/gen/model/templates/tests/models/{filename}.js +15 -0
- data/gen/project/Buildfile +45 -0
- data/gen/project/INIT +3 -0
- data/gen/project/README +1 -0
- data/gen/project/USAGE +2 -0
- data/gen/project/templates/{filename}/Buildfile +7 -0
- data/gen/project/templates/{filename}/README +7 -0
- data/gen/test/Buildfile +25 -0
- data/gen/test/README +1 -0
- data/gen/test/USAGE +12 -0
- data/gen/test/templates/tests/{filename}.js +15 -0
- data/gen/theme/Buildfile +36 -0
- data/gen/theme/README +1 -0
- data/gen/theme/USAGE +13 -0
- data/gen/theme/templates/themes/{target_name}/english.lproj/strings.js +15 -0
- data/gen/view/Buildfile +18 -0
- data/gen/view/README +1 -0
- data/gen/view/USAGE +13 -0
- data/gen/view/templates/tests/views/{filename}.js +15 -0
- data/gen/view/templates/views/{filename}.js +18 -0
- data/lib/sproutcore.rb +130 -0
- data/lib/sproutcore/builders/base.rb +79 -0
- data/lib/sproutcore/builders/combine.rb +37 -0
- data/lib/sproutcore/builders/html.rb +177 -0
- data/lib/sproutcore/builders/javascript.rb +55 -0
- data/lib/sproutcore/builders/minify.rb +67 -0
- data/lib/sproutcore/builders/sass.rb +55 -0
- data/lib/sproutcore/builders/strings.rb +44 -0
- data/lib/sproutcore/builders/stylesheet.rb +40 -0
- data/lib/sproutcore/builders/test.rb +58 -0
- data/lib/sproutcore/builders/test_index.rb +26 -0
- data/lib/sproutcore/buildfile.rb +483 -0
- data/lib/sproutcore/buildfile/build_task.rb +33 -0
- data/lib/sproutcore/buildfile/buildfile_dsl.rb +162 -0
- data/lib/sproutcore/buildfile/cloneable.rb +34 -0
- data/lib/sproutcore/buildfile/early_time.rb +29 -0
- data/lib/sproutcore/buildfile/invocation_chain.rb +64 -0
- data/lib/sproutcore/buildfile/namespace.rb +33 -0
- data/lib/sproutcore/buildfile/string_ext.rb +198 -0
- data/lib/sproutcore/buildfile/task.rb +304 -0
- data/lib/sproutcore/buildfile/task_arguments.rb +86 -0
- data/lib/sproutcore/buildfile/task_manager.rb +193 -0
- data/lib/sproutcore/deprecated/view_helper.rb +662 -0
- data/lib/sproutcore/helpers/capture_helper.rb +30 -0
- data/lib/sproutcore/helpers/cssmin.rb +202 -0
- data/lib/sproutcore/helpers/dom_id_helper.rb +21 -0
- data/lib/sproutcore/helpers/entry_sorter.rb +105 -0
- data/lib/sproutcore/helpers/packed_optimizer.rb +102 -0
- data/lib/sproutcore/helpers/static_helper.rb +268 -0
- data/lib/sproutcore/helpers/tag_helper.rb +117 -0
- data/lib/sproutcore/helpers/text_helper.rb +303 -0
- data/lib/sproutcore/models/generator.rb +493 -0
- data/lib/sproutcore/models/hash_struct.rb +109 -0
- data/lib/sproutcore/models/manifest.rb +342 -0
- data/lib/sproutcore/models/manifest_entry.rb +232 -0
- data/lib/sproutcore/models/project.rb +270 -0
- data/lib/sproutcore/models/target.rb +403 -0
- data/lib/sproutcore/rack/builder.rb +269 -0
- data/lib/sproutcore/rack/dev.rb +51 -0
- data/lib/sproutcore/rack/docs.rb +24 -0
- data/lib/sproutcore/rack/proxy.rb +92 -0
- data/lib/sproutcore/rack/service.rb +141 -0
- data/lib/sproutcore/rack/test_runner.rb +24 -0
- data/lib/sproutcore/render_engines/erubis.rb +55 -0
- data/lib/sproutcore/render_engines/haml.rb +39 -0
- data/lib/sproutcore/tools.rb +311 -0
- data/lib/sproutcore/tools/build.rb +80 -0
- data/lib/sproutcore/tools/build_number.rb +23 -0
- data/lib/sproutcore/tools/gen.rb +99 -0
- data/lib/sproutcore/tools/init.rb +40 -0
- data/lib/sproutcore/tools/manifest.rb +84 -0
- data/lib/sproutcore/tools/server.rb +45 -0
- data/spec/buildtasks/build/copy_spec.rb +60 -0
- data/spec/buildtasks/build/spec_helper.rb +36 -0
- data/spec/buildtasks/manifest/catalog_spec.rb +48 -0
- data/spec/buildtasks/manifest/hide_buildfiles_spec.rb +125 -0
- data/spec/buildtasks/manifest/localize_spec.rb +97 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +246 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +87 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb +175 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb +65 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +70 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +152 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb +98 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb +64 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb +163 -0
- data/spec/buildtasks/manifest/prepare_spec.rb +43 -0
- data/spec/buildtasks/manifest/spec_helper.rb +35 -0
- data/spec/buildtasks/target_spec.rb +214 -0
- data/spec/fixtures/builder_tests/Buildfile +15 -0
- data/spec/fixtures/builder_tests/apps/combine_test/a.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/b.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/c.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/a.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/b.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/c.css +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/bar1_sample.rhtml +2 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/erb_sample.html.erb +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/icons/image.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/image.jpg +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/rhtml_sample.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/style.css +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/french-icons/fr.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/lib/layout_template.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/scripts.js +0 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_static.js +15 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_super.js +4 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/strings.js +7 -0
- data/spec/fixtures/builder_tests/apps/sass_test/sample.sass +3 -0
- data/spec/fixtures/builder_tests/apps/strings_test/lproj/strings.js +8 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/build_directives.css +9 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/sc_static.css +12 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/alt_layout.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/test_layout.rhtml +3 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test2.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/rhtml_test.rhtml +4 -0
- data/spec/fixtures/builder_tests/frameworks/debug/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/debug/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/req_style_2.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/javascript.js +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/lib/alt_layout.rhtml +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/req_js_2.js +0 -0
- data/spec/fixtures/builder_tests/themes/sample_theme/Buildfile +1 -0
- data/spec/fixtures/buildfiles/basic/Buildfile +16 -0
- data/spec/fixtures/buildfiles/basic/task_module.rake +6 -0
- data/spec/fixtures/buildfiles/installed/Buildfile +7 -0
- data/spec/fixtures/buildfiles/installed/Buildfile2 +5 -0
- data/spec/fixtures/buildfiles/project_test/Buildfile +4 -0
- data/spec/fixtures/buildfiles/project_test/not_project/Buildfile +2 -0
- data/spec/fixtures/buildfiles/project_test/not_project/child/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/Buildfile +1 -0
- data/spec/fixtures/entry_for_project/apps/test_app/entry.txt +0 -0
- data/spec/fixtures/entry_for_project/apps/test_app/frameworks/nested/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/Buildfile +8 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/Buildfile +5 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/foos/not_foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/nested/Buildfile +8 -0
- data/spec/fixtures/find_targets/nested/apps/app1/Buildfile +1 -0
- data/spec/fixtures/find_targets/nested/apps/app1/apps/nested_app/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/clients/client1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme2/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/English.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/FreNCH.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/UnknOWN.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/english.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/french.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/german.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/italian.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/japanese.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/spanish.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/unknown.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/no_names/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/de.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-CA.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-GB.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-US.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/es.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/foo.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/fr.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/it.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/ja.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/1.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/B.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/b.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/b/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/c.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/core.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/B.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/b.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/b/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/c.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/lproj/strings.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/utils.js +1 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/a.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/b.js +3 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/c.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/a.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/b.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/c.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/d.js +1 -0
- data/spec/fixtures/real_world/Buildfile +12 -0
- data/spec/fixtures/real_world/apps/account/README +1 -0
- data/spec/fixtures/real_world/apps/calendar/README +1 -0
- data/spec/fixtures/real_world/apps/contacts/README_BEFORE_EDITING +1 -0
- data/spec/fixtures/real_world/apps/files/README +1 -0
- data/spec/fixtures/real_world/apps/mail/README +1 -0
- data/spec/fixtures/real_world/apps/mobile_photos/README +1 -0
- data/spec/fixtures/real_world/apps/photos/README +1 -0
- data/spec/fixtures/real_world/apps/uploader/README +1 -0
- data/spec/fixtures/real_world/frameworks/core_files/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/core_photos/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/Buildfile +26 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/README +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/docs/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/test_runner/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/debug-resource.html +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/sample_debug.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/demo2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/debug/sample_debug-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo2.sass +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.haml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.html.erb +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.rhtml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/fixtures/sample_fixtures-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/has_require.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_require.css +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_sc_resource.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/protocols/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.css +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.rhtml +3 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/tests/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample-json-fixture.json +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample_fixtures.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/application/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/costello/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/data_store/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/debug/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/desktop/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/empty_theme/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/foundation/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/mobile/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/qunit/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/uploader/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/french-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/german-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/strings.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/has_require.js +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/lib/index.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/no_require.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/protocols/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/sc_resource.js +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample1.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/themes/standard_theme/README +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/views/view.js +1 -0
- data/spec/fixtures/real_world/generators/sample_custom/Buildfile +0 -0
- data/spec/fixtures/real_world/generators/sample_custom/templates/{filename}.js +1 -0
- data/spec/fixtures/recursive_project/Buildfile +8 -0
- data/spec/fixtures/recursive_project/frameworks/sproutcore/frameworks/costello/PLACEHOLDER +0 -0
- data/spec/lib/builders/combine_spec.rb +67 -0
- data/spec/lib/builders/html_spec.rb +577 -0
- data/spec/lib/builders/javascript_spec.rb +81 -0
- data/spec/lib/builders/sass_spec.rb +43 -0
- data/spec/lib/builders/spec_helper.rb +30 -0
- data/spec/lib/builders/strings_spec.rb +52 -0
- data/spec/lib/builders/stylesheet_spec.rb +63 -0
- data/spec/lib/builders/test_index_spec.rb +44 -0
- data/spec/lib/builders/test_spec.rb +135 -0
- data/spec/lib/buildfile/config_for_spec.rb +81 -0
- data/spec/lib/buildfile/define_spec.rb +59 -0
- data/spec/lib/buildfile/dup_spec.rb +65 -0
- data/spec/lib/buildfile/invoke_spec.rb +130 -0
- data/spec/lib/buildfile/load_spec.rb +49 -0
- data/spec/lib/buildfile/task/dup_spec.rb +55 -0
- data/spec/lib/buildfile/task_defined_spec.rb +17 -0
- data/spec/lib/buildfile_commands/build_task_spec.rb +19 -0
- data/spec/lib/buildfile_commands/config_spec.rb +97 -0
- data/spec/lib/buildfile_commands/import_spec.rb +17 -0
- data/spec/lib/buildfile_commands/namespace_spec.rb +18 -0
- data/spec/lib/buildfile_commands/proxies_spec.rb +38 -0
- data/spec/lib/buildfile_commands/replace_task_spec.rb +29 -0
- data/spec/lib/buildfile_commands/task_spec.rb +36 -0
- data/spec/lib/helpers/packing_optimizer/optimize_spec.rb +26 -0
- data/spec/lib/models/hash_struct/deep_clone_spec.rb +27 -0
- data/spec/lib/models/hash_struct/has_options_spec.rb +32 -0
- data/spec/lib/models/hash_struct/hash_spec.rb +64 -0
- data/spec/lib/models/hash_struct/merge_spec.rb +26 -0
- data/spec/lib/models/hash_struct/method_missing.rb +41 -0
- data/spec/lib/models/manifest/add_entry_spec.rb +36 -0
- data/spec/lib/models/manifest/add_transform_spec.rb +90 -0
- data/spec/lib/models/manifest/build_spec.rb +78 -0
- data/spec/lib/models/manifest/entry_for_spec.rb +94 -0
- data/spec/lib/models/manifest/find_entry.rb +84 -0
- data/spec/lib/models/manifest/prepare_spec.rb +62 -0
- data/spec/lib/models/manifest_entry/cacheable_url_spec.rb +31 -0
- data/spec/lib/models/manifest_entry/prepare_spec.rb +54 -0
- data/spec/lib/models/project/add_target_spec.rb +44 -0
- data/spec/lib/models/project/buildfile_spec.rb +35 -0
- data/spec/lib/models/project/find_targets_for_spec.rb +77 -0
- data/spec/lib/models/project/load_nearest_project_spec.rb +23 -0
- data/spec/lib/models/project/target_for_spec.rb +33 -0
- data/spec/lib/models/project/targets_spec.rb +62 -0
- data/spec/lib/models/target/compute_build_number_spec.rb +125 -0
- data/spec/lib/models/target/config_spec.rb +30 -0
- data/spec/lib/models/target/expand_required_targets_spec.rb +48 -0
- data/spec/lib/models/target/installed_languages_spec.rb +47 -0
- data/spec/lib/models/target/lproj_for_spec.rb +38 -0
- data/spec/lib/models/target/manifest_for_spec.rb +42 -0
- data/spec/lib/models/target/parent_target_spec.rb +21 -0
- data/spec/lib/models/target/prepare_spec.rb +53 -0
- data/spec/lib/models/target/required_targets_spec.rb +119 -0
- data/spec/lib/models/target/target_for_spec.rb +56 -0
- data/spec/lib/tools/build_number_spec.rb +28 -0
- data/spec/lib/tools/gen_spec.rb +207 -0
- data/spec/lib/tools/tools_spec.rb +78 -0
- data/spec/spec_helper.rb +138 -0
- data/sproutcore.gemspec +47 -0
- data/vendor/github_gem_lint.rb +22 -0
- data/vendor/yui-compressor/yuicompressor-2.4.2.jar +0 -0
- metadata +1084 -0
data/Buildfile
ADDED
@@ -0,0 +1,115 @@
|
|
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
|
+
|
11
|
+
# Import all build tasks
|
12
|
+
import *Dir.glob(File.join(File.dirname(current_path), 'buildtasks', '**', '*.rake'))
|
13
|
+
|
14
|
+
mode :all do
|
15
|
+
config :all,
|
16
|
+
|
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',
|
23
|
+
|
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,
|
31
|
+
:themes => :theme
|
32
|
+
},
|
33
|
+
|
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
|
46
|
+
:load_debug => false,
|
47
|
+
|
48
|
+
# Do not load protocols in production mode
|
49
|
+
:load_protocols => false,
|
50
|
+
|
51
|
+
# Do not build tests.
|
52
|
+
:load_tests => false,
|
53
|
+
|
54
|
+
# Generate a combined javascript and stylesheet
|
55
|
+
:combine_javascript => true,
|
56
|
+
:combine_stylesheets => true,
|
57
|
+
|
58
|
+
# by default all targets autobuild
|
59
|
+
:autobuild => true,
|
60
|
+
|
61
|
+
# by default do not minify javacript or stylesheets
|
62
|
+
:minify => true,
|
63
|
+
:minify_css => false,
|
64
|
+
|
65
|
+
# use the default layout defined in SproutCore
|
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.
|
70
|
+
:theme => 'sproutcore/standard_theme',
|
71
|
+
|
72
|
+
:use_packed => true
|
73
|
+
end
|
74
|
+
|
75
|
+
|
76
|
+
mode :debug do
|
77
|
+
config :all,
|
78
|
+
|
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,
|
84
|
+
|
85
|
+
# Do not combine javascript and stylesheet
|
86
|
+
:combine_javascript => false,
|
87
|
+
:combine_stylesheets => false,
|
88
|
+
|
89
|
+
:minify_javascript => false,
|
90
|
+
|
91
|
+
:build_prefix => 'tmp/debug/build',
|
92
|
+
:staging_prefix => 'tmp/debug/staging',
|
93
|
+
|
94
|
+
# debug settings for sc-server
|
95
|
+
:serve_exceptions => true,
|
96
|
+
:reload_project => true,
|
97
|
+
|
98
|
+
# In debug mode, we want to simply compute the build number each time
|
99
|
+
# to ensure the latest version is always loaded.
|
100
|
+
:build_number => :current,
|
101
|
+
|
102
|
+
# Instructs the URL builders to include a timestamp token at the end of
|
103
|
+
# urls. This option is only useful in development mode since browsers
|
104
|
+
# will respect the timestamp token as a way to unique the url. This
|
105
|
+
# should not be used in production as some proxies on the internet do
|
106
|
+
# not respect tokens.
|
107
|
+
:timestamp_urls => true,
|
108
|
+
|
109
|
+
# Do not pack javascripts in development mode, we want each file to
|
110
|
+
# load independently.
|
111
|
+
:use_packed => false
|
112
|
+
|
113
|
+
end
|
114
|
+
|
115
|
+
|
data/History.txt
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
|
2
|
+
== 1.0.0.a1 / 2009-04-04
|
3
|
+
|
4
|
+
Brand new version of build tools. The line (Abbot) is built on a Rake-like
|
5
|
+
tasks system instead of using integrated Ruby code. It also incorporates a
|
6
|
+
suite of over 300 unit tests to verify the build operation under lots of
|
7
|
+
different configurations
|
data/README.txt
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
sproutcore - abbot
|
2
|
+
by Charles Jolley and contributors
|
3
|
+
http://www.sproutcore.com
|
4
|
+
http://github.com/sproutit/sproutcore-abbot
|
5
|
+
|
6
|
+
== DESCRIPTION:
|
7
|
+
|
8
|
+
SproutCore is a platform for building native look-and-feel applications on
|
9
|
+
the web. This Ruby library includes a copy of the SproutCore JavaScript
|
10
|
+
framework as well as a Ruby-based build system called Abbot.
|
11
|
+
|
12
|
+
Abbot is a build system for creating static web content. You can supply Abbot with a collection of JavaScript, HTML, CSS and image files and it will
|
13
|
+
combine the files into a bundle that are optimized for efficient, cached
|
14
|
+
deliver directly from your server or using a CDN.
|
15
|
+
|
16
|
+
Some of the benefits of using Abbot versus assembling your own content
|
17
|
+
include:
|
18
|
+
|
19
|
+
* Easy maintenance. Organize your source content in a way that is useful for
|
20
|
+
you without impacting performance on loaded apps.
|
21
|
+
|
22
|
+
* Automatically versioned URLs. Serve content with long expiration dates
|
23
|
+
while Abbot handles the cache invalidation for you.
|
24
|
+
|
25
|
+
* Dependency management. Divide your code into frameworks; load 3rd party
|
26
|
+
libraries. Abbot will make sure everything loads in the correct order.
|
27
|
+
|
28
|
+
* Packing. Combines JavaScript and CSS into single files to minimize the
|
29
|
+
number of resources you download for each page.
|
30
|
+
|
31
|
+
Although Abbot is intended primarily for building Web applications that
|
32
|
+
use the SproutCore JavaScript framework, you can also use it to efficiently build any kind of static web content, even if SproutCore is not involved.
|
33
|
+
|
34
|
+
Abbot can be used both directly from the command line or as a ruby library.
|
35
|
+
|
36
|
+
== USING ABBOT WITH SPROUTCORE:
|
37
|
+
|
38
|
+
This gem includes both the Abbot build tools and a copy of the SproutCore
|
39
|
+
JavaScript framework. You can use built-in commands to create, develop,
|
40
|
+
build, and deploy SproutCore-based applications.
|
41
|
+
|
42
|
+
== KNOWN LIMITATIONS:
|
43
|
+
|
44
|
+
* Currently does not support sites using relative-links. You must specify
|
45
|
+
the absolute path you expect built targets to be hosted as.
|
46
|
+
|
47
|
+
== SYNOPSIS:
|
48
|
+
|
49
|
+
To create a new project:
|
50
|
+
|
51
|
+
sc-init my_app
|
52
|
+
|
53
|
+
To test said project:
|
54
|
+
|
55
|
+
cd my_app
|
56
|
+
sc-server
|
57
|
+
open http://localhost:4020/my_app (in web browser)
|
58
|
+
|
59
|
+
Write code, refresh, debug. Once you are ready to deploy, build your static
|
60
|
+
output using:
|
61
|
+
|
62
|
+
cd my_app
|
63
|
+
sc-build my_app -rc
|
64
|
+
|
65
|
+
Copy the resulting files found in my_app/tmp/build to your server and you are
|
66
|
+
deployed!
|
67
|
+
|
68
|
+
== REQUIREMENTS:
|
69
|
+
|
70
|
+
* Ruby 1.8.6 or later. Ruby 1.9 is currently untested
|
71
|
+
* extlib 0.9.9 or later
|
72
|
+
* rack 0.9.1 or later
|
73
|
+
* erubis 2.6.2 or later
|
74
|
+
* json_pure 1.1.0 or later
|
75
|
+
|
76
|
+
== INSTALL:
|
77
|
+
|
78
|
+
sudo gem install sproutcore
|
79
|
+
|
80
|
+
== LICENSE:
|
81
|
+
|
82
|
+
Copyright (c) 2009 Apple, Inc.
|
83
|
+
Portions copyright (c) 2006-2009 Sprout Systems, Inc. and contributors
|
84
|
+
|
85
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
86
|
+
a copy of this software and associated documentation files (the
|
87
|
+
'Software'), to deal in the Software without restriction, including
|
88
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
89
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
90
|
+
permit persons to whom the Software is furnished to do so, subject to
|
91
|
+
the following conditions:
|
92
|
+
|
93
|
+
The above copyright notice and this permission notice shall be
|
94
|
+
included in all copies or substantial portions of the Software.
|
95
|
+
|
96
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
97
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
98
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
99
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
100
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
101
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
102
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,54 @@
|
|
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
|
+
# This Rakefile is used to build and distribute the SproutCore Gem. It
|
9
|
+
# requires the "bones" gem to provide the rake tasks needed for release.
|
10
|
+
|
11
|
+
################################################
|
12
|
+
## LOAD BONES
|
13
|
+
##
|
14
|
+
begin
|
15
|
+
require 'bones'
|
16
|
+
Bones.setup
|
17
|
+
rescue LoadError
|
18
|
+
puts "WARN: bones gem is required to build SproutCore Gem"
|
19
|
+
#load 'tasks/setup.rb'
|
20
|
+
end
|
21
|
+
|
22
|
+
ensure_in_path 'lib'
|
23
|
+
require 'sproutcore'
|
24
|
+
|
25
|
+
################################################
|
26
|
+
## DEPENDENCIES
|
27
|
+
##
|
28
|
+
|
29
|
+
depend_on 'extlib', ">= 0.9.9"
|
30
|
+
depend_on 'rack', '>= 0.9.1'
|
31
|
+
depend_on 'erubis', ">= 2.6.2"
|
32
|
+
depend_on 'json_pure', ">= 1.1.0"
|
33
|
+
|
34
|
+
################################################
|
35
|
+
## PROJECT DESCRIPTION
|
36
|
+
##
|
37
|
+
|
38
|
+
task :default => 'spec:specdoc'
|
39
|
+
|
40
|
+
PROJ.name = 'sproutcore'
|
41
|
+
PROJ.authors = 'Sprout Systems, Inc. Apple, Inc. and contributors'
|
42
|
+
PROJ.email = 'contact@sproutcore.com'
|
43
|
+
PROJ.url = 'http://www.sproutcore.com/sproutcore'
|
44
|
+
PROJ.version = SC::VERSION
|
45
|
+
PROJ.rubyforge.name = 'sproutcore'
|
46
|
+
PROJ.ruby_opts = []
|
47
|
+
PROJ.spec.opts << '--color'
|
48
|
+
PROJ.exclude << '^coverage/' << '\.gitignore' << '\.gitmodules' << ".DS_Store"
|
49
|
+
|
50
|
+
# For development builds add timestamp to the version number to auto-version
|
51
|
+
# development gems.
|
52
|
+
PROJ.version += ".#{Time.now.strftime("%Y%m%d%H%M%S")}" if !ENV['VERSION']
|
53
|
+
|
54
|
+
# EOF
|
data/Todo.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
- Add manifest:prepare_build_tasks:image + build:image tasks to use pngcrush on PNG's.
|
data/bin/sc-build
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# ===========================================================================
|
3
|
+
# Project: Abbot - SproutCore Build Tools
|
4
|
+
# Copyright: ©2009 Apple, Inc.
|
5
|
+
# portions copyright @2006-2009 Sprout Systems, Inc.
|
6
|
+
# and contributors
|
7
|
+
# ===========================================================================
|
8
|
+
|
9
|
+
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
|
10
|
+
|
11
|
+
SC::Tools.invoke 'build'
|
12
|
+
|
13
|
+
# EOF
|
data/bin/sc-build-number
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# ===========================================================================
|
3
|
+
# Project: Abbot - SproutCore Build Tools
|
4
|
+
# Copyright: ©2009 Apple, Inc.
|
5
|
+
# portions copyright @2006-2009 Sprout Systems, Inc.
|
6
|
+
# and contributors
|
7
|
+
# ===========================================================================
|
8
|
+
|
9
|
+
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
|
10
|
+
|
11
|
+
SC::Tools.invoke :build_number
|
12
|
+
|
13
|
+
# EOF
|
data/bin/sc-gen
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# ===========================================================================
|
3
|
+
# Project: Abbot - SproutCore Build Tools
|
4
|
+
# Copyright: ©2009 Apple, Inc.
|
5
|
+
# portions copyright @2006-2009 Sprout Systems, Inc.
|
6
|
+
# and contributors
|
7
|
+
# ===========================================================================
|
8
|
+
|
9
|
+
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
|
10
|
+
|
11
|
+
SC::Tools.invoke 'gen'
|
12
|
+
|
13
|
+
# EOF
|
data/bin/sc-init
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# ===========================================================================
|
3
|
+
# Project: Abbot - SproutCore Build Tools
|
4
|
+
# Copyright: ©2009 Apple, Inc.
|
5
|
+
# portions copyright @2006-2009 Sprout Systems, Inc.
|
6
|
+
# and contributors
|
7
|
+
# ===========================================================================
|
8
|
+
|
9
|
+
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
|
10
|
+
|
11
|
+
SC::Tools.invoke 'init'
|
12
|
+
|
13
|
+
# EOF
|
data/bin/sc-manifest
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# ===========================================================================
|
3
|
+
# Project: Abbot - SproutCore Build Tools
|
4
|
+
# Copyright: ©2009 Apple, Inc.
|
5
|
+
# portions copyright @2006-2009 Sprout Systems, Inc.
|
6
|
+
# and contributors
|
7
|
+
# ===========================================================================
|
8
|
+
|
9
|
+
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
|
10
|
+
|
11
|
+
SC::Tools.invoke :manifest
|
12
|
+
|
13
|
+
# EOF
|
data/bin/sc-server
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# ===========================================================================
|
3
|
+
# Project: Abbot - SproutCore Build Tools
|
4
|
+
# Copyright: ©2009 Apple, Inc.
|
5
|
+
# portions copyright @2006-2009 Sprout Systems, Inc.
|
6
|
+
# and contributors
|
7
|
+
# ===========================================================================
|
8
|
+
|
9
|
+
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
|
10
|
+
|
11
|
+
SC::Tools.invoke 'server'
|
12
|
+
|
13
|
+
# EOF
|
data/bin/sproutcore
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# ===========================================================================
|
3
|
+
# Project: Abbot - SproutCore Build Tools
|
4
|
+
# Copyright: ©2009 Apple, Inc.
|
5
|
+
# portions copyright @2006-2009 Sprout Systems, Inc.
|
6
|
+
# and contributors
|
7
|
+
# ===========================================================================
|
8
|
+
|
9
|
+
require File.expand_path(
|
10
|
+
File.join(File.dirname(__FILE__), %w[.. lib sproutcore]))
|
11
|
+
|
12
|
+
SC::Tools.start
|
13
|
+
|
14
|
+
# EOF
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# ===========================================================================
|
2
|
+
# SC::Target Buildtasks
|
3
|
+
# copyright 2008, Sprout Systems, Inc. and Apple, Inc. all rights reserved
|
4
|
+
# ===========================================================================
|
5
|
+
|
6
|
+
# Tasks invoked while building Target objects. You can override these methods
|
7
|
+
# in your buildfiles. You can also define new builders and assign them to
|
8
|
+
# manifest entries if you also override/extend manifest:build.
|
9
|
+
namespace :build do
|
10
|
+
|
11
|
+
desc "copies a single resource"
|
12
|
+
build_task :copy do
|
13
|
+
require 'fileutils'
|
14
|
+
FileUtils.mkdir_p(File.dirname(DST_PATH))
|
15
|
+
FileUtils.cp_r(SRC_PATH, DST_PATH)
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "builds a single css files"
|
19
|
+
build_task :css do
|
20
|
+
SC::Builder::Stylesheet.build ENTRY, DST_PATH
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "builds a single sass file"
|
24
|
+
build_task :sass do
|
25
|
+
SC::Builder::Sass.build ENTRY, DST_PATH
|
26
|
+
end
|
27
|
+
|
28
|
+
desc "builds a single javascript file"
|
29
|
+
build_task :javascript do
|
30
|
+
SC::Builder::JavaScript.build ENTRY, DST_PATH
|
31
|
+
end
|
32
|
+
|
33
|
+
desc "builds an html file, possibly executing render tasks"
|
34
|
+
build_task :html do
|
35
|
+
SC::Builder::Html.build ENTRY, DST_PATH
|
36
|
+
end
|
37
|
+
|
38
|
+
desc "builds a strings file for use by server-side processing"
|
39
|
+
build_task :strings do
|
40
|
+
SC::Builder::Strings.build ENTRY, DST_PATH
|
41
|
+
end
|
42
|
+
|
43
|
+
desc "combines several source files into a single target, using the ordered_entries property if it exists"
|
44
|
+
build_task :combine do
|
45
|
+
SC::Builder::Combine.build ENTRY, DST_PATH
|
46
|
+
end
|
47
|
+
|
48
|
+
namespace :minify do
|
49
|
+
|
50
|
+
desc "Minifies a CSS file by invoking CSSmin"
|
51
|
+
build_task :css do
|
52
|
+
SC::Builder::Minify.build ENTRY, DST_PATH, :css
|
53
|
+
end
|
54
|
+
|
55
|
+
desc "minifies a JavaScript file by invoking the YUI compressor"
|
56
|
+
build_task :javascript do
|
57
|
+
SC::Builder::Minify.build ENTRY, DST_PATH, :javascript
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
desc "builds a unit test"
|
63
|
+
build_task :test do
|
64
|
+
SC::Builder::Test.build ENTRY, DST_PATH
|
65
|
+
end
|
66
|
+
|
67
|
+
desc "builds the unit test index, describing the installed unit tests"
|
68
|
+
build_task :test_index do
|
69
|
+
SC::Builder::TestIndex.build ENTRY, DST_PATH
|
70
|
+
end
|
71
|
+
|
72
|
+
|
73
|
+
end
|