Comments (9)
Right now, §7 and §8 are major impediments to a sane implementation of #69. Even if we cannot reduce the existing functionality as much as I would want to, I would really appreciate some kind of consensus on these items before continuing with apache/cordova-create#8.
If we're doing this as a major version bump (which we would be for dropping node 4 support), then I'm in favour of saying we only support one template layout. We should also require template to have config.xml
at the root instead of under www
.
from cordova-discuss.
It seems it was planned to remove --link-to
before #49 (comment). Support was then removed in apache/cordova-lib#456 and re-added in apache/cordova-create@79cace5 addressing https://issues.apache.org/jira/browse/CB-11623 which is still open because it apparently still not satisfies the reporter's requirements.
The reporter's requirements are to create a cordova project with www
linking to some existing web app. This could be easily achieved by running
$ cordova create bin com.example.domain APPNAME
$ rm -r bin/www && ln -sr www bin/www
instead of
$ cordova create bin com.example.domain APPNAME --link-to=www
from cordova-discuss.
Right now, §7 and §8 are major impediments to a sane implementation of #69. Even if we cannot reduce the existing functionality as much as I would want to, I would really appreciate some kind of consensus on these items before continuing with apache/cordova-create#8.
Especially the need for renaming to .gitingore
in cordova-create, combined with the linking feature (which I still would wanted to hear valid use cases for) are heavily conflicting.
from cordova-discuss.
A few quick thoughts from skimming this, will try to give it a full read-through over the weekend.
§2 Drop support for reading configuration from <dir>/.cordova/config.json
I thought we had deprecated the .cordova
directory a while back, but I still see a bunch of references to it in various bits of code (HooksRunner in cordova-lib being one example).
IMO we should completely remove any special handling for a .cordova
folder in the project.
§4 Do not subscribe CordovaLogger to Cordova events
IMO if this is a module without a CLI executable, it should not subscribe CordovaLogger to the event stream. The event stream is meant so that loggers at the higher-level tools (like cordova-cli, or VS Taco) can receive logging output and handle it however they see fit.
§8 Drop support for linking
I've never used this feature, but I do see some value in it when developing templates. If it's not causing a maintenance burden, I'd slightly prefer to keep it around.
We similarly have a --link
option when installing platforms and plugins to allow easier local development and testing within a project.
from cordova-discuss.
@dpogue Regarding §8
I have used the --link
option for plugins and it is indeed useful. But that linked the whole plugin folder IIRC. The linking option of cordova-create
only links a few items from the template. So if I would add a res
folder next to www
, it would not show up in the target.
Regarding maintenance: For its apparent use it's too much code IMO. With §7 it would be better and an implementation that just links the whole template would be even nicer of course.
from cordova-discuss.
Right now, §7 and §8 are major impediments to a sane implementation of #69.
Agreed on my part.
Especially the need for renaming to
.gitingore
in cordova-create, combined with the linking feature (which I still would wanted to hear valid use cases for) are heavily conflicting.
Agreed, yes
from cordova-discuss.
I just updated §4. Should I make this a PR document to make it easier to track changes?
from cordova-discuss.
I just updated §4. Should I make this a PR document to make it easier to track changes?
+1 on my part
from cordova-discuss.
Closed in favor of separate proposals
from cordova-discuss.
Related Issues (20)
- [cordova-create] New logic for setting attributes in package.json & config.xml (§3) HOT 2
- [cordova-create] Fix event delegation (§4) HOT 4
- [cordova-create] Do not copy "missing" files from default template (§5) HOT 1
- [cordova-create] Reduce supported template layouts (§7) HOT 1
- [cordova-create] Drop support for linking (§8) HOT 1
- [cordova-windows] dealing with template/Properties/Default.rd.xml HOT 2
- TEst HOT 1
- Migrate issues to GitHub PLEASE HOT 1
- Where to report plug-in issues? HOT 1
- Do not assert Apache license on generated projects HOT 1
- Merge cordova-app-hello-world and cordova-template-reference HOT 3
- Archive deprecated repos HOT 2
- Reduce JIRA issue count HOT 3
- Introduce stale bot on GitHub
- cordova-serve release needed from master HOT 8
- Rename "osx" platform in a major release? HOT 4
- JavaScript improvements for a major release
- Cordova coho "tools release" a bit confusing HOT 6
- [cordova-create] Simplify interface of main export (§1) HOT 3
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-discuss.