sherpy

A command-line tool to easily develop using Browsersync (local dev server, live reloading, remote tunneling) and an offline-first Service Worker for static assets.

Usage no npm install needed!

<script type="module">
  import sherpy from 'https://cdn.skypack.dev/sherpy';
</script>

README

sherpy

A command-line tool to easily develop using Browsersync (local dev server, live reloading, remote tunneling) and an offline-first Service Worker for static assets.

The Service Worker is versioned based on a hash of the static content of the working directory.

Requirements

Must have a file called sw.js in the root of your project containing a line like this one:

var CURRENT_CACHES = {
  static: 'static-cache-v-98f2739d'  // {STATIC_HASH}
};

See sample usage with a project containing static assets.

CLI Usage

Usage
  $ sherpy

Options
  -t, --tunnel  Tunnel
  -h, --help    Show help

Examples
  $ sherpy

License

MIT