Code Monkey home page Code Monkey logo

Comments (2)

sheppard avatar sheppard commented on July 23, 2024

Yes, there is one extra requirement to get the npm build working in PhoneGap. Essentially there needs to be another <script> tag in public/index.html that loads before the build and defines window.WQ_CONFIG with similar parameters as the old pginit.js. Perhaps something like this:

window.WQ_CONFIG = {
    router: {
        base_url: getBaseUrl()
    },
    store: {
        service: 'https://[SERVER_DOMAIN]',
        defaults: {'format': 'json'}
    }
}

My plan was to release something like this as a fix to the project template in 1.2.1 (see wq/wq.create#6). However, it looks like PhoneGap Build itself will be discontinued a month from now (per https://build.phonegap.com/). Thus, I will instead be deprecating the wq phonegap build command in 1.3 and dropping it entirely in 2.0. I could still see putting together some documentation for those that want to install Cordova locally, though it will not be the recommended option.

Going forward, the recommendation will be to do one or both of the following:

  • Deploy via an installable web app. For wq start --with-npm projects, this should be as simple as switching serviceWorker.unregister() to serviceWorker.register() in the existing npm template. For PyPI-only users I still need to come up with a service-worker replacement for the wq appcache command (#63/#107).
  • Deploy to app stores via React Native or Expo and the new @wq/react+@wq/material renderer (#122).

from wq.app.

sheppard avatar sheppard commented on July 23, 2024

I just released wq.app 1.3 alpha, which includes a deprecation warning for the wq phonegap command as well as improved support for service workers and integration with React Native / Expo.

from wq.app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.