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

live reload #7

Open
derkan opened this issue Mar 27, 2024 · 4 comments
Open

live reload #7

derkan opened this issue Mar 27, 2024 · 4 comments

Comments

@derkan
Copy link

derkan commented Mar 27, 2024

Are you planning to add live reload on svelte or go file change?

@nichady
Copy link
Owner

nichady commented Mar 29, 2024

Possibly yes eventually, but I haven't really thought much about it yet.

@jaybeecave
Copy link

unproven idea. but wouldn't https://github.com/cosmtrek/air do the trick if you were to configure it to watch the .svelte files. it just recompiles go after all :)

@jaybeecave
Copy link

jaybeecave commented May 31, 2024

air didnt work.

nodemon did :)

{
  "name": "svelte-test",
  "version": "1.0.0",
  "type": "module",
  "scripts": {
    "dev": "golte dev && go run .",
    "watch": "nodemon --watch ./ --signal SIGTERM --exec 'golte dev && go run .'"
  },
  "dependencies": {
    "golte": "0.0.4",
    "svelte": "^4.2.9"
  },
  "nodemonConfig": {
    "ext": ".go,.svelte",
    "ignore": [
      "build/**",
      "tmp/**"
    ]
  },
  "devDependencies": {
    "nodemon": "^3.1.2"
  }
}


image

@TimLai666
Copy link

Here is what you want.
https://github.com/TimLai666/golte-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants