With this node package you can create a live server by just right clicking
Assuming you alread have node installed; You need to install live-server package globally
npm install -g live-server
- Launch automator
- Pick
Quick Action
- Options
- Workflow receives current:
folder
- in:
Finder
- Image:
Globe
or something else. (optional)
- Workflow receives current:
- Find
Run Apple Script
from sidebar and add it. - Type this;
on run {input, parameters}
set folderPath to (the POSIX path of input)
tell application "Terminal"
do script ("live-server --port=5010 "& folderPath as string)
activate
end tell
return input
end run
Save it as "Live Server"
It should appear in the services menu at the bottom of the finder.
Done.