1.0.8 • Published 9 months ago

server-watch v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Server Watch

A feather-light package that watches and actively reloads node js server instances


Installation

To install this package run:

npm install -g server-watch

To install this package on a per-project basis run:

npm install server-watch

How to use

There are two ways to run server-watch

CLI run with arguments

If you installed the package globally, just run:

server-watch index.js

If you installed the package for just a specific project, then you need to append the npx command to it. Like this:

npx server-watch index.js

Setting up an sw.config.json file

If you add an sw.config.json to your root directory, you only need to run:

server-watch

Your configuration in your config file sets the required options for watching the server.

Basic configuration

{
    "exec": "node .",
    "ignore": [".git", "node_modules"]
}
Parameters:

required: exec - This is your exectuion script

optional: ignore - This is an array of paths to ignore when waching the server

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago