Comments (2)
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.
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)
- Comments and whitespace are silently discarded HOT 1
- Can't resolve 'fs' HOT 3
- possible to auto-increment patch version, similar to what npm version / yarn version does? HOT 7
- Action Required: Fix Renovate Configuration
- Add version in more places in config.xml HOT 4
- Request: Don't add build version numbers if they don't exist in config.xml HOT 3
- Dependency Dashboard
- Example of package.json usage HOT 1
- Unable to npm install HOT 2
- TypeError: cordovaSetVersion is not a function HOT 2
- The automated release is failing 🚨 HOT 3
- The automated release is failing 🚨
- An in-range update of husky is breaking the build 🚨 HOT 2
- An in-range update of fs-extra is breaking the build 🚨 HOT 1
- An in-range update of commitizen is breaking the build 🚨 HOT 3
- An in-range update of semantic-release is breaking the build 🚨 HOT 1
- An in-range update of husky is breaking the build 🚨 HOT 1
- An in-range update of rimraf is breaking the build 🚨 HOT 1
- An in-range update of nyc is breaking the build 🚨 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-set-version.