20 lines
834 B
Markdown
20 lines
834 B
Markdown
# SvelteRunner
|
|
A simple CLI Svelte runner.
|
|
Runs your Svelte App in Express to allow for connection from other devices.
|
|
(Pretty niche problem)
|
|
|
|
## Usage
|
|
|
|
Install the tool with `npm i -g svelte-runner`
|
|
Set your Svelte Adapter to node:
|
|
1. Install the node adapter with `npm i --save-dev @sveltejs/adapter-node`
|
|
2. Inside of `svelte.config.js` in the root directory of your svelte app, change `@sveltejs/adapter-auto` to `@sveltejs/adapter-node`
|
|
|
|
Build your Svelte application
|
|
Run the tool with `svelterunner /path/to/svelte/build` i.e. `svelterunner ./build`
|
|
|
|
It's as simple as that. It will default to using port 3000.
|
|
|
|
|
|
### Disclaimer
|
|
You likely won't need this app, I made it because I code on my PC and like to demo my applications to my family on my laptop and I felt this was the easier way to get it running quickly. |