golte icon indicating copy to clipboard operation
golte copied to clipboard

live reload

Open derkan opened this issue 1 year ago • 4 comments

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

derkan avatar Mar 27 '24 21:03 derkan

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

nichady avatar Mar 29 '24 23:03 nichady

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 avatar May 29 '24 20:05 jaybeecave

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

jaybeecave avatar May 31 '24 23:05 jaybeecave

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

TimLai666 avatar Nov 05 '24 14:11 TimLai666