My workflow with JS/HTML has always been
- write code
- reload website
- fix bugs / tweak code
- goto 2
All my projects are still on AngularJS 1.x, and I'm afraid I have to move on to the TypeScript-cli-transpilation workflow.
I don't really understand it. I always saw an inmense benefit of just being able to hit F5 and then see the result of the JavaScript code.
I don't understand how I can continue using that F5-based workflow when there is a compiler which needs to be invoked before every page reload.
Am I missing something? What is the workflow supposed to look like?
This is not necessarily focused on Angular 2+, as other frameworks seem to want to be compiled as well.
About 90% of my JavaScript coding occurs inside an editor which has excellent SFTP-support, so I SFTP into the development machine and edit the HTML/JS live on this development server. I have at least three dozen software servers on about three machines, all with a very clean per-project/server directory structure, so I just have to select the directory in the editor and start editing the files, and reload them in the browser.
Switching to CLI would need to have the CLI-server adapt to the existing directory structure, have the CLI-server run alongside the server which actually hosts the HTML/JS-files. It then somehow needs to compile the modified files and put them into the directory where I usually just go ahead editing the file.
My structure usually is as follows
/project1/data/log.txt
uploaded.jpg
/python/server.py
/server_handler_1.py (auto-reloads)
/server_handler_2.py (auto-reloads)
/html/page1.html
page2.html
/scripts/script1.js
script2.js
/static/image1.png
image2.png
Then, when all is done, I push it via rsync to the destination server.
I very seldomely code web projects on the local machine. I use no IDE's or "modern" text-editors, mainly because of their lack of good SFTP support, but also because of their performance.