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

Update editor.md for vite #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions content/docs/learning/extending-hydra/contributing/editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,11 @@ install dependencies:

yarn install

bundle JavaScript with browserify:
run dev server

yarn build
yarn dev

run server

yarn serve

go to <http://localhost:8000> in the browser. Congratulations! You built hydra-editor on your computer!
go to <http://localhost:5173> in the browser. Congratulations! You built hydra-editor on your computer!

### Where do these commands come from?

Expand All @@ -48,9 +44,7 @@ Make your new branch

git checkout -b my-awesome-feature

Edit the code. If you want to see changes in real time, you can use the watch script. After running `yarn serve`, open another terminal and run

yarn watch
Edit the code. Changes will appear in real-time as you edit the code.

Then every time you save code, it will automatically re-bundle the code.

Expand All @@ -76,7 +70,7 @@ run dev environment

npm run dev

Since we use vite in `dev` branch, we don't need to bundle the code during development (vite takes care of bundling and serving while you code). When you want to publish the code, build the bundle:
When you want to publish the code, build the bundle:

npm run build

Expand Down