Created
February 1, 2011 13:33
-
-
Save ruanwz/805854 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
david@david-laptop:~/test/rails$ templater myapp | |
create | |
create README | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/controllers/application_controller.rb | |
create app/helpers/application_helper.rb | |
create app/mailers | |
create app/models | |
create app/views/layouts/application.html.erb | |
create config | |
create config/routes.rb | |
create config/application.rb | |
create config/environment.rb | |
create config/environments | |
create config/environments/development.rb | |
create config/environments/production.rb | |
create config/environments/test.rb | |
create config/initializers | |
create config/initializers/backtrace_silencers.rb | |
create config/initializers/inflections.rb | |
create config/initializers/mime_types.rb | |
create config/initializers/secret_token.rb | |
create config/initializers/session_store.rb | |
create config/locales | |
create config/locales/en.yml | |
create config/boot.rb | |
create db | |
create db/seeds.rb | |
create doc | |
create doc/README_FOR_APP | |
create lib | |
create lib/tasks | |
create lib/tasks/.gitkeep | |
create log | |
create log/server.log | |
create log/production.log | |
create log/development.log | |
create log/test.log | |
create public | |
create public/404.html | |
create public/422.html | |
create public/500.html | |
create public/favicon.ico | |
create public/index.html | |
create public/robots.txt | |
create public/images | |
create public/images/rails.png | |
create public/stylesheets | |
create public/stylesheets/.gitkeep | |
create public/javascripts | |
create public/javascripts/application.js | |
create public/javascripts/controls.js | |
create public/javascripts/dragdrop.js | |
create public/javascripts/effects.js | |
create public/javascripts/prototype.js | |
create public/javascripts/rails.js | |
create script | |
create script/rails | |
create test | |
create test/fixtures | |
create test/functional | |
create test/integration | |
create test/performance/browsing_test.rb | |
create test/test_helper.rb | |
create test/unit | |
create tmp | |
create tmp/sessions | |
create tmp/sockets | |
create tmp/cache | |
create tmp/pids | |
create vendor/plugins | |
create vendor/plugins/.gitkeep | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/template_runner.rb | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/default.rb | |
remove README | |
remove public/index.html | |
remove public/robots.txt | |
remove public/images/rails.png | |
create README | |
create log/.gitkeep | |
create tmp/.gitkeep | |
create public/javascripts/html5.js | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/git.rb | |
run git init from "." | |
Initialized empty Git repository in /home/david/test/rails/myapp/.git/ | |
append .gitignore | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/orm.rb | |
Which ORM/ODM would you like to use? | |
Option ORM/ODM | |
1 Mongoid | |
2 ActiveRecord | |
Option: 2 | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/active_record.rb | |
gemfile sqlite3-ruby | |
gsub config/application.rb | |
create config/database.yml | |
run cp config/database.yml config/database.yml.example from "." | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/testing_framework.rb | |
Which Testing Framework would you like to use? | |
Option Testing Framework | |
1 rspec | |
2 TestUnit | |
Option: 1 | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/rspec.rb | |
Replacing TestUnit with RSpec as your Testing Framework | |
gemfile rspec-rails (>= 2.4.1) | |
remove test | |
gsub config/application.rb | |
Would you like to add Remarkable RSpec matchers? [y|n]: n | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/factory_girl.rb | |
Replacing Fixtures with FactoryGirl | |
gemfile factory_girl_rails (1.1.beta1) | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/javascript_framework.rb | |
Which JavaScript Framework would you like to use? | |
Option JavaScript Framework | |
1 jquery | |
2 Prototype | |
Option: 1 | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/jquery.rb | |
Replacing Prototype with JQuery as your JavaScript Framework | |
gemfile jquery-rails | |
remove public/javascripts/rails.js | |
gsub config/application.rb | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/haml.rb | |
[Template Engine] Would you like use Haml for your view templates? [y|n]: y | |
gemfile haml | |
gemfile haml-rails | |
remove app/views/layouts/application.html.erb | |
create app/views/layouts/application.html.haml | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/sass.rb | |
[Stylesheets] Would you like to use Sass for Syntactically Awesome Stylesheets? [y|n]: y | |
gemfile haml | |
Would you like to use Compass? [y|n]: y | |
Option Design Framework | |
1 Compass | |
2 Compass with blueprint semantic | |
3 Compass with blueprint basic | |
Option: 2 | |
gemfile compass | |
apply /home/david/.rvm/gems/ruby-1.9.2-p136/gems/rails_templater-0.1.1/lib/template_framework/recipes/cucumber.rb | |
[Integration Testing] Would you like to add integration testing with Cucumber? [y|n]: y | |
gemfile capybara (0.4.0) | |
gemfile cucumber-rails | |
gemfile launchy | |
Initial generation complete | |
Beginning bundle install | |
run bundle install from "." | |
Fetching source index for http://rubygems.org/ | |
Using rake (0.8.7) | |
Using abstract (1.0.0) | |
Using activesupport (3.0.3) | |
Using builder (2.1.2) | |
Using i18n (0.5.0) | |
Using activemodel (3.0.3) | |
Using erubis (2.6.6) | |
Using rack (1.2.1) | |
Using rack-mount (0.6.13) | |
Using rack-test (0.5.7) | |
Installing tzinfo (0.3.24) | |
Using actionpack (3.0.3) | |
Using mime-types (1.16) | |
Using polyglot (0.3.1) | |
Using treetop (1.4.9) | |
Installing mail (2.2.15) | |
Using actionmailer (3.0.3) | |
Installing arel (2.0.7) | |
Using activerecord (3.0.3) | |
Using activeresource (3.0.3) | |
Using bundler (1.0.10) | |
^[[6~Installing celerity (0.8.7) | |
Installing culerity (0.2.15) | |
Using nokogiri (1.4.4) | |
Using ffi (0.6.3) | |
Installing childprocess (0.1.6) | |
Installing json_pure (1.5.1) | |
Using rubyzip (0.9.4) | |
Installing selenium-webdriver (0.1.2) | |
Installing xpath (0.1.3) | |
Using capybara (0.4.0) | |
Installing haml (3.0.25) | |
Installing compass (0.10.6) | |
Using configuration (1.2.0) | |
Using diff-lcs (1.1.2) | |
Using json (1.4.6) | |
Installing gherkin (2.3.3) with native extensions | |
Using term-ansicolor (1.0.5) | |
Installing cucumber (0.10.0) | |
Using cucumber-rails (0.3.2) | |
Installing factory_girl (2.0.0.beta1) | |
Using thor (0.14.6) | |
Using railties (3.0.3) | |
Using rails (3.0.3) | |
Installing factory_girl_rails (1.1.beta1) | |
Installing haml-rails (0.3.4) | |
Installing jquery-rails (0.2.6) | |
Using launchy (0.3.7) | |
Installing rspec-core (2.4.0) | |
Installing rspec-expectations (2.4.0) | |
Installing rspec-mocks (2.4.0) | |
Installing rspec (2.4.0) | |
Installing rspec-rails (2.4.1) | |
Installing sqlite3 (1.3.3) with native extensions | |
Installing sqlite3-ruby (1.3.3) | |
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. | |
bundle install complete | |
generate rspec:install | |
create .rspec | |
create spec | |
create spec/spec_helper.rb | |
gsub spec/spec_helper.rb | |
insert spec/spec_helper.rb | |
create lib/generators | |
create lib/generators/factory_girl.rb | |
create lib/generators/factory_girl/model/model_generator.rb | |
create lib/generators/factory_girl/model/templates/fixtures.rb | |
generate jquery:install | |
remove public/javascripts/controls.js | |
remove public/javascripts/dragdrop.js | |
remove public/javascripts/effects.js | |
remove public/javascripts/prototype.js | |
fetching jQuery (1.4.4) | |
create public/javascripts/jquery.js | |
create public/javascripts/jquery.min.js | |
fetching jQuery UJS adapter (github HEAD) | |
create public/javascripts/rails.js | |
run compass init rails . --using blueprint/semantic --css-dir=public/stylesheets/compiled --sass-dir=app/stylesheets from "." | |
directory ./app/stylesheets/ | |
directory ./app/stylesheets/partials/ | |
exists ./public/images | |
directory ./public/stylesheets/compiled/ | |
exists ./config | |
create ./config/compass.rb | |
exists ./config/initializers | |
create ./config/initializers/compass.rb | |
convert screen.sass | |
create ./app/stylesheets/screen.scss | |
convert _base.sass | |
create ./app/stylesheets/partials/_base.scss | |
convert _form.sass | |
create ./app/stylesheets/partials/_form.scss | |
convert _page.sass | |
create ./app/stylesheets/partials/_page.scss | |
convert _two_col.sass | |
create ./app/stylesheets/partials/_two_col.scss | |
convert print.sass | |
create ./app/stylesheets/print.scss | |
convert ie.sass | |
create ./app/stylesheets/ie.scss | |
create ./public/images/grid.png | |
Congratulations! Your rails project has been configured to use Compass. | |
Just one more thing left to do: Register the compass gem. | |
In Rails 2.2 & 2.3, add the following to your environment.rb: | |
config.gem "compass", :version => ">= 0.10.6" | |
In Rails 3, add the following to your Gemfile: | |
gem "compass", ">= 0.10.6" | |
Then, make sure you restart your server. | |
Sass will automatically compile your stylesheets during the next | |
page request and keep them up to date when they change. | |
Next add these lines to the head of your layouts: | |
%head | |
= stylesheet_link_tag 'compiled/screen.css', :media => 'screen, projection' | |
= stylesheet_link_tag 'compiled/print.css', :media => 'print' | |
/[if lt IE 8] | |
= stylesheet_link_tag 'compiled/ie.css', :media => 'screen, projection' | |
(You are using haml, aren't you?) | |
generate cucumber:install --capybara --rspec | |
create config/cucumber.yml | |
create script/cucumber | |
chmod script/cucumber | |
create features/step_definitions | |
create features/step_definitions/web_steps.rb | |
create features/support | |
create features/support/paths.rb | |
create features/support/env.rb | |
exist lib/tasks | |
create lib/tasks/cucumber.rake | |
gsub config/database.yml | |
gsub config/database.yml | |
force config/database.yml | |
gsub features/support/env.rb | |
insert features/support/env.rb | |
insert features/support/env.rb | |
run git add . from "." | |
run git commit -m 'Initial commit' from "." | |
[master (root-commit) ad70a2f] Initial commit | |
54 files changed, 8697 insertions(+), 0 deletions(-) | |
create mode 100644 .gitignore | |
create mode 100644 .rspec | |
create mode 100644 Gemfile | |
create mode 100644 Gemfile.lock | |
create mode 100644 README | |
create mode 100644 Rakefile | |
create mode 100644 app/controllers/application_controller.rb | |
create mode 100644 app/helpers/application_helper.rb | |
create mode 100644 app/stylesheets/ie.scss | |
create mode 100644 app/stylesheets/partials/_base.scss | |
create mode 100644 app/stylesheets/partials/_form.scss | |
create mode 100644 app/stylesheets/partials/_page.scss | |
create mode 100644 app/stylesheets/partials/_two_col.scss | |
create mode 100644 app/stylesheets/print.scss | |
create mode 100644 app/stylesheets/screen.scss | |
create mode 100644 app/views/layouts/application.html.haml | |
create mode 100644 config.ru | |
create mode 100644 config/application.rb | |
create mode 100644 config/boot.rb | |
create mode 100644 config/compass.rb | |
create mode 100644 config/cucumber.yml | |
create mode 100644 config/database.yml.example | |
create mode 100644 config/environment.rb | |
create mode 100644 config/environments/development.rb | |
create mode 100644 config/environments/production.rb | |
create mode 100644 config/environments/test.rb | |
create mode 100644 config/initializers/backtrace_silencers.rb | |
create mode 100644 config/initializers/compass.rb | |
create mode 100644 config/initializers/inflections.rb | |
create mode 100644 config/initializers/mime_types.rb | |
create mode 100644 config/initializers/secret_token.rb | |
create mode 100644 config/initializers/session_store.rb | |
create mode 100644 config/locales/en.yml | |
create mode 100644 config/routes.rb | |
create mode 100644 db/seeds.rb | |
create mode 100644 doc/README_FOR_APP | |
create mode 100644 features/step_definitions/web_steps.rb | |
create mode 100644 features/support/env.rb | |
create mode 100644 features/support/paths.rb | |
create mode 100644 lib/generators/factory_girl.rb | |
create mode 100644 lib/generators/factory_girl/model/model_generator.rb | |
create mode 100644 lib/generators/factory_girl/model/templates/fixtures.rb | |
create mode 100644 lib/tasks/.gitkeep | |
create mode 100644 lib/tasks/cucumber.rake | |
create mode 100644 log/.gitkeep | |
create mode 100644 public/404.html | |
create mode 100644 public/422.html | |
create mode 100644 public/500.html | |
create mode 100644 public/favicon.ico | |
create mode 100644 public/images/grid.png | |
create mode 100644 public/javascripts/application.js | |
create mode 100644 public/javascripts/html5.js | |
create mode 100644 public/javascripts/jquery.js | |
create mode 100644 public/javascripts/jquery.min.js | |
create mode 100644 public/javascripts/rails.js | |
create mode 100644 public/stylesheets/.gitkeep | |
create mode 100755 script/cucumber | |
create mode 100755 script/rails | |
create mode 100644 spec/spec_helper.rb | |
create mode 100644 tmp/.gitkeep | |
create mode 100644 vendor/plugins/.gitkeep | |
david@david-laptop:~/test/rails$ | |
david@david-laptop:~/test/rails$ | |
david@david-laptop:~/test/rails$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment