generate service workers for speclate specs.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
.DS_Store
.gitignore
.travis.yml
CHANGELOG.md
LICENCE
README.md
index.js
package.json
sort-files.js

README.md

#Speclate service worker

Greenkeeper badge

Given a speclate spec, works out which files are needed offline, and generates the service worker accordingly.

Also provides a network first strategy for specs to ensure users are always seeing the latest data.

'use strict'
var serviceWorker = require('speclate-service-worker')
var spec = require('../spec')
var version = '1.6'

serviceWorker(spec, version)