Comments (5)
From @dpogue on July 17, 2018 17:18
If we're wanting to read/write name and version from package.json, I can add getters/setters for those in my proposed PackageHelper in cordova-common.
from cordova-create.
For the record, currently I do not believe Cordova looks at package.json for an app ID or app version, it expects those to only live in config.xml on the widget
tag. So setting them in package.json is nice from a consistency perspective, but doesn't actually impact Cordova behaviour.
I think that's fine the way it is, we shouldn't attempt to move those out of config.xml at this point.
from cordova-create.
@dpogue It's good to know that Cordova does not really look at version
and name
of package.json
. But that does not mean that we cannot setup a consistent project for the user. Frankly, that's the least I would expect as a user.
I think that's fine the way it is, we shouldn't attempt to move those out of config.xml at this point.
I'm not sure I understand that part. I'm not trying to move anything anywhere. I'm only trying to make cordova-create
respect the values present in the template files used to create the new project. And be consistent in doing so. Do you think we should not do that?
from cordova-create.
If we're creating a new project, then yeah, it makes sense to set the name and version in package.json as well.
What I don't want to do (at this point anyways) is make changes to cordova-lib to read those values out of package.json instead of config.xml.
from cordova-create.
@dpogue Alright, the latter was never intended
from cordova-create.
Related Issues (7)
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-create.