nextgen 0.5.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04eaa622183ac57d5a4e4ec6f7a100f74bdd1449a190324db19714b728e0261d
4
- data.tar.gz: 8461524c611b9c60501ab7f46bd0b19a79c5e8eb88731dcf1ecfc2bbb9146766
3
+ metadata.gz: b31a321aa0243167ed862371f377d8441ce4e6f16ea2955bf9b836757f1f6cb8
4
+ data.tar.gz: c2069575c1e14b9d4adf3fbf8fc6d6fb6ce0052356acb396a71250e430dc9334
5
5
  SHA512:
6
- metadata.gz: 93ed354680534ae076e8396a7d196acafaa30a9b85fb61b39fe8fd6cffb4c36a00234506042fdda491842d7c2afbb1dacda68f3785c8a877fc6b1b43cd02f5be
7
- data.tar.gz: 32d17f15e35d96bdf808a4586233fa944fddff2a6e6e312a58085a1c16be73c9717cae79bd5b9e5c21b3b2c851fe944de5bc184bf0a3f3a3b128ae203fab6e8c
6
+ metadata.gz: 2e40eb8dd637109e523e76de594c91a5738429dbe96caef55b08901f7790e55ce47c034236807d750a8a9315edfa38b11c61ff66e084edba1b74c66b812b5459
7
+ data.tar.gz: 7c898079fab24493ee417a3f91887eef927135ae07fe22a42c22c582e1eb16a6eb58e096812b0424cf2da112cab657c14b304cc52911f03439a6a7078eb7a596
data/README.md CHANGED
@@ -45,7 +45,7 @@ gem exec nextgen create myapp
45
45
 
46
46
  This will download the latest version of the `nextgen` gem and use it to create an app in the `myapp` directory. You'll be asked to configure the tech stack through several interactive prompts. If you have a `~/.railsrc` file, it will be ignored.
47
47
 
48
- > [!NOTE]
48
+ > [!TIP]
49
49
  > If you get an "Unknown command exec" error, fix it by upgrading rubygems: `gem update --system`.
50
50
 
51
51
  ## Examples
@@ -58,7 +58,7 @@ Check out the [examples directory](./examples) to see some Rails apps that were
58
58
 
59
59
  On top of that foundation, Nextgen offers dozens of useful enhancements to the vanilla Rails experience. You are free to pick and choose which (if any) of these to apply to your new project. Behind the scenes, **each enhancement is applied in a separate git commit,** so that you can later see what was applied and why, and revert the suggestions if necessary.
60
60
 
61
- > [!NOTE]
61
+ > [!TIP]
62
62
  > For the full list of what Nextgen provides, check out [config/generators.yml](https://github.com/mattbrictson/nextgen/tree/main/config/generators.yml). The source code of each generator can be found in [lib/nextgen/generators](https://github.com/mattbrictson/nextgen/tree/main/lib/nextgen/generators).
63
63
 
64
64
  Here are some highlights of what Nextgen brings to the table:
@@ -95,7 +95,7 @@ module Nextgen
95
95
  inject_into_file "README.md", " and lint checks", after: "automated tests"
96
96
  inject_into_file "README.md", <<~MARKDOWN, after: "```\nbin/rake\n```\n"
97
97
 
98
- > [!NOTE]
98
+ > [!TIP]
99
99
  > Rake allows you to run all checks in parallel with the `-m` option. This is much faster, but since the output is interleaved, it may be harder to read.
100
100
 
101
101
  ```
@@ -2,8 +2,8 @@ say_git "Install stylelint"
2
2
  add_yarn_packages(
3
3
  "stylelint@^15",
4
4
  "stylelint-config-standard@^34",
5
- "stylelint-declaration-strict-value",
6
- "stylelint-prettier",
5
+ "stylelint-declaration-strict-value@^1",
6
+ "stylelint-prettier@^4",
7
7
  "prettier",
8
8
  "npm-run-all",
9
9
  dev: true
@@ -5,6 +5,7 @@ say_git "Move asset pipeline files into app/frontend"
5
5
  remove_file "app/assets/stylesheets/application.css"
6
6
  remove_file "app/javascript/application.js"
7
7
  move "app/javascript", "app/frontend"
8
+ empty_directory "app/frontend"
8
9
  move "app/assets/images", "app/frontend/images"
9
10
  move "app/assets/stylesheets", "app/frontend/stylesheets"
10
11
  remove_dir "app/assets"
@@ -15,13 +16,14 @@ inject_into_class "config/application.rb", "Application", <<-RUBY
15
16
  RUBY
16
17
 
17
18
  say_git "Run the vite installer"
19
+ FileUtils.touch "yarn.lock"
18
20
  bundle_command "exec vite install"
19
21
  gsub_file "app/views/layouts/application.html.erb",
20
22
  /vite_javascript_tag 'application' %>/,
21
23
  'vite_javascript_tag "application", "data-turbo-track": "reload" %>'
22
24
 
23
25
  say_git "Replace vite-plugin-ruby with vite-plugin-rails"
24
- add_yarn_packages "rollup@^3.26.3", "vite-plugin-rails@0.1.0"
26
+ add_yarn_packages "rollup@^4.2.0", "vite-plugin-rails"
25
27
  remove_yarn_package "vite-plugin-ruby"
26
28
  gsub_file "vite.config.ts", "import RubyPlugin from 'vite-plugin-ruby'", 'import ViteRails from "vite-plugin-rails"'
27
29
  gsub_file "vite.config.ts", /^\s*?RubyPlugin\(\)/, <<~TYPESCRIPT.gsub(/^/, " ").rstrip
@@ -1,3 +1,3 @@
1
1
  module Nextgen
2
- VERSION = "0.5.1".freeze
2
+ VERSION = "0.7.0".freeze
3
3
  end
@@ -77,6 +77,12 @@ Lint/AmbiguousBlockAssociation:
77
77
  Lint/DuplicateBranch:
78
78
  Enabled: false
79
79
 
80
+ Lint/UselessAccessModifier:
81
+ ContextCreatingMethods:
82
+ - concerning
83
+ MethodCreatingMethods:
84
+ - delegate
85
+
80
86
  Metrics/AbcSize:
81
87
  Enabled: false
82
88
 
@@ -30,7 +30,7 @@ Run this script to install necessary dependencies and prepare the Rails app to b
30
30
  bin/setup
31
31
  ```
32
32
 
33
- > [!NOTE]
33
+ > [!TIP]
34
34
  > The `bin/setup` script is idempotent and is designed to be run often. You should run it every time you pull code that introduces new dependencies or makes other significant changes to the project.
35
35
 
36
36
  ### Run the app!
@@ -2,6 +2,6 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "engines": {
5
- "node": ">=18.12.0"
5
+ "node": "^18.12.0 || >= 20.0.0"
6
6
  }
7
7
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nextgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-09 00:00:00.000000000 Z
11
+ date: 2023-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties