Hello
I've working on a plugin and not sure if is there a better way of dealing with the dev cycle. Here is what I do
1) change the code
2) build
3) run the server ("--listen") with ++myuplugin
everytime I change the code I need to do it all again.
"scripts": {
"test": "npm run build",
"build": "npm run build:prepare && npm run build:TW",
"build:prepare":
"mkdir -p build/ && cp node_modules/tiddlywiki/editions/server/tiddlywiki.info build/ && node bin/updateVersion.js",
"build:TW": "tiddlywiki ++./plugin build --verbose --output build/gh-pages/ --build index",
"serve":
"npm run build && (sleep 2 && open-cli http://127.0.0.1:8080 --background) && tiddlywiki ++./plugin build --verbose --listen" },
Is there a better way ? something that would build and refresh the browser if I change any code in the plug in? perhaps can tiddlywiki --listen support some kind of file watcher ?
thanks