Giter VIP home page Giter VIP logo

Comments (5)

ptarjan avatar ptarjan commented on June 5, 2024

It looks like you wanted to but forgot about it: https://github.com/nordnet/cordova-hot-code-push-cli/blob/master/src/server.js#L4

from cordova-hot-code-push-cli.

nikDemyankov avatar nikDemyankov commented on June 5, 2024

If you open https://291b3fb6.ngrok.com/chcp.manifest - those .sw[a-p] files are there? If you have changed .chcpignore first, and only then ran the server, then they shouldn't. Server detects, that something has changed, shows message about it. But plugin detects, that there is nothing new and no update is performed. So, files from the .chcpignore are ignored by the server, but, probably, CLI should not show that confusing messages.

from cordova-hot-code-push-cli.

ptarjan avatar ptarjan commented on June 5, 2024

No, the manifest is clean of all my ignores, that works. It is just the server that tries to ping the app constantly for updates for ignored files.

For example, I edit index.js, the app gets pinged once for the .index.js.swp, then once for the index.js, then again after browserify has run and built a all.js. So 3 pings go to the app. It probably ignores 2 of them an only reacts to the all.js but I'm worried the messages might get out of order, or two might co-incide, or something bad could happen. I'd rather it just get pinged once for my all.js since that is the only thing in the www dir I didn't want ignored.

from cordova-hot-code-push-cli.

nikolasleblanc avatar nikolasleblanc commented on June 5, 2024

Sorry to comment on a closed issue, but I just have a question about chpignore, not a bug or anything, so best to hide it here. Can I exclude files from being copied to local storage with the chpignore, so that the app knows to get update-able files from server/localstorage but can load all other "deemed-non-changing" files from the app itself, or is it just used to update the manifest about what files have changed - as opposed to what files should be sent to the server? Just curious.

from cordova-hot-code-push-cli.

nikDemyankov avatar nikDemyankov commented on June 5, 2024

.chcpignore is used by the CLI client to form manifest file. And nothing more. Plugin itself doesn't know about it's existents.

We can't break content of the www folder on copyable and not-copyable files, because if files are in www folder - then they are used on the web pages. And if so - you need to know path to them (for example, for css files). Usually, those paths are relative. But if you break content on different parts - you need to provide absolute paths to them, which, I'm not sure, even possible. Either way, this will lead to a serious complication of the logic on the web project itself.

from cordova-hot-code-push-cli.

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.