question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change Cordova project detection.

See original GitHub issue

Feature 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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brodybitscommented, Aug 31, 2020

And I think we should check for www before trying to build or run.

1reaction
raphinessecommented, Aug 31, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found