yalive-server

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2023 License: MIT Imports: 1 Imported by: 0

README

Yalive Server

Minimal Development Server with Live Reload Capability.
(Yet Another 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

  # global
  $ npm i -g yalive-server

  # As node package
  $ npm i -D yalive-server

Usage from command line

  # 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

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)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL