Pre
// .railsrc
--database=postgresql
--skip-action-mailer
--skip-action-mailbox
--skip-action-text
--skip-active-storage
--skip-action-cable
--skip-test
--skip-jbuilder
Start
rails new [name] --css tailwind
- Adicionar arquivos .DS_Store no .gitignore:
echo "\\n# Ignores .DS_Store files\\n.DS_Store" >> .gitignore;
git add -A;
git commit -m 'chore(git): ignora arquivos ".DS_Store"'
gem "haml-rails"
bundle;
git add -A;
git commit -m 'chore(deps): adiciona a haml-rails'
- Converter os arquivos de layout para Haml:
rails generate haml:application_layout convert
- Adicionar a gem rspec-rails:
group :development, :test do
gem "debug", platforms: %i[ mri mingw x64_mingw ]
gem "rspec-rails"
end
bundle;
git add -A;
git commit -m 'chore(deps): adiciona a rspec-rails';
rails generate rspec:install;
git add -A;
git commit -m 'chore(deps): gera a pasta spec'