Turn a Web App Manifest ServiceWorker website into a Cordova Packaged Application
Last updated 3 years ago by kamrik .
Apache version 2.0 · Repository · Bugs · Original npm · Tarball
$ cnpm install sw2cdv 
SYNC missed versions from official npm registry.


Global installation

npm install -g sw2cdv

Try it on a sample service worker app:

mkdir swtest
cd swtest
git clone https://github.com/mwoghiren/ServiceWorkerSample.git
cd ServiceWorkerSample
sw2cdv create ios
sw2cdv run ios

Clone your own copy of sw2cdv:

git clone https://github.com/MobileChromeApps/sw2cdv.git
cd sw2cdv
npm install
# npm link # Optional

To try it using the gulp workflow:

cd tests/gulp
ln -sf ../MwoghirenServiceWorkerSample/ app # Or any other SW app
gulp ios

To use the command line sw2cdv:

cd tests/MwoghirenServiceWorkerSample/ # Or any other SW app
sw2cdv create ios
sw2cdv run ios


  • Uses the web app manifest (manifest.json) to read out a service_worker value.
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (12)
Dev Dependencies (0)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |