Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce suspenders:prerequisites generator #1171

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

stevepolitodesign
Copy link
Contributor

Follow-up to #1148 and #1145

In #1148 and #1145, we introduce the need for yarn to manage dependencies. Those commits failed to establish a .node-version file, which normally would be generated by Rails if not using import-maps.

This commit introduces that file, which compliments the existing .ruby-version file that is generated.

I chose to use .node-version and not .nvm or .tool-versions to keep parity with Rails.

The current version set by Rails is 18.15.0, but a future commit aims to use the latest LTS value. This commit aims to use that version.

This commit will also benefit a future suspenders:ci generator, since the .node-version file will be used in CI.

Follow-up to #1148 and #1145

In #1148 and #1145, we introduce the need for yarn to manage
dependencies. Those commits failed to establish a `.node-version` file,
which [normally would be generated][1] by Rails if **not** using
`import-maps`.

This commit introduces that file, which compliments the existing
`.ruby-version` file that is generated.

I chose to use `.node-version` and not `.nvm` or `.tool-versions` to
keep parity with Rails.

The [current version][2] set by Rails is `18.15.0`, but a [future
commit][3] aims to use the latest LTS value. This commit aims to use
that version.

This commit will also benefit a future `suspenders:ci` generator, since
the `.node-version` file will be used in CI.

[1]: https://github.com/rails/rails/blob/68b20b6513fe56ca80e4966628c231b4d6113bea/railties/lib/rails/generators/rails/app/app_generator.rb#L57-L59
[2]: https://github.com/rails/rails/blob/e8638c9a942e94f097dc8f37a3b58ac067a5ca16/railties/lib/rails/generators/app_base.rb#L18
[3]: rails/rails#51393
@stevepolitodesign stevepolitodesign mentioned this pull request Mar 22, 2024
17 tasks
@stevepolitodesign stevepolitodesign merged commit 52e99e9 into suspenders-3-0-0 Mar 22, 2024
2 checks passed
@stevepolitodesign stevepolitodesign deleted the suspenders-3-0-0-prerequisites branch March 22, 2024 17:56
stevepolitodesign added a commit that referenced this pull request May 10, 2024
Follow-up to #1148 and #1145

In #1148 and #1145, we introduce the need for yarn to manage
dependencies. Those commits failed to establish a `.node-version` file,
which [normally would be generated][1] by Rails if **not** using
`import-maps`.

This commit introduces that file, which compliments the existing
`.ruby-version` file that is generated.

I chose to use `.node-version` and not `.nvm` or `.tool-versions` to
keep parity with Rails.

The [current version][2] set by Rails is `18.15.0`, but a [future
commit][3] aims to use the latest LTS value. This commit aims to use
that version.

This commit will also benefit a future `suspenders:ci` generator, since
the `.node-version` file will be used in CI.

[1]: https://github.com/rails/rails/blob/68b20b6513fe56ca80e4966628c231b4d6113bea/railties/lib/rails/generators/rails/app/app_generator.rb#L57-L59
[2]: https://github.com/rails/rails/blob/e8638c9a942e94f097dc8f37a3b58ac067a5ca16/railties/lib/rails/generators/app_base.rb#L18
[3]: rails/rails#51393
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant