Skip to content

Commit

Permalink
Explain why it Just Works to npm folks.
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecordes authored and alexeagle committed Aug 21, 2024
1 parent 6b4af71 commit e9b9ec9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ cd logger/frontend
npm start
```

Thanks to the `start` entry in the `package.json#scripts` object, this knows to run `ibazel run [some-target]`
to correctly bring up the devserver in watch mode.
Thanks to the `start` entry in the `package.json#scripts` object, this knows to
run `ibazel run [some-target]` to correctly bring up the devserver (in this
case, Vite) in watch mode.

Now try changing the TypeScript or HTML code for the web frontend.
As soon as you save, the browser should auto-refresh with the changed code.

Coming from the npm ecosystem, you may be surprised that no `npm install` is
necessary or helpful. Using ibazel to run the target directs Bazel to build
everything needed for that target, which includes any necessary dependency
fetching.

0 comments on commit e9b9ec9

Please sign in to comment.