pulsar-live-server-plus
Launch an HTTP server with live reload capability. A Pulsar port of atom-live-server-plus.
savetheclocktower 18 0 0.1.1 MIT GitHub
  • Made for Pulsar!

    This package was written specifically for Pulsar and did not exist in the Atom package repository.

pulsar-live-server-plus

Launch a simple development HTTP server with live reload capability.

A Pulsar port of atom-live-server-plus, itself a fork of atom-live-server. The server is alive-server, a fork of Live Server with updated dependencies.

Usage

Command Keybinding Description
pulsar-live-server-plus:start-server ctrl-alt-l Launch the server on the default port (3000 unless configured).
pulsar-live-server-plus:stop-server ctrl-alt-q Stop the running server.
pulsar-live-server-plus:start-3000 ctrl-alt-3 Launch the server on port 3000.
pulsar-live-server-plus:start-4000 ctrl-alt-4 Launch the server on port 4000.
pulsar-live-server-plus:start-5000 ctrl-alt-5 Launch the server on port 5000.
pulsar-live-server-plus:start-8000 ctrl-alt-8 Launch the server on port 8000.
pulsar-live-server-plus:start-9000 ctrl-alt-9 Launch the server on port 9000.

The server runs for the project folder containing the active file, or for the first project folder if no file is active.

Options

If .pulsar-live-server.json exists in the project root, it is loaded and used as options. .atom-live-server.json is read if the new file is absent. Either file may use JSON5 syntax.

The keys match the command-line parameters of live-server. Use true for a flag with no value, and an array to give mount, proxy, middleware or open more than once.

alive-server also reads .alive-server.json from the project root and your home folder. It does not read ~/.live-server.json.

ignore takes literal paths relative to the root; globs like logs/*.log have no effect. Use ignorePattern to match with a regular expression.

Example: Launch a specific browser

{
  "browser": "safari"
}

Example: Start the server without opening a browser

{
  "no-browser": true
}

Example: Serve this file for every 404 (useful for single-page applications)

{
  "entry-file": "index.html"
}

Example: Serve this directory as the root path

{
  "root": "public"
}