Permalink
Browse files

add strategy for public in readme

  • Loading branch information...
1 parent b6b759e commit 62353a14e4a72eecadfcfc9f4348f3b9925d4ba5 @danielvlopes committed Oct 15, 2010
View
25 README.rdoc
@@ -6,6 +6,31 @@ Template for Rails 3.0 apps
rails new app -m http://github.com/danielvlopes/base_app/raw/master/template.rb
+== Public folder strategy
+
+ public/javascripts
+ |-- README.md
+ |-- admin
+ | |-- date.js
+ | `-- datePicker.js
+ |-- common
+ | |-- application.js
+ | |-- jquery-1.3.2.js
+ | |-- jquery-ui-1.5.3.js
+ | |-- jquery.facebox.js
+ |-- superfolio
+ | |-- _plugins
+ | | |-- jquery.autocomplete.js
+ | | `-- jquery.truncate.js
+ | | `-- jquery.superfolio.toggle.js
+ | |-- application.js
+ | |-- blob.js
+ `-- commit.js
+
+* It allows to namespace specific files to specific layouts (admin, superfolio, etc) and share files between apps (common).
+* I can lay out files however I want within each of these namespaces, and reorganize them at will.
+* All jquery plugins should have jquery. and app specific plugins should be jquery.appname.pluginame.
+
== License
This project is released under the MIT License, including all CSS and design stuffs.
View
0 public/javascripts/vendor/PIE.htc → public/javascripts/common/PIE.htc
File renamed without changes.
View
0 .../javascripts/vendor/jquery.placeholder.js → .../javascripts/common/jquery.placeholder.js
File renamed without changes.
View
0 public/javascripts/vendor/pngfix.js → public/javascripts/common/pngfix.js
File renamed without changes.
View
10 template.rb
@@ -58,11 +58,11 @@ def base_app_url
get "http://github.com/rails/jquery-ujs/raw/master/src/rails.js", "public/javascripts/rails.js"
-run "mkdir public/javascripts/app public/javascripts/vendor"
+run "mkdir public/javascripts/app public/javascripts/common"
-get_file "public/javascripts/vendor/PIE.htc"
-get_file "public/javascripts/vendor/pngfix.js"
-get_file "public/javascripts/vendor/jquery.placeholder.js"
+get_file "public/javascripts/common/PIE.htc"
+get_file "public/javascripts/common/pngfix.js"
+get_file "public/javascripts/common/jquery.placeholder.js"
# scaffold customization
run "mkdir -p lib/templates/rails/scaffold_controller"
@@ -95,8 +95,6 @@ def base_app_url
GENERATORS
-rake 'db:migrate'
-
# git
git :init

0 comments on commit 62353a1

Please sign in to comment.