Ember Service Worker
A pluggable approach to Service Workers for Ember.js
Batteries excluded
Without any extra addons all this addon does is install a Service Worker,
but the Service Worker itself will do nothing.
This allows you to craft a set of addons that make the Service Worker function the way you want it to.
Installation
ember install ember-service-worker
Available plugins
For a full list of available Ember Service Worker plugins: click here
Authoring plugins
To create an Ember Service Worker plugin, you first need to add the
ember-service-worker-plugin
keyword to the keywords
option in the plugin's
package.json
Then create a file with the same name as your Ember Service Worker plugin within
the service-worker
folder that should be in the root of your addon. For
example: service-worker/ember-service-worker-asset-cache.js
. This file will
automatically be loaded by the created service worker.
All other files in the service-worker
directory will also be copied to your build of the
application. This enables you to use importScript
to load additional files.
All the plugins have the VERSION
constant available to them. This is a
timestamp and will change on every rebuild of sw.js
.
Authors
Versioning
This library follows Semantic Versioning
Want to help?
Please do! We are always looking to improve this library. Please see our
Contribution Guidelines
on how to properly submit issues and pull requests.
Legal
DockYard, Inc. © 2016
@dockyard
Licensed under the MIT license