Skip to content

Commit

Permalink
Regenerate example projects using latest version of nextgen (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson authored Jan 14, 2024
1 parent 3f05bfb commit b4d1bae
Show file tree
Hide file tree
Showing 68 changed files with 1,439 additions and 1,478 deletions.
6 changes: 5 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Rails apps in this directory were all generated by `gem exec nextgen create`

```
What version of Rails will you use?
‣ 7.1.1
‣ 7.1.2
edge (7-1-stable branch)
Which database?
Expand Down Expand Up @@ -71,6 +71,7 @@ Which optional enhancements would you like to add?
⬡ ESLint
⬡ Factory Bot
⬡ GitHub Actions
⬡ GitHub PR template
⬡ good_migrations
⬡ letter_opener
⬡ Open browser on startup
Expand All @@ -83,6 +84,7 @@ Which optional enhancements would you like to add?
⬡ Stylelint
⬡ Thor
⬡ Tomo
⬡ VCR
```

## rspec
Expand Down Expand Up @@ -123,6 +125,7 @@ Which optional enhancements would you like to add?
⬢ ESLint
⬢ Factory Bot
⬢ GitHub Actions
⬢ GitHub PR template
⬢ good_migrations
⬢ letter_opener
⬢ Open browser on startup
Expand All @@ -135,4 +138,5 @@ Which optional enhancements would you like to add?
⬢ Stylelint
⬢ Thor
⬢ Tomo
⬢ VCR
```
19 changes: 19 additions & 0 deletions examples/all/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Problem
=======

<!-- describe what motivated this PR -->

<!-- link to issue or ticket -->

Solution
========

Steps to verify
---------------

1. step
1. step
1. step

Screenshots
-----------
4 changes: 4 additions & 0 deletions examples/all/.overcommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ PreCommit:
required_executable: npx
command: ["npx", "--no-install", "eslint", "-f", "compact"]
include:
- app/assets/**/*.cjs
- app/components/**/*.cjs
- app/frontend/**/*.cjs
- app/javascript/**/*.cjs
- app/assets/**/*.js
- app/assets/**/*.jsx
- app/components/**/*.js
Expand Down
13 changes: 6 additions & 7 deletions examples/all/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ Lint/AmbiguousBlockAssociation:
Lint/DuplicateBranch:
Enabled: false

Lint/UselessAccessModifier:
ContextCreatingMethods:
- concerning
MethodCreatingMethods:
- delegate

Metrics/AbcSize:
Enabled: false

Expand Down Expand Up @@ -192,13 +198,6 @@ Rails/RootPathnameMethods:
Rails/SkipsModelValidations:
Enabled: false

Rails/UnknownEnv:
Environments:
- development
- test
- production
- local

Rails/Validation:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion examples/all/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.3.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
plugins: ["stylelint-declaration-strict-value"],
import strictValuePlugin from "stylelint-declaration-strict-value";

export default {
plugins: [strictValuePlugin],
extends: ["stylelint-config-standard", "stylelint-prettier/recommended"],
rules: {
"color-hex-length": null,
Expand Down
2 changes: 1 addition & 1 deletion examples/all/.tomo/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

set application: "all_example"
set deploy_to: "/var/www/%{application}"
set nodenv_node_version: "18.18.1"
set nodenv_node_version: "20.11.0"
set nodenv_install_yarn: true
set git_url: nil # FIXME
set git_branch: "main"
Expand Down
2 changes: 1 addition & 1 deletion examples/all/.tomo/plugins/all_example.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# https://tomo-deploy.com/tutorials/writing-custom-tasks/
# https://tomo.mattbrictson.com/tutorials/writing-custom-tasks/
2 changes: 1 addition & 1 deletion examples/all/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax = docker/dockerfile:1

# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.2.2
ARG RUBY_VERSION=3.3.0
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base

# Rails app lives here
Expand Down
6 changes: 4 additions & 2 deletions examples/all/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem "importmap-rails"
gem "jbuilder"
gem "puma", ">= 5.0"
gem "rack-canonical-host"
gem "rails", "~> 7.1.1"
gem "rails", "~> 7.1.2"
gem "redis", ">= 4.0.1"
gem "sprockets-rails"
gem "sqlite3", "~> 1.4"
Expand All @@ -35,7 +35,7 @@ group :development do
gem "rubocop-factory_bot", require: false
gem "rubocop-minitest", require: false
gem "rubocop-performance", require: false
gem "rubocop-rails", require: false
gem "rubocop-rails", ">= 2.22.0", require: false
gem "tomo", "~> 1.18", require: false
gem "web-console"
end
Expand All @@ -46,6 +46,8 @@ group :test do
gem "selenium-webdriver"
gem "shoulda-context"
gem "shoulda-matchers"
gem "vcr"
gem "webmock"
end

group :production do
Expand Down
Loading

0 comments on commit b4d1bae

Please sign in to comment.