Giter Club home page Giter Club logo

Comments (2)

ZaLiTHkA avatar ZaLiTHkA commented on June 8, 2024

so.. this was all in the interest of trying to not incur unnecessary line changes for source control. in chasing this goal (with my forked version), I've discovered a few other niggly issues..

running cordova-set-version:

  • inserts a single space before each closing tag, changing <tag prop="value"/> to <tag prop="value" />
  • updates all strings to use quotation marks "

whereas running ionic cordova build immediately after this:

  • removes the space before each closing tag, changing <tag prop="value" /> back to <tag prop="value"/>
  • updates all strings to use apostrophes '

I should probably also mention that I'm attempting to replace a manual "update" script that I had created, which simply updates config.xml with string replacements, rather than parsing each node and generating a new output file.

in which case, this issue might actually be barking at the wrong tree.. I'll give it some more thought over the weekend and see what I come up with.

from cordova-set-version.

ZaLiTHkA avatar ZaLiTHkA commented on June 8, 2024

yesterday I decided to simply clean up my "manual config.xml update" script, which turns out to suite my needs far better than this. for anybody interested, it's hosted as a snippet in my work GitLab profile.


with that said, my script (and I believe a few other "Cordova version updater" pacages) make use of the already-installed cordova-common package, instantiating a ConfigParser instance with a config.xml file path, and thereby allowing programmatic access to the config as an object.

this might be worth looking into for cordova-set-version as well then, so when I'm done with my day-job coding, I'll look into adjusting this package and see what comes of it. :)

in the meantime, I don't think this issue has much of a future, so I'm closing it off with this comment.

from cordova-set-version.

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.