nextgen 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/nextgen/actions.rb +1 -1
- data/lib/nextgen/generators/vite.rb +3 -1
- data/lib/nextgen/version.rb +1 -1
- data/template/README.md.tt +1 -1
- data/template/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b31a321aa0243167ed862371f377d8441ce4e6f16ea2955bf9b836757f1f6cb8
|
4
|
+
data.tar.gz: c2069575c1e14b9d4adf3fbf8fc6d6fb6ce0052356acb396a71250e430dc9334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
> [!
|
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
|
-
> [!
|
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:
|
data/lib/nextgen/actions.rb
CHANGED
@@ -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
|
-
> [!
|
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
|
```
|
@@ -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@^
|
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
|
data/lib/nextgen/version.rb
CHANGED
data/template/README.md.tt
CHANGED
@@ -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
|
-
> [!
|
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!
|
data/template/package.json
CHANGED
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.
|
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-
|
11
|
+
date: 2023-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|