npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordova-adhoc-update

v0.1.7

Published

Easy update your cordova app

Downloads

10

Readme

js-standard-style

Documentation

DANGER

This is an experiment! Do not use in production

Compatible with:

  • iOS
  • Android (working on it, PR welcome)

Introduction

Few lines and some examples to show you how cordova-adhoc-update works. First of all, forget this is something you can use for public app (published in stores), you want to use this only for adhoc / enterprise app.

Usually what you do to makes you users update an app, is to publish a new .ipa (iOS) or .apk (Android) somewhere on internet and send an email to them with the link (ok, you have to prepare a landing page with a link pointing to itms-something and a properly written .plist).

What cordova-adhoc-update does is to automate this process for you.

Installation

npm i cordova-adhoc-update --save

CLI Usage

cordova-adhoc-update comes with a beautiful cli interface that let you do these boring operation a breeze.

Let's assume you have an .ipa ready for production, you only need to make cordova-adhoc-update do its job:

cordova-adhoc-update

This command will do a lot of things starting from your cordova config.xml and your npm package.json files.

  1. Create a directory called appupdate (you can change it using -o flag)

  2. Create an iOS app.plist file based on your current cordova configuration The .plist needs a package name, a version , the bundle id, and url used to publish our .ipa package (taken from the homepage field of your package.json file or specified with the -u flag) and optionally a description

  3. Create an nice index.html pointing to the previous created app.plist with the itms-service:// stuff...

  4. Copy the icon specified in your config.xml

cd appupdate
python3 -m http-server

# or if you are a node.js guy
http-server -p 8000 
  1. Create a manifest.json with all the info needed by the client to know if this is a new release or the current one

JS Usage

import appupdate from 'cordova-adhoc-update'

appupdate.check('http://url.where.appupdate.json.is', current_app_release )
  .then( (rel) => {
    console.log('Hey man, we have a new release here')
    console.log('is the %s', rel.release)
    console.log('with this changelog: %s', rel.changelog)
    
    // if you wanna update
    appupdate.update(true)
  })