Skip to content

Commit

Permalink
Update Setup Docs for StimulusReflex 3.5, Rails 7/8
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth committed Dec 15, 2024
1 parent 4e9be47 commit 6851a63
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions docs/hello-world/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ bundle add stimulus_reflex

or manually add this line to your `Gemfile`:
```ruby
gem 'stimulus_reflex', '3.5.0'
gem 'stimulus_reflex', '~> 3.5'
```

### Step 2: JavaScript

StimulusReflex 3.5 is designed to work with all the asset bundling solutions Rails 7 supports.
StimulusReflex 3.5 is designed to work with all the asset bundling solutions Rails 7 and Rails 8 supports.

StimulusReflex's installer will try to automatically detect your bundling setup and asks you to confirm the choice.

Expand Down Expand Up @@ -62,40 +62,6 @@ It looks like you're using esbuild as your bundler. Is that correct? (Y/n)

The bundler will continue and guide you through the install process.

#### Manual selection

If the installer can't automatically detect your setup or you want tell the installer which strategy to use you can run the `stimulus_reflex:install` command with an argument.

##### Using Importmaps

```bash
rails stimulus_reflex:install importmap
```

##### Using esbuild

```bash
rails stimulus_reflex:install esbuild
```

##### Using Vite

```bash
rails stimulus_reflex:install vite
```

##### Using Webpacker

```bash
rails stimulus_reflex:install webpacker
```

##### Using Shackapacker

```bash
rails stimulus_reflex:install shakapacker
```

And that's it! You can start using StimulusReflex in your application with the `development` environment. You'll need to keep reading to set up [`test`](/appendices/testing#test-environment-setup) and [`production`](/appendices/deployment).

<LinkComponent name="Quick Start" href="/hello-world/quickstart" />
Expand Down

0 comments on commit 6851a63

Please sign in to comment.