From 1cd64fa43f1aacbf66871b714fe56b14f57dd345 Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Fri, 10 May 2024 10:46:43 -0400 Subject: [PATCH] railsrc: Add application template (#747) Now that [Suspenders 3.0.0][] has [merged][], we can improve the developer experience by placing all options into our `railsrc` file. Once this commit it merged, we can link to our dotfiles from the Suspenders README. Also closes #746 [Suspenders 3.0.0]: https://github.com/thoughtbot/suspenders [merged]: https://github.com/thoughtbot/suspenders/pull/1135 --- README.md | 13 ++++++++++--- railsrc | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 145c5c55f9..ea8e9a2c51 100644 --- a/README.md +++ b/README.md @@ -216,11 +216,18 @@ configuration: [Rails](https://rubyonrails.org) -- Adds [railsrc][] with `--database=postgresql`. If you need to use another - database, you can override this value like so: `rails new my_app --database=mysql` or -`rails new my_app --no_rc` +- Adds [railsrc][] with the following options to integrate with [Suspenders][]. + +``` +--database=postgresql +--skip-test +-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb +``` + +If you want to skip this file altogether, run `rails new my_app --no_rc`. [railsrc]: https://github.com/rails/rails/blob/7f7f9df8641e35a076fe26bd097f6a1b22cb4e2d/railties/lib/rails/generators/rails/app/USAGE#L5C1-L7 +[Suspenders]: https://github.com/thoughtbot/suspenders Shell aliases and scripts: diff --git a/railsrc b/railsrc index 2b024994c1..519a4fc98d 100644 --- a/railsrc +++ b/railsrc @@ -1,2 +1,3 @@ --database=postgresql --skip-test +-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb