https://github.com/yckbilly1929/yalive-server
Live server for esbuild
https://github.com/yckbilly1929/yalive-server
esbuild live-server proxy typescript
Last synced: 2 months ago
JSON representation
Live server for esbuild
- Host: GitHub
- URL: https://github.com/yckbilly1929/yalive-server
- Owner: yckbilly1929
- License: mit
- Created: 2022-01-05T04:52:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T13:30:23.000Z (about 3 years ago)
- Last Synced: 2025-11-12T00:20:49.396Z (8 months ago)
- Topics: esbuild, live-server, proxy, typescript
- Language: Go
- Homepage:
- Size: 141 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.MD
Awesome Lists containing this project
README
Yalive Server
===========
Minimal Development Server with **Live Reload** Capability.
(**Y**et **A**nother **Live Server**)
- Rewritten in Golang
- Supportive tool for esbuild
Roadmap
--------
- github actions
- npm install test on Windows and OSX
- support recursive watch
- accept json config file, and more dynamic config options like live-server
- refresh css only
- example project with esbuild
Get Started
------------
```bash
# global
$ npm i -g yalive-server
# As node package
$ npm i -D yalive-server
```
Usage from command line
-----------------------
```bash
# Help
$ yalive-server
# example dev command
$ yalive-server dev -c '{"root": "dist", "port": 5501, "cors": true, "https": true, "historyApiFallback": true, "proxy": [{"prefix": "/api", "target": "https://backend", "changeOrigin": true}], "server": {"debug": true, "color": true} }'
```
Usage from node
---------------
```javascript
const yaliveServer = require("yalive-server")
const conf = {
root: 'dist',
port: 5501,
cors: true,
https: true,
historyApiFallback: true,
proxy: [
{
prefix: '/api',
target: 'https://backend',
changeOrigin: true,
},
],
server: {
debug: true,
color: true,
},
}
yaliveServer.dev(conf)
```