-
Notifications
You must be signed in to change notification settings - Fork 52
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
Upstream generators #158
Upstream generators #158
Conversation
This is amazing, I'd really like to use the typescript scaffolds you've created. Do you need any assistance in getting this PR ready for review? |
@jacobmichels thanks for the ping! I hope to finish this PR in couple days, my current goal is to implement a simple smoke test that will generate new Rails app, install inertia, generate some scaffolds and run system tests. |
4a4982c
to
d6638ef
Compare
d6638ef
to
6cff2e8
Compare
52cba68
to
189ffb6
Compare
module Generators | ||
class JSPackageManager | ||
def self.package_managers | ||
%w[npm yarn bun pnpm] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna point to this file next time I need an example of why the JS ecosystem feels like the wild west compared to Ruby 😅
module Generators | ||
module Helper | ||
class << self | ||
def guess_the_default_framework |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what a method name!
require_relative '../../../lib/generators/inertia/install/install_generator' | ||
require 'generator_spec' | ||
|
||
RSpec.describe Inertia::Generators::InstallGenerator, type: :generator do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is really cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so excited to have this upstreamed! thanks @skryukov
This PR upstreams generators from https://github.com/skryukov/inertia_rails-contrib
TODO: