Change Cordova project detection.
See original GitHub issueFeature Request
Motivation Behind Feature
Currently a Cordova project is detected by the config.xml
and the folder www
(empty or not).
The www folder is a deployment folder which should not included in git repo. You only use the www as source folder if you develop vanilla html and js without any framework. But the real life scenario is that you build an app with e.g. Angular, Vue, React, etc. and set the www as dist-folder.
Feature Description
Cordova should detect its project workspace by the config.xml or package.json only. Not the www-folder.
Alternatives or Workarounds
I have to ensure the existence of the temp folder www. But this is a pain.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Next Steps - Apache Cordova
There is no upgrade command for Cordova projects. Instead, remove the platform from your project, and re-add it to get the latest version:....
Read more >Angular 2 Change Detection and Zone are Different in ...
Try to add console.log('zone', Zone.current); to check current zone. Zone is global variable, may you will have to add typing definition to use ......
Read more >Change detection stops working on Cordova #31709 - GitHub
Change detection stops working if the Cordova application: goes to the background;; goes to offline/online state; opens via the Push ...
Read more >Android App Development Guide - Ionic Framework
Once installed, open Android Studio. The IDE should detect that the Android SDK needs to be installed. In the SDK Components Setup screen,...
Read more >Apache Cordova Tutorial: Developing Mobile Apps with ...
This Apache Cordova review and tutorial will examine Cordova app development in more ... Cordova will overwrite the changes you have made for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And I think we should check for
www
before trying to build or run.I think not having to rely on the presence of the
www
folder is a reasonable request. But before that change can be implemented sanely, we have to DRY our implementations of the methods to find the Cordova project root.Currently we have this implemented similarly (if not identically) in at least:
cordova-lib/src/cordova/util.js
cordova-common/src/CordovaCheck.js
cordova-serve/src/util.js
where the version in
cordova-common
is not actually used anywhere AFAICT.