You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/09/19 16:47:33 UTC

[GitHub] [cordova] Domvel opened a new issue #155: (improvement) Do not require the www-folder for e.g. adding plugins.

Domvel opened a new issue #155: (improvement) Do not require the www-folder for e.g. adding plugins.
URL: https://github.com/apache/cordova/issues/155
 
 
   # Improvement (Bug? Feature Request?)
   
   Currently Cordova requires the file `config.xml` and the `www` folder to detect a Cordova-based project. 
   
   The need of the www-folder is not necessary. It does not matter if it is empty or not. And Cordova will not touch it. (e.g. for installing a native plugin). Cordova is just happy if the www-folder is there.
   
   It's annoying if the www-folder is the dist (build) folder and not tracked by git.
   In this case I have to add a `.gitkeep` file and ignore all other files inside for git.
   To always keep it. 
   
   If you try to install a plugin without the www-folder, you'll get the error:
   
   ```text
   cordova plugin add cordova-plugin-inappbrowser --verbose
   Current working directory is not a Cordova-based project.
   ```
   
   Expected behavior:
   Just detect the Cordova-based project by the config.xml.
   
   Q: Why? The www-folder is the source Folder for Cordova! 
   
   A: Well, it is used to build the apk. But If you use frameworks like Ionic / Angular you have another source base (src-folder) and build to the www-folder to finally pack it to the apk with Cordova.
   
   What do you think? Can we do without the www-folder? It's just a dummy in this case.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org