Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/sinclairzx81/smoke-web

A static file server that live reloads on file change.
https://github.com/sinclairzx81/smoke-web

live-reload static-file-server tooling

Last synced: 3 months ago
JSON representation

A static file server that live reloads on file change.

Lists

README

        

# Smoke-Web

A static file server with live reload.

[![NPM package](https://badge.fury.io/js/smoke-web.svg)](https://www.npmjs.com/package/smoke-web)

```
$ npm install smoke-web -g
```
```
$ smoke-web ./ --port 5000
```

## Overview

Smoke-Web is a static file web server that live reloads HTML pages on file change. It is primarily geared towards development workflows where code edits should result in automatic page refresh.

## Options
```

$ smoke-web --port --trace --cors

Examples: smoke-web ./dist
smoke-web ./dist --port 5001
smoke-web ./dist --trace

Options:
--port The server port. default is 5000.
--cors Allow cross-origin requests.
--trace Print requests in terminal.

```

## Tasks

The following project tasks are available.

```bash
$ npm run clean # cleans this project
$ npm run start # starts serving ./output/bin in watch.
$ npm run pack # npm packs this tool.
$ npm run install-cli # installs this tool locally.
$ npm run templates # builds static templates
```