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

Typo fixes on JS page [ci skip] #51437

Merged
merged 1 commit into from Mar 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions guides/source/working_with_javascript_in_rails.md
Expand Up @@ -10,7 +10,7 @@ Rails.
After reading this guide, you will know:

* How to use Rails without the need for a Node.js, Yarn, or a JavaScript bundler.
* How to create a new Rails application using import maps, bun, esbuild, rollup, or webpack to bundle
* How to create a new Rails application using import maps, Bun, esbuild, Rollup, or Webpack to bundle
your JavaScript.
* What Turbo is, and how to use it.
* How to use the Turbo HTML helpers provided by Rails.
Expand Down Expand Up @@ -68,9 +68,9 @@ Adding npm Packages with JavaScript Bundlers
Import maps are the default for new Rails applications, but if you prefer traditional JavaScript
bundling, you can create new Rails applications with your choice of
[Bun](https://bun.sh), [esbuild](https://esbuild.github.io/),
[webpack](https://webpack.js.org/), or [rollup.js](https://rollupjs.org/guide/en/).
[Webpack](https://webpack.js.org/), or [Rollup.js](https://rollupjs.org/guide/en/).

To use a bundler instead of import maps in a new Rails application, pass the `javascript` or `-j`
To use a bundler instead of import maps in a new Rails application, pass the `--javascript` or `-j`
option to `rails new`:

```bash
Expand All @@ -87,7 +87,7 @@ development.

### Installing a JavaScript Runtime

If you are using a esbuild, rollup.js or Webpack, to bundle your JavaScript in
If you are using esbuild, Rollup.js, or Webpack to bundle your JavaScript in
your Rails application, Node.js and Yarn must be installed. If you are using
Bun, then you just need to install Bun as it is both a JavaScript runtime and a bundler.

Expand All @@ -103,11 +103,11 @@ $ bun --version
The version of your Bun runtime should be printed out. If it says something
like `1.0.0`, Bun has been installed correctly.

If not, you may need to reinstall bun in the current directory or restart your terminal.
If not, you may need to reinstall Bun in the current directory or restart your terminal.

#### Installing Node.js and Yarn

If you are using esbuild, rollup.js or Webpack you will need Node.js and Yarn.
If you are using esbuild, Rollup.js, or Webpack you will need Node.js and Yarn.

Find the installation instructions at the [Node.js website](https://nodejs.org/en/download/) and
verify it’s installed correctly with the following command:
Expand Down