sherpy

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i sherpy

Weekly Downloads

0

Version

1.0.5

License

MIT

Last publish

Collaborators

  • cvan