mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-03-02 04:02:13 +01:00
An open-source, cross-platform terminal for seamless workflows
This was a weird one, apparently Storybook still uses CJS but Vite has fully deprecated CJS support. So we need to dynamically import the electron.vite.config.ts file for Storybook, but this breaks because Typescript doesn't resolve and properly compile the dynamic import. To get around this, I am using the `tsx` package, which can dynamically compile typescript imports. |
||
---|---|---|
.storybook | ||
.vscode | ||
build | ||
cmd | ||
db | ||
emain | ||
frontend | ||
pkg | ||
public | ||
.editorconfig | ||
.gitignore | ||
.prettierignore | ||
.yarnrc.yml | ||
electron.vite.config.ts | ||
eslint.config.js | ||
go.mod | ||
go.sum | ||
index.html | ||
package.json | ||
prettier.config.cjs | ||
README.md | ||
Taskfile.yml | ||
tsconfig.json | ||
version.cjs | ||
vitest.config.ts | ||
yarn.lock |
The Next Wave
Prereqs:
You'll need to install "task" (which we're using as a build/run system):
brew install go-task
On first checkout:
yarn
go mod tidy
Then, run the following command to start the app using the Vite dev server (this will enable Hot Module Reloading):
task electron:dev
To run the app without the dev server, run the following instead:
task electron:start