Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

new templates

  • Loading branch information...
commit a78cc44288eb5b2e970ce567f114f25e1ebf9586 1 parent 8ea9c7a
Kevin Whinnery kwhinnery authored
5 .project
@@ -5,6 +5,11 @@
5 5 <projects>
6 6 </projects>
7 7 <buildSpec>
  8 + <buildCommand>
  9 + <name>com.aptana.ide.core.unifiedBuilder</name>
  10 + <arguments>
  11 + </arguments>
  12 + </buildCommand>
8 13 </buildSpec>
9 14 <natures>
10 15 <nature>com.aptana.projects.webnature</nature>
4 README.md
Source Rendered
@@ -13,7 +13,3 @@ How to install
13 13 * The name of the folder doesn't really matter, just so long as it has the `ruble` extension
14 14 4. Enjoy!
15 15
16   -Building template projects
17   -----
18   -
19   -Run `rake` with no arguments to generate the .zip files for local project templates
33 Rakefile
... ... @@ -1,33 +0,0 @@
1   -require 'rubygems'
2   -require 'rake'
3   -require 'zip/zip'
4   -require 'fileutils'
5   -
6   -rake = Rake::Application.new
7   -
8   -task :default => [:build] do
9   -end
10   -
11   -desc "Build all Titanium template projects"
12   -task :build do
13   - #clear out old .zip files
14   - FileUtils.mkdir 'staging' unless File.exists? 'staging'
15   - FileUtils.rm_rf Dir.glob('staging/*')
16   -
17   - # Package up a .zip file for each of the project templates
18   - Dir.foreach('templates') do |template|
19   - next if template == '.' or template == '..'
20   -
21   - puts "Packaging #{template}..."
22   -
23   - # Grab all files/subfolders and throw them in a zip that Studio can use
24   - Zip::ZipFile.open("staging/#{template}.zip", Zip::ZipFile::CREATE) do |zipfile|
25   - Dir["templates/#{template}/**/*"].each do |file|
26   - next if File.directory? file
27   - zipfile.add(file.sub("templates/#{template}/",''),file)
28   - end
29   - end
30   - end
31   -
32   - puts "done!"
33   -end
42 bundle.rb
@@ -46,27 +46,27 @@
46 46 main_menu.command 'vibrate'
47 47 end
48 48
49   - # project_template "Single Window Application" do |t|
50   - # t.type = :titanium_mobile
51   - # t.location = "staging/SingleWindow.zip"
52   - # t.description = "A single window application with a single view - a mostly blank canvas. Requires Titanium Mobile SDK 1.7.5+ or 1.8.0+"
53   - # t.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_single_window.png"
54   - # puts t
55   - # end
  49 + project_template "Single Window Application" do |t|
  50 + t.type = :titanium_mobile
  51 + t.location = "git://github.com/appcelerator-developer-relations/Template.SingleWindow.git"
  52 + t.description = "A single window application with a single view - a mostly blank canvas. Requires Titanium Mobile SDK 1.8.0+."
  53 + t.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_single_window.png"
  54 + puts t
  55 + end
56 56
57   - # project_template "Master/Detail Application" do |t|
58   - # t.type = :titanium_mobile
59   - # t.location = "staging/MasterDetail.zip"
60   - # t.description = "A master detail view, utilizing a native table view component and platform-specific UI and navigation. A starting point for a navigation-based application with hierarchical data, or a stack of windows. Requires Titanium Mobile SDK 1.7.5+ or 1.8.0+."
61   - # t.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_detail.png"
62   - # puts t
63   - # end
  57 + project_template "Master/Detail Application" do |t|
  58 + t.type = :titanium_mobile
  59 + t.location = "git://github.com/appcelerator-developer-relations/Template.MasterDetail.git"
  60 + t.description = "A master detail view, utilizing a native table view component and platform-specific UI and navigation. A starting point for a navigation-based application with hierarchical data, or a stack of windows. Requires Titanium Mobile SDK 1.8.0+."
  61 + t.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_detail.png"
  62 + puts t
  63 + end
64 64
65   - # project_template "Tabbed Application" do |t|
66   - # t.type = :titanium_mobile
67   - # t.location = "staging/Tabbed.zip"
68   - # t.description = "A tabbed application, consisting of multiple stacks of windows associated with tabs in a tab group. A starting point for tab-based application with multiple top-level windows. Requires Titanium Mobile SDK 1.7.5+ or 1.8.0+."
69   - # t.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_tabbed.png"
70   - # puts t
71   - # end
  65 + project_template "Tabbed Application" do |t|
  66 + t.type = :titanium_mobile
  67 + t.location = "git://github.com/appcelerator-developer-relations/Template.Tabbed.git"
  68 + t.description = "A tabbed application, consisting of multiple stacks of windows associated with tabs in a tab group. A starting point for tab-based application with multiple top-level windows. Requires Titanium Mobile SDK 1.8.0+."
  69 + t.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_tabbed.png"
  70 + puts t
  71 + end
72 72 end
52 samples/project_samples.rb
... ... @@ -1,31 +1,31 @@
1 1 require 'ruble'
2 2
3   -# project_sample "Geocoder" do |s|
4   - # s.id = "com.appcelerator.titanium.mobile.samples.mapping"
5   - # s.category = "com.appcelerator.titanium.mobile.samples.category"
6   - # s.location = "git://github.com/appcelerator-developer-relations/Sample.Mapping.git"
7   - # s.description = "A sample Master/Detail app that uses native maps to plot locations. With it you can forward geocode addresses and add them as annotations to the map."
8   - # s.natures = ["com.appcelerator.titanium.mobile.nature", "com.aptana.projects.webnature"]
9   - # s.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_geo.png"
10   -# end
11   -#
12   -# project_sample "RSS Reader" do |s|
13   - # s.id = "com.appcelerator.titanium.mobile.samples.rss"
14   - # s.category = "com.appcelerator.titanium.mobile.samples.category"
15   - # s.location = "git://github.com/appcelerator-developer-relations/Sample.RSS.git"
16   - # s.description = "A sample Master/Detail app that creates a RSS reader. With it you can pull live RSS feeds from the internet, list them along with thumbnails, then drill down to the article itself."
17   - # s.natures = ["com.appcelerator.titanium.mobile.nature", "com.aptana.projects.webnature"]
18   - # s.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_rss.png"
19   -# end
20   -#
21   -# project_sample "Todo List" do |s|
22   - # s.id = "com.appcelerator.titanium.mobile.samples.todo"
23   - # s.category = "com.appcelerator.titanium.mobile.samples.category"
24   - # s.location = "git://github.com/appcelerator-developer-relations/Sample.Todo.git"
25   - # s.description = "A sample tabbed application that creates a basic todo list. With this app you can maintain a listing of tasks to be completed, add to that list, and mark tasks as done."
26   - # s.natures = ["com.appcelerator.titanium.mobile.nature", "com.aptana.projects.webnature"]
27   - # s.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_to_do_list.png"
28   -# end
  3 +project_sample "Geocoder" do |s|
  4 + s.id = "com.appcelerator.titanium.mobile.samples.mapping"
  5 + s.category = "com.appcelerator.titanium.mobile.samples.category"
  6 + s.location = "git://github.com/appcelerator-developer-relations/Sample.Mapping.git"
  7 + s.description = "A sample Master/Detail app that uses native maps to plot locations. With it you can forward geocode addresses and add them as annotations to the map."
  8 + s.natures = ["com.appcelerator.titanium.mobile.nature", "com.aptana.projects.webnature"]
  9 + s.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_geo.png"
  10 +end
  11 +
  12 +project_sample "RSS Reader" do |s|
  13 + s.id = "com.appcelerator.titanium.mobile.samples.rss"
  14 + s.category = "com.appcelerator.titanium.mobile.samples.category"
  15 + s.location = "git://github.com/appcelerator-developer-relations/Sample.RSS.git"
  16 + s.description = "A sample Master/Detail app that creates a RSS reader. With it you can pull live RSS feeds from the internet, list them along with thumbnails, then drill down to the article itself."
  17 + s.natures = ["com.appcelerator.titanium.mobile.nature", "com.aptana.projects.webnature"]
  18 + s.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_rss.png"
  19 +end
  20 +
  21 +project_sample "Todo List" do |s|
  22 + s.id = "com.appcelerator.titanium.mobile.samples.todo"
  23 + s.category = "com.appcelerator.titanium.mobile.samples.category"
  24 + s.location = "git://github.com/appcelerator-developer-relations/Sample.Todo.git"
  25 + s.description = "A sample tabbed application that creates a basic todo list. With this app you can maintain a listing of tasks to be completed, add to that list, and mark tasks as done."
  26 + s.natures = ["com.appcelerator.titanium.mobile.nature", "com.aptana.projects.webnature"]
  27 + s.icon = "http://preview.appcelerator.com/dashboard/img/icons/icon_to_do_list.png"
  28 +end
29 29
30 30 project_sample "Kitchen Sink" do |s|
31 31 s.id = "com.appcelerator.titanium.mobile.samples.kitchensink"
BIN  staging/.DS_Store.zip
Binary file not shown
BIN  staging/MasterDetail.zip
Binary file not shown
BIN  staging/SingleWindow.zip
Binary file not shown
BIN  staging/Tabbed.zip
Binary file not shown

0 comments on commit a78cc44

Please sign in to comment.
Something went wrong with that request. Please try again.