bixbite 0.1.1 → 0.1.2

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.
@@ -1,11 +1,11 @@
1
1
  # Bixbite Project Initializer
2
2
 
3
- Bixbite creates a project structure optimal for client-side development.
3
+ Bixbite is a [Ruby gem](http://gemcutter.org/gems/bixbite/) that creates a project structure optimal for client-side development.
4
4
 
5
5
  * Downloads the latest versions of [Google Ajax API Libraries](http://code.google.com/apis/ajaxlibs/)
6
6
  * Uses [LABjs](http://labjs.com/) for parallelized script management
7
- * Allows full use of PHP includes for shared module management
8
- * Bundles a customized [PHP Minify](http://code.google.com/p/minify/) package for on-the-fly compression tests
7
+ * Allows full use of server-side includes for shared module management
8
+ * Bundles a customized [PHP Minify](http://code.google.com/p/minify/) package using [Google's Closure Compiler](http://code.google.com/closure/compiler/) for on-the-fly compression tests
9
9
  * Dynamic to static publishing eliminates server-side dependencies on delivery
10
10
 
11
11
  Additionally, Bixbite includes rake tasks to automatically:
@@ -15,10 +15,12 @@ Additionally, Bixbite includes rake tasks to automatically:
15
15
  * Generate NaturalDocs-compliant documentation
16
16
  * Compress PNG files using [PNGout](http://advsys.net/ken/utils.htm)
17
17
  * Gracefully degrade 24-bit PNG files for Internet Explorer 6
18
- * Deliver compressed versions of CSS & JavaScript files
18
+ * Deliver compressed versions of CSS & JavaScript files using [Google's Closure Compiler](http://code.google.com/closure/compiler/) & [YUI Compressor](http://developer.yahoo.com/yui/compressor/)
19
19
  * Add new files, remove outdated files from Subversion
20
20
  * Generate diff reports for each delivery
21
21
 
22
+ Bixbite can be [fully customized](http://wiki.github.com/doctyper/bixbite) to fit your personal development tastes.
23
+
22
24
  ## Links
23
25
 
24
26
  * [Wiki](http://wiki.github.com/doctyper/bixbite)
@@ -29,7 +31,7 @@ Additionally, Bixbite includes rake tasks to automatically:
29
31
  # Install the gem:
30
32
  gem install bixbite
31
33
 
32
- # Usage
34
+ ## Usage
33
35
 
34
36
  # Generating a Bixbite template
35
37
 
@@ -44,6 +46,38 @@ You may also specify arguments when invoked. Via `bixbite --help`:
44
46
  * --js-lib [ARG]: use specified JavaScript library (options: jQuery, YUI, MooTools)
45
47
  * --source-directory [ARG]: override bundled template with user-defined template
46
48
 
47
- # Wiki
49
+ ## Quick Examples
50
+
51
+ See [Rake tasks](http://wiki.github.com/doctyper/bixbite/rake-tasks) for more information.
52
+
53
+ ### Creation
54
+
55
+ #### Create "Example Project" with EXAMPLE namespace
56
+ `bixbite "Example Project" EXAMPLE`
57
+
58
+ #### Create "Example Project" with EXAMPLE namespace using MooTools
59
+ `bixbite "Example Project" EXAMPLE --js-lib MooTools`
60
+
61
+ #### Create "Example Project" with EXAMPLE namespace using a custom template
62
+ `bixbite "Example Project" EXAMPLE /path/to/custom-template`
63
+
64
+ #### Use a custom template by default
65
+ `bixbite --source-directory /path/to/custom-template`
66
+
67
+ ### Bundled Rake Tasks
68
+
69
+ #### Publish deployable files, generate documentation, perform Subversion tasks
70
+ `rake prep`
71
+
72
+ #### Create new page template
73
+ `rake bixbite:page`
74
+
75
+ #### Publish compressed files to deploy folder
76
+ `rake files:compress`
77
+
78
+ #### Compress PNGs
79
+ `rake png:compress`
80
+
81
+ ## Wiki
48
82
 
49
83
  See the [Bixbite wiki](http://wiki.github.com/doctyper/bixbite) for details on how to utilize the generated template. It also contains details on how to use a customized template if you so wish.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -11,7 +11,8 @@ require "highline/import"
11
11
  options = {
12
12
  :source => File.expand_path(File.dirname(__FILE__) + "/../template/"),
13
13
  :destination => File.expand_path(Dir.getwd),
14
- :lib => 'jQuery'
14
+ :lib => 'jQuery',
15
+ :pngout => true
15
16
  }
16
17
 
17
18
  USER_TEMPLATE = File.expand_path(File.dirname(__FILE__) + "/../user-defined-template")
@@ -46,13 +46,13 @@ module Bixbite
46
46
  require 'net/http'
47
47
 
48
48
  def get domain, source, destination
49
- Net::HTTP.start(domain) { |http|
49
+ Net::HTTP.start(domain) do |http|
50
50
  resp = http.get(source)
51
- open(destination, "wb") { |file|
51
+ open(destination, "wb") do |file|
52
52
  file.write(resp.body)
53
53
  puts "Done!"
54
- }
55
- }
54
+ end
55
+ end
56
56
  end
57
57
 
58
58
  google = 'ajax.googleapis.com'
@@ -70,6 +70,7 @@ module Bixbite
70
70
  get google, '/ajax/libs/mootools/1.2/mootools.js', dest
71
71
  else
72
72
  end
73
+
73
74
  end
74
75
 
75
76
  end
File without changes
@@ -1,5 +1,5 @@
1
1
  /*
2
- BUY TV CSS declarations - IE-Specific CSS styles
2
+ __PROJECT_NAME__ CSS declarations - IE-Specific CSS styles
3
3
  */
4
4
 
5
5
 
@@ -36,7 +36,7 @@
36
36
  $output = ".script(\"$script\")";
37
37
 
38
38
  if ($count == $i) {
39
- $output .= "\n\t\t\t\n\t\t\t// Fire when everything is loaded\n\t\t\t.wait(function() {\n\t\t\t\t__PROJECT_NAME__.utils.init();\n\t\t\t});";
39
+ $output .= "\n\t\t\t\n\t\t\t// Fire when everything is loaded\n\t\t\t.wait(function() {\n\t\t\t\t__PROJECT_NAMESPACE__.utils.init();\n\t\t\t});";
40
40
  } else {
41
41
  $output .= ".wait()\n\t\t\t";
42
42
  }
@@ -0,0 +1,8 @@
1
+ pngout:
2
+ - 'http://static.jonof.id.au/dl/kenutils/pngout-20091108-linux.tar.gz'
3
+
4
+ minify:
5
+ - 'http://minify.googlecode.com/files/minify_2.1.3.zip'
6
+
7
+ naturaldocs:
8
+ - 'http://downloads.sourceforge.net/project/naturaldocs/Stable%20Releases/1.4/NaturalDocs-1.4.zip?use_mirror=cdnetworks-us-1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bixbite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Herrera
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-04 00:00:00 -08:00
13
+ date: 2010-01-28 00:00:00 -08:00
14
14
  default_executable: bixbite
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -175,6 +175,7 @@ files:
175
175
  - template/assets/naturaldocs/NaturalDocs/Styles/Default.css
176
176
  - template/assets/naturaldocs/NaturalDocs/Styles/Roman.css
177
177
  - template/assets/naturaldocs/NaturalDocs/Styles/Small.css
178
+ - template/assets/utilities/.bix
178
179
  - template/assets/utilities/pngout
179
180
  - template/deploy/public_html/.htaccess
180
181
  - template/documentation/js/.htaccess
@@ -242,6 +243,7 @@ files:
242
243
  - template/src/templates/template.html
243
244
  - template/src/yaml/config.yml
244
245
  - template/src/yaml/deploy.yml
246
+ - template/src/yaml/externals.yml
245
247
  - README.markdown
246
248
  has_rdoc: true
247
249
  homepage: http://github.com/doctyper/bixbite